Authentication
Locate2u uses oauth2 (OAuth2, implicit) for authentication.
Using Client Credentials Flow you can authenticate with Locate2u. The Client Credentials Flow involves an application exchanging its application credentials, such as client ID and client secret, for an access token.
Read information on how to generate your client credentials for Locate2u on this page.
How will it work?
- Developers will send the application’s credentials to the Auth0 Authorization Server. Read how to generate API keys to understand the flow for generating Application’s credentials.
- The Authorization Server will validate the application’s credentials.
- The Authorization Server will send back responses with an access token.
- Developers can use the access token to call an API on behalf of their application.
- Locate2u Public API will respond with the request data.
- Call Locate2u Auth (identity server)
Production URL : id.locate2u.com/connect/token
Sandbox/testing : http://id-test.locate2u.com/
URL : id.locate2u.com/connect/token
2. In the request body, supply :
- grant_type: client_credentials
- client_id: yourApplicationClientIdHere
- client_secret: yourClientSecretHere
- scope: locate2u.api
grant_type: client_credentials
client_id: yourApplicationClientIdHere
client_secret: yourClientSecretHere
scope: locate2u.api
3. Identity server in response will provide
- ​access_token
- token_type
- expires_in (Token expiry time is 30 mins)
Developers can use the refresh_token to get a fresh access_token when the previous one expires.
access_token
token_type
expires_in (Token expiry time is 30 mins)