We currently have a use case where we need to get the currently assigned Access Token for a User / Realm / Client combination so that we can pass that along to the 3rd party for which it was assigned, so that they can perform a mapping on their side.
Is there a way to fetch the currently issued Access Token for the User / Realm / Client combination?
Yes, it is possible using the restapi. The token expiration time is in our hand. We can keep the same token life for 30 mins or 24 hours and using api we will get the same token. But for this you have to pass the clientid and secret from client. This realm should have only read access.
Create a new realm internal (used in this curl)
Create a new client eba1360f.
Change access type to confidential.
Copy the credentials secret from client options in 2nd tab.
Use the same client and secret to get the token.
curl -X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Accept:application/json" -d "grant_type=client_credentials&redirect_uri=https: