OAuth2 Authentication Guide for Data as a Service

OAuth2 Authentication Guide for Data as a Service

POST with Credentials Encoded in the Header

POST with Credentials Encoded in the Header

You may use the same HTTP
Authorization
header discussed in the previous section, but with an HTTP POST operation rather than a GET. The only difference is that rather than including the
grant_type
parameter as a query string parameter in the URL, you would include it in the body of the message instead. In this case, set the
Content-Type
header to
application/x-www-form-urlencoded
. The HTTP request would look something like this:
POST /oauth2/v2/token HTTP/1.1 Host: oauth2.strikeiron.com Authorization: Basic dXNlckBleGFtcGxlLmNvbTphdXRoMTIz Content-Type: application/x-www-form-urlencoded grant_type=client_credentials

0 COMMENTS

We’d like to hear from you!