Skip to content

Commit

Permalink
fix: jans-linux-setup sync test client variable names (#3862)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar committed Feb 15, 2023
1 parent 0fe8338 commit fe7e24c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions jans-linux-setup/jans_setup/setup_app/installers/jans.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,9 @@ def import_custom_ldif_dir(self, ldif_dir):
def create_test_client(self):
ldif_fn = self.clients_ldif_fn = os.path.join(Config.output_dir, 'test-client.ldif')
client_id = Config.get('test_client_id') or base.argsp.test_client_id
client_pw = Config.get('test_client_pw') or base.argsp.test_client_secret or self.getPW()
client_pw = Config.get('test_client_pw') or base.argsp.test_client_pw or self.getPW()
encoded_pw = self.obscure(client_pw)
trusted_client = Config.get('test_client_trusted_client')
if not trusted_client:
trusted_client = 'true' if base.argsp.test_client_trusted else 'false'
trusted_client = 'true' if (Config.get('test_client_trusted') or base.argsp.test_client_trusted) else 'false'

if base.argsp.test_client_redirect_uri:
redirect_uri = base.argsp.test_client_redirect_uri.split(',')
Expand All @@ -464,7 +462,7 @@ def create_test_client(self):
Config.test_client_pw = client_pw
Config.test_client_pw_encoded = encoded_pw
Config.test_client_redirect_uri = redirect_uri
Config.test_client_trusted_client = trusted_client
Config.test_client_trusted = trusted_client
Config.test_client_scopes = ' '.join(scopes)


Expand Down
2 changes: 1 addition & 1 deletion jans-linux-setup/jans_setup/setup_app/utils/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@

# test-client
parser.add_argument('-test-client-id', help="ID of test client which has all available scopes. Must be in UUID format.")
parser.add_argument('-test-client-secret', help="Secret for test client")
parser.add_argument('-test-client-pw', help="Secret for test client")
parser.add_argument('-test-client-redirect-uri', help="Redirect URI for test client")
parser.add_argument('--test-client-trusted', help="Make test client trusted", action='store_true')

Expand Down

0 comments on commit fe7e24c

Please sign in to comment.