stable

Clone or download

Read-only

Extract common part of OIDC token generation

OIDC Core and extensions like the Back-Channel logout share similarities in the way the tokens they use are generated [0][1]. This contribution extracts the common part so we can re-use it later to generate a logout token. This is a technical change, no change in behavior is expected. Part of request #27519 TuleapFarm: unlog one user everywhere [0] https://openid.net/specs/openid-connect-core-1_0.html#IDToken [1] https://openid.net/specs/openid-connect-backchannel-1_0.html#LogoutToken Change-Id: I966118d55689cd14b7064cf58e7e218c8387f5fb

Modified Files

Name
M src/common/OAuth2ServerCore/OAuth2ServerRoutes.php +27 −24 Go to diff View file
M src/common/OAuth2ServerCore/OpenIDConnect/IDToken/OpenIDConnectIDTokenCreator.php +8 −55 Go to diff View file
M src/common/OAuth2ServerCore/OpenIDConnect/JWK/JSONWebKey.php +1 −1 Go to diff View file
M src/common/OAuth2ServerCore/OpenIDConnect/JWK/JWKSDocumentEndpointController.php +2 −7 Go to diff View file
R src/common/OAuth2ServerCore/OpenIDConnect/IDToken/JWTBuilderFactory.php Go to diff View file
R src/common/OAuth2ServerCore/OpenIDConnect/IDToken/OpenIDConnectSigningKeyDAO.php Go to diff View file
A src/common/OAuth2ServerCore/OpenIDConnect/OpenIDConnectSigningKeyFactory.php +33 −0 Go to diff View file
R src/common/OAuth2ServerCore/OpenIDConnect/IDToken/OpenIDConnectSigningKeyFactory.php Go to diff View file
A src/common/OAuth2ServerCore/OpenIDConnect/OpenIDConnectTokenBuilder.php +64 −0 Go to diff View file
R src/common/OAuth2ServerCore/OpenIDConnect/IDToken/SigningPrivateKey.php Go to diff View file
R src/common/OAuth2ServerCore/OpenIDConnect/IDToken/SigningPublicKey.php Go to diff View file
R tests/integration/tests/OAuth2ServerCore/OpenIDConnect/IDToken/OpenIDConnectSigningKeyDAOTest.php Go to diff View file
M tests/unit/common/OAuth2ServerCore/OpenIDConnect/IDToken/OpenIDConnectIDTokenCreatorTest.php +12 −60 Go to diff View file
M tests/unit/common/OAuth2ServerCore/OpenIDConnect/JWK/JSONWebKeySetTest.php +1 −1 Go to diff View file
M tests/unit/common/OAuth2ServerCore/OpenIDConnect/JWK/JSONWebKeyTest.php +1 −1 Go to diff View file
M tests/unit/common/OAuth2ServerCore/OpenIDConnect/JWK/JWKSDocumentEndpointControllerTest.php +4 −25 Go to diff View file
R tests/unit/common/OAuth2ServerCore/OpenIDConnect/IDToken/JWTBuilderFactoryTest.php Go to diff View file
R tests/unit/common/OAuth2ServerCore/OpenIDConnect/IDToken/OpenIDConnectSigningKeyFactoryTest.php Go to diff View file
A tests/unit/common/OAuth2ServerCore/OpenIDConnect/OpenIDConnectSigningKeyFactoryStaticForTestPurposes.php +90 −0 Go to diff View file
A tests/unit/common/OAuth2ServerCore/OpenIDConnect/OpenIDConnectTokenBuilderTest.php +96 −0 Go to diff View file
R tests/unit/common/OAuth2ServerCore/OpenIDConnect/IDToken/SigningPrivateKeyTest.php Go to diff View file
R tests/unit/common/OAuth2ServerCore/OpenIDConnect/IDToken/SigningPublicKeyTest.php Go to diff View file