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 the configurator.
• | Key as 'Content-Type', value as 'application/x-www-form-urlencoded' |
Body:
• | Key as grant_type, value as 'password' |
• | Key as user name, value <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).