Skip to content

Commit

Permalink
Merge pull request #10 from aasaru/combined
Browse files Browse the repository at this point in the history
v 1.1
  • Loading branch information
alvar-sk authored Jan 14, 2021
2 parents 379eb10 + 36e889a commit b9a1e3a
Show file tree
Hide file tree
Showing 103 changed files with 2,931 additions and 1,146 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ php:
- '7.2'

before_install:
- cp -a ./src/resources/test_certificates/. ./src/resources/trusted_certificates/
- composer install
script: vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.xml --configuration phpunit.xml tests
script: vendor/phpunit/phpunit/phpunit --coverage-clover=coverage.xml

after_success:
- bash <(curl -s https://codecov.io/bash)
- bash <(curl -s https://codecov.io/bash)
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [1.1 - Unreleased] - 2021-01-??

### Changed
- SSL pinning
- Relying Party must keep the list of trusted SSL public keys and supply them to mid-rest-php-client using withSslPinnedPublicKeys()
- MidAuthenticationResponseValidator now takes trusted certificates info as constructor parameter.

- renamed
- UserCancellationException -> MidUserCancellationException
- NotMidClientException -> MidNotMidClientException
- PhoneNotAvailableException -> MidPhoneNotAvailableException
- DeliveryException -> MidDeliveryException
- InvalidUserConfigurationException -> MidInvalidUserConfigurationException
- UnauthorizedException -> MidUnauthorizedException
- InvalidPhoneNumberException -> MidInvalidPhoneNumberException
- InvalidNationalIdentityNumberException -> MidInvalidNationalIdentityNumberException
- MobileIdException -> MidException
- moved Builders classes to their own files


### Added
- MidServiceUnavailableException for handling 503 (Service Unavailable) exceptions
- MidSslException to show problems with pinning
- MidClient can now specify withNetworkInterface("static.ip.or.eth.interface")

### Removed
- withLiveEnvCertificates() and withDemoEnvCertificates() methods are now removed (certificates are not longer hard coded into client library)
- Removed handling "NOT_ACTIVE" certificate status as it is never return by MID API (API always returns NOT_MID_CLIENT instead)
- MidClient method withNetworkConnectionConfig (as it didn't do anything)
- CertificateNotTrustedException (replaced with MidInternalErrorException)

### Changes in libraries
- hrobertson/x509-verify internally replaced with sop/x509

## [1.0] - initial version

Loading

0 comments on commit b9a1e3a

Please sign in to comment.