Programming isn’t about what you know; it’s about what you can figure out.
...the process of verifying that a requested action or service is approved for a specific entity
https://{{auth-host}}/oauth2/token| Environment | Host URL |
|---|---|
| Production & UAT | https://pcmi-prod.fusionauth.io |
| The full OpenAPI Specification for this API can be found here |
| Key | Example Value | Descripton |
|---|---|---|
| client_id | 528aa7da-55d1-45e6-87db-9c383af930b3 | Functionally like a username, but defined by the server |
| client_secret | hunter2 | Functionally like a password |
| grant_type | client_credentials | Hard coded for now. |
| scope | a Scope String string | Defines whose data and what type of data you are trying to access |
target-entity:{TENANT_ID} target-entity:{AUDIENCE} target-entity:{AUDIENCE}POST /oauth2/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
client_id={CLIENT_ID}&client_secret={CLIENT_SECRET}&grant_type=client_credentials&scope={SCOPE}HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
{
"access_token": "{ACCESS_TOKEN}",
"expires_in": 3600,
"scope": "{SCOPE}",
"token_type": "Bearer"
}x-api-keyGET /v1/someapi/ HTTP/1.1
Authorization: Bearer {ACCESS_TOKEN}
x-api-key: {API_KEY}HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
{
}