File tree 2 files changed +4
-6
lines changed
jans-linux-setup/jans_setup/setup_app
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -434,11 +434,9 @@ def import_custom_ldif_dir(self, ldif_dir):
434
434
def create_test_client (self ):
435
435
ldif_fn = self .clients_ldif_fn = os .path .join (Config .output_dir , 'test-client.ldif' )
436
436
client_id = Config .get ('test_client_id' ) or base .argsp .test_client_id
437
- client_pw = Config .get ('test_client_pw' ) or base .argsp .test_client_secret or self .getPW ()
437
+ client_pw = Config .get ('test_client_pw' ) or base .argsp .test_client_pw or self .getPW ()
438
438
encoded_pw = self .obscure (client_pw )
439
- trusted_client = Config .get ('test_client_trusted_client' )
440
- if not trusted_client :
441
- trusted_client = 'true' if base .argsp .test_client_trusted else 'false'
439
+ trusted_client = 'true' if (Config .get ('test_client_trusted' ) or base .argsp .test_client_trusted ) else 'false'
442
440
443
441
if base .argsp .test_client_redirect_uri :
444
442
redirect_uri = base .argsp .test_client_redirect_uri .split (',' )
@@ -464,7 +462,7 @@ def create_test_client(self):
464
462
Config .test_client_pw = client_pw
465
463
Config .test_client_pw_encoded = encoded_pw
466
464
Config .test_client_redirect_uri = redirect_uri
467
- Config .test_client_trusted_client = trusted_client
465
+ Config .test_client_trusted = trusted_client
468
466
Config .test_client_scopes = ' ' .join (scopes )
469
467
470
468
Original file line number Diff line number Diff line change 106
106
107
107
# test-client
108
108
parser .add_argument ('-test-client-id' , help = "ID of test client which has all available scopes. Must be in UUID format." )
109
- parser .add_argument ('-test-client-secret ' , help = "Secret for test client" )
109
+ parser .add_argument ('-test-client-pw ' , help = "Secret for test client" )
110
110
parser .add_argument ('-test-client-redirect-uri' , help = "Redirect URI for test client" )
111
111
parser .add_argument ('--test-client-trusted' , help = "Make test client trusted" , action = 'store_true' )
112
112
You can’t perform that action at this time.
0 commit comments