All notable changes to this project will be documented in this file. The format is based on Keep a Changelog.
- new CA certificates
- function parseLvDateOfBirth
- If user picks wrong verification code then UserSelectedWrongVerificationCodeException is thrown (previously TechnicalErrorException was thrown)
- Minimal PHP version lifted to 7.4
- Added intermediate exceptions (UserAccountException if there is problem with user Smart-ID account, UserActionException if the exception is caused by user's actions, EnduringSmartIdException if something is wrong with Smart-ID service or the integration configuration is invalid) so there is no need to handle each case independently.
- New method SmartIdAuthenticationResponse::getDocumentNumber()
- Usage examples added to README.md
- Latvian ID code validation
- Now can be run with both PHP 7.4 and PHP 8
- Fix user agent header regex validation
- Library and PHP version number added to User-Agent header of all requests
- PHP version upgraded 7.2 -> 7.3
- PhpUnit upgraded to 5.7 -> 9
- New function AuthenticationIdentity->getDateOfBirth() that reads birthdate info from a separate field in certificate or detects it from national identity number. NB This function can return null for some Latvian certificates.
- New function AuthenticationIdentity->getIdentityNumber() that returns personal identification number without a PNOEE-, IDXLV- etc prefix
- Return types added to methods
- Library and PHP version number added to User-Agent header of outgoing requests
- Support for Smart id api version 2.0
- Authentication routes using semantics identifiers
- Different Interaction types based on enduser device capabilities
- Building request with national identity (Use semantics identifiiers (chapter 5.1.3))
- Hard coded ssl public keys for demo and live smart id environments (Since this release, relying parties need to specify the public keys used when setting up the client)
- php version >= 7.2
- Demo SSL key pinning #24
- Poller did not use https pinning configuration from client #22
- Http public key pinning #18
- php version 5.6 to 7.0.7