Skip to main content

OAuth2

๐Ÿ“„๏ธ Create a new OAuth2 client

Create a new client ID/secret pair that can be used with the client credentials grant type. A valid SlashID organization ID and API key must be used to authenticate and authorize the request. The client credentials can be configured. SlashID currently only supports the OAuth 2.0 client credentials grant, therefore we enforce that the `grant_types` field must be ['client_credentials']. Other values will return a `400` error code. Note that as the client credentials grant requires a client secret, all clients should be regarded as confidential, as defined in the OAuth 2.0 specification (https://oauth.net/2/client-types/). The response body will include the client ID and client secret that can be used with the `/oauth2/tokens` endpoints to obtain an access token. The client secret must be stored securely, and cannot be retrieved in subsequent API calls. If you lose the client secret, a new secret can be generated using the `PUT /oauth2/clients/{oauth_client_id}/secret` endpoint.