Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(image): missing configuration for openbanking discovery #2796

Merged
merged 1 commit into from
Nov 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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