-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #219 from HSF/dev
improve
- Loading branch information
Showing
9 changed files
with
105 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
# http://www.apache.org/licenses/LICENSE-2.0OA | ||
# | ||
# Authors: | ||
# - Wen Guan, <[email protected]>, 2020 - 2022 | ||
# - Wen Guan, <[email protected]>, 2020 - 2023 | ||
|
||
""" | ||
iDDS CLI | ||
|
@@ -42,6 +42,11 @@ def setup_oidc_token(args): | |
cm = ClientManager(host=args.host, setup_client=True) | ||
cm.setup_oidc_token() | ||
|
||
def setup_oidc_client_token(args): | ||
cm = ClientManager(host=args.host, setup_client=True) | ||
cm.setup_oidc_client_token(issuer=args.oidc_issuer, client_id=args.oidc_client_id, | ||
client_secret=args.oidc_client_secret, scope=args.oidc_scope, | ||
audience=args.oidc_audience) | ||
|
||
def clean_oidc_token(args): | ||
cm = ClientManager(host=args.host, setup_client=False) | ||
|
@@ -151,6 +156,9 @@ def get_parser(): | |
# setup token | ||
token_setup_parser = subparsers.add_parser('setup_oidc_token', help='Setup authentication token') | ||
token_setup_parser.set_defaults(function=setup_oidc_token) | ||
# token_setup_parser.add_argument('--oidc_audience', dest='oidc_audience', default=None, help='The oidc audience') | ||
# token_setup_parser.add_argument('--oidc_scope', dest='oidc_scope', default=None, help='The oidc scope') | ||
|
||
# token_setup_parser.add_argument('--oidc_refresh_lifetime', dest='oidc_refresh_lifetime', default=None, help='The oidc refresh lifetime') | ||
# token_setup_parser.add_argument('--oidc_issuer', dest='oidc_issuer', default=None, help='The oidc issuer') | ||
# token_setup_parser.add_argument('--oidc_audience', dest='oidc_audience', default=None, help='The oidc audience') | ||
|
@@ -163,6 +171,14 @@ def get_parser(): | |
# token_setup_parser.add_argument('--saml_username', dest='saml_username', default=None, help='The SAML username') | ||
# token_setup_parser.add_argument('--saml_password', dest='saml_password', default=None, help='The saml password') | ||
|
||
token_setup_parser = subparsers.add_parser('setup_oidc_client_token', help='Setup authentication client token') | ||
token_setup_parser.set_defaults(function=setup_oidc_client_token) | ||
token_setup_parser.add_argument('--oidc_issuer', dest='oidc_issuer', default=None, help='The oidc issuer') | ||
token_setup_parser.add_argument('--oidc_client_id', dest='oidc_client_id', default=None, help='The oidc client id') | ||
token_setup_parser.add_argument('--oidc_client_secret', dest='oidc_client_secret', default=None, help='The oidc client secret') | ||
token_setup_parser.add_argument('--oidc_audience', dest='oidc_audience', default=None, help='The oidc audience') | ||
token_setup_parser.add_argument('--oidc_scope', dest='oidc_scope', default=None, help='The oidc scope') | ||
|
||
# clean token | ||
token_clean_parser = subparsers.add_parser('clean_oidc_token', help='Clean authentication token') | ||
token_clean_parser.set_defaults(function=clean_oidc_token) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
|
||
var appConfig = { | ||
'iddsAPI_request': "https://lxplus812.cern.ch:443/idds/monitor_request/null/null", | ||
'iddsAPI_transform': "https://lxplus812.cern.ch:443/idds/monitor_transform/null/null", | ||
'iddsAPI_processing': "https://lxplus812.cern.ch:443/idds/monitor_processing/null/null", | ||
'iddsAPI_request_detail': "https://lxplus812.cern.ch:443/idds/monitor/null/null/true/false/false", | ||
'iddsAPI_transform_detail': "https://lxplus812.cern.ch:443/idds/monitor/null/null/false/true/false", | ||
'iddsAPI_processing_detail': "https://lxplus812.cern.ch:443/idds/monitor/null/null/false/false/true" | ||
'iddsAPI_request': "https://lxplus801.cern.ch:443/idds/monitor_request/null/null", | ||
'iddsAPI_transform': "https://lxplus801.cern.ch:443/idds/monitor_transform/null/null", | ||
'iddsAPI_processing': "https://lxplus801.cern.ch:443/idds/monitor_processing/null/null", | ||
'iddsAPI_request_detail': "https://lxplus801.cern.ch:443/idds/monitor/null/null/true/false/false", | ||
'iddsAPI_transform_detail': "https://lxplus801.cern.ch:443/idds/monitor/null/null/false/true/false", | ||
'iddsAPI_processing_detail': "https://lxplus801.cern.ch:443/idds/monitor/null/null/false/false/true" | ||
} |