Step |
Action |
1 |
Create a new Collection in Postman.
|
2 |
Edit the name of your new collection and call it Authorizer test.
|
3 |
Select your collection Authorizer test in the left panel, and then select Add a request.
|
4 |
Enter the name of your request. In this example: Fetch access token.
|
5 |
Enter the following URL in the field Enter request URL:
https://auth.openservices.cambio.se/realms/COS/protocol/openid-connect/token
|
6 |
Change the request type to POST.
|
7 |
Select the tab Authorization.
- Select Basic Auth in the list Type.
- Enter your Client-id in the field Username.
- Enter your Client secret in the field Password.
- Save the changes in your request at regular intervals.
|
8 |
Select the tab Body.
- Select the radio button x-www-form-urlencoded.
- Enter grant_type in the column KEY, and then enter client_credentials in the column VALUE .
- Enter scope in the column KEY, and then enter user/*-read in the column VALUE .
|
9 |
Save the request and test that it is working:
- Select Save.
- Select Send.
Result: If the request worked as expected, you should receive the result 200 OK.
The field below displays your access token. Futher down you can find information about the duration of your token's validity before you need to renew it.
|