Skip to content

Commit

Permalink
test(jans-auth-server): fix test failures - added issuers to test ssa #…
Browse files Browse the repository at this point in the history
…5959 (#5964)

#5959

Signed-off-by: YuriyZ <yzabrovarniy@gmail.com>
  • Loading branch information
yuriyz authored Sep 6, 2023
1 parent 0d638b6 commit 389d9d6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 389d9d6

Please sign in to comment.