Skip to main content

Adullam OAuth Authentication

Adullam supports OAuth 2.0 for secure authentication and authorization. This documentation provides an overview of how to implement OAuth in your applications to interact with the Adullam platform.

OAuth Flow

The OAuth flow involves several steps:
1

Authorization Request

Redirect the user to the Adullam authorization endpoint to request access to their resources.
2

User Consent

The user logs in and consents to the requested permissions.
3

Authorization Code

After consent, the user is redirected back to your application with an authorization code.
4

Token Exchange

Exchange the authorization code for an access token by making a request to the Adullam token endpoint.
5

Access Resources

Use the access token to make authenticated requests to the Adullam API.

Example Authorization Request

GET /v1/oauth/authorize?response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=YOUR_REDIRECT_URI&scope=read write
Replace YOUR_CLIENT_ID and YOUR_REDIRECT_URI with your application’s client ID and redirect URI, respectively.

Example Token Exchange Request

POST /v1/oauth/token
Content-Type: application/json
{
  "grant_type": "authorization_code",
  "code": "AUTHORIZATION_CODE",
  "redirect_uri": "YOUR_REDIRECT_URI",
  "client_id": "YOUR_CLIENT_ID",
  "client_secret": "YOUR_CLIENT_SECRET"
}
Replace AUTHORIZATION_CODE, YOUR_REDIRECT_URI, YOUR_CLIENT_ID, and YOUR_CLIENT_SECRET with the appropriate values.

Using the Access Token

To use the access token, include it in the Authorization header of your HTTP requests to the Adullam REST API. The header should be formatted as follows:
Authorization: Bearer YOUR_ACCESS_TOKEN
Replace YOUR_ACCESS_TOKEN with the actual access token you received.

Support

For assistance with Adullam OAuth authentication, please refer to the support documentation or contact our support team at [email protected].