Obtain an access token by using Postman's authorization code flow.
-
Open Postman, and then create a new request or open an existing collection.
-
On the Authorization tab, configure OAuth 2.0 authentication:
-
From Type, select OAuth 2.0.
-
Configure the following settings.
Field Value Grant type Authorization CodeCallback URL https://oauth.pstmn.io/v1/callbackAuthorize using browser Selected Auth URL https://<KEYCLOAK_HOSTNAME>/realms/<REALM_NAME>/protocol/openid-connect/authAccess token URL https://<KEYCLOAK_HOSTNAME>/realms/<REALM_NAME>/protocol/openid-connect/tokenClient ID genai-portalScope openid email
Where:
KEYCLOAK_HOSTNAME: Fully qualified domain name (FQDN) of your deployed Keycloak instanceREALM_NAME: Realm for your iQ Studio users
Examples:
-
-
Select Get New Access Token.
Postman opens a browser window for authentication.
-
On the Keycloak login page, enter your credentials.
After Keycloak authenticates you, it redirects you to Postman.
-
Select Use Token to apply the access token to your request.
Postman adds the access token to the Authorization header as a bearer token. If Postman does nt add the header automatically, add it manually.
NOTE: Access tokens expire. Request a new token when the current token expires.