Skip to content

Commit

Permalink
fix(image): missing configuration for openbanking discovery (#2796)
Browse files Browse the repository at this point in the history
  • Loading branch information
iromli authored Nov 1, 2022
1 parent 6aec633 commit ba664f0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 19 deletions.
38 changes: 19 additions & 19 deletions docker-jans-persistence-loader/scripts/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,25 +133,6 @@ def _transform_auth_dynamic_config(conf):
conf["agamaConfiguration"]["defaultResponseHeaders"].pop("Content-Type", None)
should_update = True

if "accessTokenSigningAlgValuesSupported" not in conf:
conf["accessTokenSigningAlgValuesSupported"] = [
"none",
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512",
"ES256",
"ES384",
"ES512",
"ES512",
"PS256",
"PS384",
"PS512"
]
should_update = True

for grant_type in [
"urn:ietf:params:oauth:grant-type:device_code",
"urn:ietf:params:oauth:grant-type:token-exchange",
Expand All @@ -160,6 +141,25 @@ def _transform_auth_dynamic_config(conf):
conf["dynamicGrantTypeDefault"].append(grant_type)
should_update = True

if "accessTokenSigningAlgValuesSupported" not in conf:
conf["accessTokenSigningAlgValuesSupported"] = [
"none",
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512",
"ES256",
"ES384",
"ES512",
"ES512",
"PS256",
"PS384",
"PS512"
]
should_update = True

if "forceSignedRequestObject" not in conf:
conf["forceSignedRequestObject"] = False
should_update = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@
"backchannelDeviceRegistrationEndpoint":"https://%(hostname)s/jans-auth/restv1/bc-deviceRegistration",
"deviceAuthzEndpoint":"https://%(hostname)s/jans-auth/restv1/device_authorization",
"openidSubAttribute":"inum",
"accessTokenSigningAlgValuesSupported":[
"none",
"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512",
"ES256",
"ES384",
"ES512",
"ES512",
"PS256",
"PS384",
"PS512"
],
"discoveryDenyKeys": [
"id_generation_endpoint",
"auth_level_mapping",
Expand Down

0 comments on commit ba664f0

Please sign in to comment.