Resource Owner Password Credentials Grant

Usage
Retrieve the JWT access token using the Resource Owner Credentials
Basic URI
/DesktopModules/RazorCart/Services/v1/Authorize
Parameters
grant_type         MUST be password to use this method
username          The host/admin username
password           The host/admin password
scope                 The scope(s) that will grant the access to a certain endpoint(s)
Headers
Authorization: Basic Base64(ClientID + ":")
Content-Type: application/x-www-form-urlencoded  or  application/json
Service Type
OAuth 2.0
 
Request (Form Url-Encoded)
POST https://domain.com/DesktopModules/RazorCart/Services/v1/Authorize HTTP/1.1
Authorization: Basic S0JnMVl0ZkdrblJuelBQRzo=
Content-Type: application/x-www-form-urlencoded

grant_type=password&username=host&password=pass1234&scope=orders%20create%20edit%20delete
 
Request (JSON)
POST https://domain.com/DesktopModules/RazorCart/Services/v1/Authorize HTTP/1.1
Authorization: Basic S0JnMVl0ZkdrblJuelBQRzo=
Content-Type: application/json

{ grant_type: 'password', username: 'host', password: 'pass1234', scope: 'orders create edit delete' }
 
Response
{
  "token_type": "Bearer",
  "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoiaG9zdCIsImF1ZCI6ImRubjg
  ubG9jYWwvODA0Iiwic3ViIjoiS0JnMVl0ZkdrblJuelBQRyIsImV4cCI6MTQ4ODQ3ODQzOCwic2NvcGUiOiJwcml2
  YXRlIG9yZGVycyBjcmVhdGUgZWRpdCBkZWxldGUifQ.8j46aVv8Qgc9EeemjgfiX4rQiKpcdJHtNkQQGMpm1BM",
  "expires_in": 3600,
  "scope": "orders create edit delete"
}

Add Feedback