Skip to content

Commit

Permalink
ARC-1269: Minor Fixes after Integration Tests (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrichner-oviva authored Feb 12, 2024
1 parent deabe2f commit 2927f8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ public Config read() {
.appName(appName)
.federationMaster(fedmaster)
.entitySigningKey(federationSigJwksPath.getKeys().get(0).toECKey())

// safety, remove the private key as we don't need it here
.entitySigningKeys(federationSigJwksPath.toPublicJWKSet())
.relyingPartyEncKeys(federationEncJwksPath.toPublicJWKSet())

// _MUST NOT_ be public. We need it for decryption.
.relyingPartyEncKeys(federationEncJwksPath)
.ttl(entityStatementTtl)
.scopes(getScopes())
.redirectUris(List.of(baseUri.resolve("/auth/callback").toString()))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public Response openIdConfiguration() {
new OpenIdConfiguration(
baseUri.toString(),
baseUri.resolve("/auth").toString(),
baseUri.resolve("/token").toString(),
baseUri.resolve("/auth/token").toString(),
baseUri.resolve("/jwks.json").toString(),
List.of("openid"),
relyingPartyConfig.supportedResponseTypes(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void openIdConfiguration() {
assertEquals(BASE_URI.toString(), body.issuer());
assertEquals(BASE_URI.resolve("/auth").toString(), body.authorizationEndpoint());
assertEquals(BASE_URI.resolve("/jwks.json").toString(), body.jwksUri());
assertEquals(BASE_URI.resolve("/token").toString(), body.tokenEndpoint());
assertEquals(BASE_URI.resolve("/auth/token").toString(), body.tokenEndpoint());
assertEquals(List.of("ES256"), body.idTokenSigningAlgValuesSupported());
}

Expand Down

0 comments on commit 2927f8e

Please sign in to comment.