Versions Compared

Key

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


Change log:

Date:

Author:

Version:

Changes:

Completed

Ext.

Int.

Is in Core

Jira Ref.

19 November 2018

Emil Ion Ifrim

1.0

Doc. created

Yes

 


x

N/A

 



The purpose of this section is to describe how to configure brand access.

...

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'