Get Token

Method: HTTP POST method

Endpoint: http://<host_address>:<port_address>/oauth/token

Header:
  • Key as 'Authorization', value as 'Basic <Base64 converted value>'.

    This value is generated by any Base64 encoder application in the following format:

    <authorized.client.id>:<authorized.client.secret>

    Value for authorized.client.id and authorized.client.secret are configured by using configurator.

  • Key as 'Content-Type', value as 'application/x-www-form-urlencoded'
Body:
  • key as grant_type, value as 'password'
  • key as username, value as <username value as stored in 'users' table in database >
  • key as password, value as < password value as stored in ‘users’ table in database>
  • key as TENANTID, value as < TENANT value as stored in ‘users’ table in Database>
Note: If the user does not give TENANTID, the application retrieves it from the default configuration property (default.tenant.id).