Token endpoint - Authorization Header
Last updated
Was this helpful?
Last updated
Was this helpful?
The /api/v1/oauth/token
endpoint uses the Basic HTTP Authentication scheme (as defined in ).
The format for the header is: Basic : <credentials encoded as base64>
. A step-by-step to formatting in .NET:
Take the clientId
and the secret
and format them as delimited by a colon (:)
Next, encode this string as a base64 string
Lastly, format it to include the "Basic" keyword, followed by the now encoded credentials:
Put together in a method that can be reused for both token and refresh token requests: