Skip to content

Commit

Permalink
feat(flex-linux-setup): replace jwt token with reference token to acc…
Browse files Browse the repository at this point in the history
…ess config-api
  • Loading branch information
devrimyatar committed Nov 17, 2023
1 parent 565f6ac commit 7296ce1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flex-linux-setup/flex_linux_setup/flex_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ def get_client_parser():
ldif_parser.entries[0][1]['jansClntSecret'] = ['%(admin_ui_client_encoded_pw)s']
ldif_parser.entries[0][1]['displayName'] = ['Admin UI Web Client {}'.format(ssa_json.get('org_id', ''))]
ldif_parser.entries[0][1]['jansTknEndpointAuthMethod'] = ['none']
ldif_parser.entries[0][1]['jansAttrs'] = ['{"tlsClientAuthSubjectDn":"","runIntrospectionScriptBeforeJwtCreation":false,"keepClientAuthorizationAfterExpiration":false,"allowSpontaneousScopes":false,"spontaneousScopes":[],"spontaneousScopeScriptDns":[],"updateTokenScriptDns":[],"backchannelLogoutUri":[],"backchannelLogoutSessionRequired":false,"additionalAudience":[],"postAuthnScripts":[],"consentGatheringScripts":[],"introspectionScripts":[],"rptClaimsScripts":[],"parLifetime":600,"requirePar":false,"jansAuthSignedRespAlg":null,"jansAuthEncRespAlg":null,"jansAuthEncRespEnc":null}']

client_tmp_fn = os.path.join(self.templates_dir, 'admin_ui_client.ldif')

Expand All @@ -481,6 +482,12 @@ def get_client_parser():
ldif_parser.entries[0][1]['jansClntSecret'] = ['%(admin_ui_web_client_encoded_pw)s']
ldif_parser.entries[0][1]['displayName'] = ['Admin UI Backend API Client {}'.format(ssa_json.get('org_id', ''))]
ldif_parser.entries[0][1]['jansGrantTyp'] = ['client_credentials']
ldif_parser.entries[0][1]['jansRespTyp'] = ['token']
ldif_parser.entries[0][1]['jansScope'] = ['inum=F0C4,ou=scopes,o=jans']
ldif_parser.entries[0][1]['jansTknEndpointAuthMethod'] = ['client_secret_basic']
ldif_parser.entries[0][1]['jansTrustedClnt'] = ['FALSE']
for del_entry in ('jansLogoutURI', 'jansPostLogoutRedirectURI', 'jansRedirectURI', 'jansSignedRespAlg'):
del ldif_parser.entries[0][1][del_entry]

web_client_tmp_fn = os.path.join(self.templates_dir, 'admin_ui_web_client.ldif')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"opHost": "https://%(hostname)s",
"clientId": "%(admin_ui_web_client_id)s",
"clientSecret": "%(admin_ui_web_client_encoded_pw)s",
"introspectionEndpoint": "https://%(hostname)s/jans-auth/restv1/introspection",
"tokenEndpoint": "https://%(hostname)s/jans-auth/restv1/token",
"scopes": [
"openid",
Expand Down

0 comments on commit 7296ce1

Please sign in to comment.