Skip to content

Commit

Permalink
fix: jans-linux-setup rename role_based_client as tui_client (#3630)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar authored Jan 16, 2023
1 parent cf0a824 commit b331ef3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
11 changes: 6 additions & 5 deletions jans-cli-tui/docs/remote_install.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ Get Credidentials for CLI
On Jans server

```
# cat /opt/jans/jans-setup/setup.properties.last | grep role
role_based_client_encoded_pw=dDpwNN3lv94JF+ibgVFT7A\=\=
role_based_client_id=2000.076aa5d9-fa8d-42a0-90d2-b83b5ea535d5
role_based_client_pw=mrF8tcBd6m9Q
# cat /opt/jans/jans-setup/setup.properties.last | grep tui
tui_client_encoded_pw=4j858txd4OfXV1Kkx92YNA\=\=
tui_client_id=2000.114cd953-3365-4208-ae5f-97237a01d334
tui_client_pw=bhizfR4cwC1h
```

`role_based_client_id` wile go **Client ID** and `role_based_client_pw` will go **Client Secret**
`tui_client_id` will go **Client ID** and `tui_client_pw` will go **Client Secret**
6 changes: 3 additions & 3 deletions jans-linux-setup/jans_setup/setup_app/installers/jans_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def install(self):


def generate_configuration(self):
self.check_clients([('role_based_client_id', '2000.')])
self.check_clients([('tui_client_id', '2000.')])

def configure(self, options={}):
config = configparser.ConfigParser()
Expand All @@ -107,8 +107,8 @@ def configure(self, options={}):
config['DEFAULT'][key_] = options[key_]

if Config.install_config_api:
config['DEFAULT']['jca_client_id'] = Config.role_based_client_id
config['DEFAULT']['jca_client_secret_enc'] = Config.role_based_client_encoded_pw
config['DEFAULT']['jca_client_id'] = Config.tui_client_id
config['DEFAULT']['jca_client_secret_enc'] = Config.tui_client_encoded_pw
if base.argsp.cli_test_client:
config['DEFAULT']['jca_test_client_id'] = Config.jca_client_id
config['DEFAULT']['jca_test_client_secret_enc'] = Config.jca_client_encoded_pw
Expand Down
8 changes: 4 additions & 4 deletions jans-linux-setup/jans_setup/templates/jans-cli/client.ldif
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
version: 1
dn: inum=%(role_based_client_id)s,ou=clients,o=jans
dn: inum=%(tui_client_id)s,ou=clients,o=jans
objectClass: top
objectClass: jansClnt
del: false
displayName: Jans Role Based Client
inum: %(role_based_client_id)s
displayName: Jans TUI Client
inum: %(tui_client_id)s
jansAccessTknAsJwt: true
jansAccessTknSigAlg: RS256
jansAppTyp: web
jansAttrs: {"tlsClientAuthSubjectDn":"","runIntrospectionScriptBeforeJwtCreation":true,"keepClientAuthorizationAfterExpiration":false,"allowSpontaneousScopes":false,"spontaneousScopes":[],"spontaneousScopeScriptDns":[],"updateTokenScriptDns":[],"backchannelLogoutUri":[],"backchannelLogoutSessionRequired":false,"additionalAudience":[],"postAuthnScripts":[],"consentGatheringScripts":[],"introspectionScripts":["inum=A44E-4F3D,ou=scripts,o=jans"],"rptClaimsScripts":[],"parLifetime":600,"requirePar":false,"jansAuthSignedRespAlg":null,"jansAuthEncRespAlg":null,"jansAuthEncRespEnc":null}
jansClntSecret: %(role_based_client_encoded_pw)s
jansClntSecret: %(tui_client_encoded_pw)s
jansDisabled: false
jansGrantTyp: authorization_code
jansGrantTyp: refresh_token
Expand Down

0 comments on commit b331ef3

Please sign in to comment.