Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
-bash-4.2$ eval `oidc-agent-service use`
Agent pid 17216
-bash-4.2$ oidc-add juno2
Enter decryption password for account config 'juno2':
success
-bash-4.2$ TOKEN=$(oidc-token juno2)
-bash-4.2$ export BEARER_TOKEN=$TOKEN
-bash-4.2$ gfal-ls davs://xfer-archive.cr.cnaf.infn.it:8443/juno/
rucio4juno
test_Andrea
cronTest

NB: gfal first tries to access the resource with the user X509 voms-proxy and this could lead to errors.
In order to avoid this, the user must run  voms-proxy-destroy to properly switch to the JWT authentication.

Furthermore, an error like this could appear, but it is just an irrelevent warning message:

...