Token endpoint - Authorization Header
The /api/v1/oauth/token
endpoint uses the Basic HTTP Authentication scheme (as defined in rfc7617).
The format for the header is: Basic : <credentials encoded as base64>
. A step-by-step to formatting in .NET:
Take the
clientId
and thesecret
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:
Last updated