API Endpoints
Trimble Identity API endpoints used in client authentication are documented below. The API is built on the industry-standard OAuth 2.0 and OpenID Connect Core 1.0 protocols.
Authorize
Section titled “Authorize”The authorize endpoint supports three response_types: code, id_token, token. If code is present in your parameters, JWTs are not needed for authorization.
GET /oauth/authorizeThe token endpoint is use to retrieve an access token.
POST /oauth/tokenUserInfo
Section titled “UserInfo”GET /oauth/userinfoLogout
Section titled “Logout”GET /oauth/logoutRevoke
Section titled “Revoke”The token revocation endpoint is used to revoke, or invalidate, a specific refresh token.
POST /oauth/revokeHeaders
Section titled “Headers”| Header | Description |
|---|---|
| Authorization | Basic (base64 encoded Client id:Client secret) |
Parameters
Section titled “Parameters”| Parameter | Description |
|---|---|
| token | Refresh token to be revoked |
| token_type_hint | Refresh token |
Example
Section titled “Example”# Your application credentialsclient_id="your client id"client_secret="your client secret"token="token to be revoked"hint="token hint"
encoded_credentials=$(echo -n "$client_id:$client_secret" | base64)
curl --location --request POST "https://id.trimble.com/oauth/revoke" \--header "Authorization: Basic $encoded_credentials" \--header "Content-Type: application/x-www-form-urlencoded" \--data-urlencode "token=$token" \--data-urlencode "token_type_hint=$hint"