stable

Clone or download

Read-only

Expose a JSON Web Key Set document [0][1]

This document can be used to validate the ID tokens returned by the access token endpoint. The endpoint can be accessed via the URL `https://<tuleap_instance_domain>/oauth2/jwks`. Part of story #14714: be an OpenID Connect provider [0] https://tools.ietf.org/html/rfc7517 [1] https://tools.ietf.org/html/rfc7518 Change-Id: I449cede1f493ba60c7d0e5929bf4384c1b15e3cc

Modified Files

Name
M plugins/oauth2_server/include/OpenIDConnect/IDToken/OpenIDConnectSigningKeyDAO.php +12 −0 Go to diff View file
M plugins/oauth2_server/include/OpenIDConnect/IDToken/OpenIDConnectSigningKeyFactory.php +55 −14 Go to diff View file
A plugins/oauth2_server/include/OpenIDConnect/JWK/InvalidPublicRSAKeyPEMFormatException.php +31 −0 Go to diff View file
A plugins/oauth2_server/include/OpenIDConnect/JWK/JSONWebKey.php +96 −0 Go to diff View file
A plugins/oauth2_server/include/OpenIDConnect/JWK/JSONWebKeySet.php +43 −0 Go to diff View file
A plugins/oauth2_server/include/OpenIDConnect/JWK/JWKSDocumentEndpointController.php +67 −0 Go to diff View file
M plugins/oauth2_server/include/oauth2_serverPlugin.php +16 −0 Go to diff View file
M plugins/oauth2_server/phpunit/OpenIDConnect/IDToken/OpenIDConnectSigningKeyFactoryTest.php +32 −2 Go to diff View file
A plugins/oauth2_server/phpunit/OpenIDConnect/JWK/JSONWebKeySetTest.php +54 −0 Go to diff View file
A plugins/oauth2_server/phpunit/OpenIDConnect/JWK/JSONWebKeyTest.php +76 −0 Go to diff View file
A plugins/oauth2_server/phpunit/OpenIDConnect/JWK/JWKSDocumentEndpointControllerTest.php +72 −0 Go to diff View file
M plugins/oauth2_server/tests/integration/OpenIDConnect/IDToken/OpenIDConnectSigningKeyDAOTest.php +2 −0 Go to diff View file