Skip to content

Commit

Permalink
deleted hard-coded value for permissions url
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Oct 19, 2023
1 parent 5806ca9 commit e3be802
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion beacon/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
#
# Permissions server configuration
#
permissions_url = 'http://beacon-permissions'
permissions_url = 'http://beacon-permissions:5051/'
#permissions_url = 'http://localhost:5051/'

#
Expand Down
2 changes: 1 addition & 1 deletion beacon/utils/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async def resolve_token(token, requested_datasets_ids):
# * return _all_ the datasets the user has access to, in case the datasets list is empty
async with ClientSession() as session:
async with session.post(
'http://beacon-permissions:5051/',
permissions_url,
headers={'Authorization': 'Bearer ' + token,
'Accept': 'application/json'},
json={'datasets': requested_datasets_ids}, # will set the Content-Type to application/json
Expand Down
2 changes: 1 addition & 1 deletion deploy/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
#
# Permissions server configuration
#
permissions_url = 'http://beacon-permissions'
permissions_url = 'http://beacon-permissions:5051/'

#
# IdP endpoints (OpenID Connect/Oauth2)
Expand Down

0 comments on commit e3be802

Please sign in to comment.