Skip to content

Commit

Permalink
Merge pull request #108 from HSF/dev
Browse files Browse the repository at this point in the history
fix to get user proxy from http header when http env does not have it
  • Loading branch information
wguanicedew authored Aug 5, 2022
2 parents fce1f59 + aad9945 commit b04d753
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 4 additions & 2 deletions main/lib/idds/rest/v1/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ def before_request_auth():
if auth_type in ['x509_proxy']:
dn = flask.request.environ.get('SSL_CLIENT_S_DN', None)
client_cert = flask.request.environ.get('SSL_CLIENT_CERT', None)
dn = dn.strip()
client_cert = client_cert.strip()
if dn:
dn = dn.strip()
if client_cert:
client_cert = client_cert.strip()
if not dn or len(dn) == 0:
dn = flask.request.headers.get('SSL-CLIENT-S-DN', default=None)
if not client_cert or len(client_cert) == 0:
Expand Down
1 change: 1 addition & 0 deletions main/lib/idds/tests/test_domapanda.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,5 +177,6 @@ def setup_workflow():
workflow = setup_workflow()

wm = ClientManager(host=host)
# wm.set_original_user(user_name="wguandev")
request_id = wm.submit(workflow, use_dataset_name=False)
print(request_id)
12 changes: 6 additions & 6 deletions monitor/data/conf.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

var appConfig = {
'iddsAPI_request': "https://lxplus787.cern.ch:443/idds/monitor_request/null/null",
'iddsAPI_transform': "https://lxplus787.cern.ch:443/idds/monitor_transform/null/null",
'iddsAPI_processing': "https://lxplus787.cern.ch:443/idds/monitor_processing/null/null",
'iddsAPI_request_detail': "https://lxplus787.cern.ch:443/idds/monitor/null/null/true/false/false",
'iddsAPI_transform_detail': "https://lxplus787.cern.ch:443/idds/monitor/null/null/false/true/false",
'iddsAPI_processing_detail': "https://lxplus787.cern.ch:443/idds/monitor/null/null/false/false/true"
'iddsAPI_request': "https://lxplus8s18.cern.ch:443/idds/monitor_request/null/null",
'iddsAPI_transform': "https://lxplus8s18.cern.ch:443/idds/monitor_transform/null/null",
'iddsAPI_processing': "https://lxplus8s18.cern.ch:443/idds/monitor_processing/null/null",
'iddsAPI_request_detail': "https://lxplus8s18.cern.ch:443/idds/monitor/null/null/true/false/false",
'iddsAPI_transform_detail': "https://lxplus8s18.cern.ch:443/idds/monitor/null/null/false/true/false",
'iddsAPI_processing_detail': "https://lxplus8s18.cern.ch:443/idds/monitor/null/null/false/false/true"
}

0 comments on commit b04d753

Please sign in to comment.