Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Change log:

...

This article applies to rator-rest-api-3.x and rator-rest-api-auth-1.x. With those versions, brandKey brand_key parameter is mandatory.

Token Endpoint (Authentication)

In order to obtain an access token, every request has to contain the brandKey brand_key parameter. This parameter is of type QUERY.

Example:curl -v -X POST -u myclientid:myclientsecret http://host:port/appcontext/oauth/token?username=#myusername&password=#mypassword&grant_type=password&brandKeybrand_key={mybrandkey}

REST API Endpoint (Resources)

...

-H 'Accept-Language: it' 
-H 'Authorization: Bearer 2acda61f-cf4f-42be-8561-563b5db7840f
-H 'X-RATOR-brand-key: BRAND1' 

...