stable

Clone or download

Read-only

Update authentication check for Azure AD

part of request #12832 Support OpenID Connect providers where the login URL is different than the issuer URL This patch allow the authentication with Azure AD. To test it, create an azure AD provider and try to login whit. If it's valid, you should not have error. Change-Id: I72a42ad1e1e3221054662d20947d2c86ce65a558

Modified Files

Name
M plugins/openidconnectclient/include/OpenIDConnectClient/Administration/AzureProviderPresenter.php +6 −1 Go to diff View file
M plugins/openidconnectclient/include/OpenIDConnectClient/Administration/GenericProviderPresenter.php +6 −2 Go to diff View file
M plugins/openidconnectclient/include/OpenIDConnectClient/Administration/Presenter.php +8 −1 Go to diff View file
M plugins/openidconnectclient/include/OpenIDConnectClient/Authentication/Authorization/AuthorizationRequestCreator.php +2 −11 Go to diff View file
A plugins/openidconnectclient/include/OpenIDConnectClient/Authentication/AzureADUserLinkController.php +62 −0 Go to diff View file
A plugins/openidconnectclient/include/OpenIDConnectClient/Authentication/AzureProviderIssuerClaimValidator.php +36 −0 Go to diff View file
M plugins/openidconnectclient/include/OpenIDConnectClient/Authentication/Flow.php +2 −11 Go to diff View file
A plugins/openidconnectclient/include/OpenIDConnectClient/Authentication/GenericProviderIssuerClaimValidator.php +42 −0 Go to diff View file
M plugins/openidconnectclient/include/OpenIDConnectClient/Authentication/IDTokenVerifier.php +13 −16 Go to diff View file
A plugins/openidconnectclient/include/OpenIDConnectClient/Authentication/IssuerClaimValidator.php +34 −0 Go to diff View file
M plugins/openidconnectclient/include/OpenIDConnectClient/Provider/AzureADProvider/AzureADProvider.php +6 −0 Go to diff View file
M plugins/openidconnectclient/include/OpenIDConnectClient/Provider/GenericProvider/GenericProvider.php +6 −0 Go to diff View file
M plugins/openidconnectclient/include/OpenIDConnectClient/Provider/Provider.php +2 −0 Go to diff View file
M plugins/openidconnectclient/include/openidconnectclientPlugin.php +45 −10 Go to diff View file
M plugins/openidconnectclient/phpunit/Authentication/Authorization/AuthorizationRequestCreatorTest.php +3 −0 Go to diff View file
A plugins/openidconnectclient/phpunit/Authentication/AzureADUserLinkControllerTest.php +54 −0 Go to diff View file
A plugins/openidconnectclient/phpunit/Authentication/AzureProviderIssuerClaimValidatorTest.php +78 −0 Go to diff View file
A plugins/openidconnectclient/phpunit/Authentication/GenericProviderIssuerClaimValidatorTest.php +83 −0 Go to diff View file
M plugins/openidconnectclient/phpunit/Authentication/IDTokenVerifierTest.php +40 −16 Go to diff View file
M plugins/openidconnectclient/templates/administration-providers-modal-create-azure.mustache +1 −1 Go to diff View file
M plugins/openidconnectclient/templates/administration-providers-modal-create-generic.mustache +1 −1 Go to diff View file
M plugins/openidconnectclient/templates/administration-providers-modal-update.mustache +1 −1 Go to diff View file
M plugins/openidconnectclient/templates/administration-providers.mustache +0 −1 Go to diff View file