OAuth2 Authentication Guide for Data as a Service

OAuth2 Authentication Guide for Data as a Service

POST with Credentials in the Body

POST with Credentials in the Body

The final option is to place all the required information in the body of a POST request. This will look similar to the previous option but instead of an Authorization header you put the credentials in as additional form elements. A request using the user name / password combination would look like this:
POST /oauth2/v2/token HTTP/1.1 Host: oauth2.strikeiron.com Content-Type: application/x-www-form-urlencoded grant_type=client_credentials client_id=user@example.com client_secret=auth123
Similarly, using the user name / license key combination would look something like this:
POST /oauth2/v2/token HTTP/1.1 Host: oauth2.strikeiron.com Content-Type: application/x-www-form-urlencoded grant_type=client_credentials client_id=user@example.com client_secret=6BC4029C9A94FBC5581F

0 COMMENTS

We’d like to hear from you!