From 389d9d6506197eec7c9ac6d4ae1a9f48ca89a791 Mon Sep 17 00:00:00 2001 From: YuriyZ Date: Wed, 6 Sep 2023 12:44:45 +0300 Subject: [PATCH] test(jans-auth-server): fix test failures - added issuers to test ssa #5959 (#5964) https://github.com/JanssenProject/jans/issues/5959 Signed-off-by: YuriyZ --- .../as/client/ws/rs/RegistrationWithSoftwareStatementTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jans-auth-server/client/src/test/java/io/jans/as/client/ws/rs/RegistrationWithSoftwareStatementTest.java b/jans-auth-server/client/src/test/java/io/jans/as/client/ws/rs/RegistrationWithSoftwareStatementTest.java index dbecf76c221..2b746020bc6 100644 --- a/jans-auth-server/client/src/test/java/io/jans/as/client/ws/rs/RegistrationWithSoftwareStatementTest.java +++ b/jans-auth-server/client/src/test/java/io/jans/as/client/ws/rs/RegistrationWithSoftwareStatementTest.java @@ -100,6 +100,7 @@ public void requestClientAssociate1(final String redirectUris, final String sect AuthCryptoProvider cryptoProvider = new AuthCryptoProvider(keyStoreFile, keyStoreSecret, dnName); SoftwareStatement softwareStatement = new SoftwareStatement(SignatureAlgorithm.RS256, cryptoProvider); softwareStatement.setKeyId(keyId); + softwareStatement.getClaims().put("iss", "https://test.issuer.info"); softwareStatement.getClaims().put(APPLICATION_TYPE.toString(), ApplicationType.WEB); softwareStatement.getClaims().put(CLIENT_NAME.toString(), "jans test app"); softwareStatement.getClaims().put(REDIRECT_URIS.toString(), StringUtils.spaceSeparatedToList(redirectUris)); @@ -204,6 +205,7 @@ public void requestClientAssociate2(final String redirectUris, final String sect AuthCryptoProvider cryptoProvider = new AuthCryptoProvider(keyStoreFile, keyStoreSecret, dnName); SoftwareStatement softwareStatement = new SoftwareStatement(SignatureAlgorithm.RS256, cryptoProvider); softwareStatement.setKeyId(keyId); + softwareStatement.getClaims().put("iss", "https://test.issuer.info"); softwareStatement.getClaims().put(APPLICATION_TYPE.toString(), ApplicationType.WEB); softwareStatement.getClaims().put(CLIENT_NAME.toString(), "jans test app"); softwareStatement.getClaims().put(REDIRECT_URIS.toString(), StringUtils.spaceSeparatedToList(redirectUris)); @@ -464,6 +466,7 @@ public void registerClientWithRequestObject(final String redirectUris, final Str AuthCryptoProvider cryptoProvider = new AuthCryptoProvider(keyStoreFile, keyStoreSecret, dnName); SoftwareStatement softwareStatement = new SoftwareStatement(SignatureAlgorithm.RS256, cryptoProvider); softwareStatement.setKeyId(keyId); + softwareStatement.getClaims().put("iss", "https://test.issuer.info"); softwareStatement.getClaims().put(APPLICATION_TYPE.toString(), ApplicationType.WEB); softwareStatement.getClaims().put(CLIENT_NAME.toString(), "jans test app"); softwareStatement.getClaims().put(REDIRECT_URIS.toString(), StringUtils.spaceSeparatedToList(redirectUris));