Preparing an IAM instance for test purposes: how to get a refresh token without requiring any manual operation during the test? #563
-
Hello, We are adding some code within DIRAC to get tokens from IAM. To prepare this test:
From here, I see three straightforward ways of getting tokens:
Thus, would you have any recommendations on how to get a refresh token without requiring manual operations from a user? Thanks a lot |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello, if the DIRAC service relies on a scope based authorization model you can use In case for instance the service requires to know the groups a user belongs to, you could use the
Anyway, for testing purposes you could also use the |
Beta Was this translation helpful? Give feedback.
Hello, if the DIRAC service relies on a scope based authorization model you can use
client_credentials
(the RT is not issued since a new access token can be requested in an automated way given the credentials of the client).In case for instance the service requires to know the groups a user belongs to, you could use the
refresh_token
flow.For example:
offline_access
scope (you can use iam-test-client, or oidc-agent for instance)