Skip to content

Commit

Permalink
Auth: Use the FTS instance domain as audience rucio#6590
Browse files Browse the repository at this point in the history
The discussion on how the Audience claim should be handled is still
on-going.  However, the FTS team has expressed their wish to stop
supporting the WLCG wildcard audience.  For the time being, it was
agreed to use the domain of the targeted FTS instance, mimicking how
it’s done for tokens destined at storages.
  • Loading branch information
dchristidis committed Mar 29, 2024
1 parent a814398 commit 64037ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rucio/transfertool/fts3.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,7 @@ def __init__(self, external_host, oidc_account=None, oidc_support: bool = False,
self.token = None
if oidc_support:
fts_hostname = urlparse(external_host).hostname
# FIXME: At the time of writing, it is not yet finalised what
# audience and/or scope is required by FTS.
token = request_token(audience='https://wlcg.cern.ch/jwt/v1/any', scope='fts')
token = request_token(audience=fts_hostname, scope='fts')
if token is not None:
self.logger(logging.INFO, 'Using a token to authenticate with FTS instance %s', fts_hostname)
self.token = token
Expand Down

0 comments on commit 64037ef

Please sign in to comment.