1. Request DAR ID Identity

Endpoint:

REDIRECT <https://$>{FRONTEND_URL}?client_id=${CLIENT-ID}&scope=Read&redirect_uri=${REDIRECT-URI}&state=${STATE}

Required Parameters:

Parameter
Type
Description

client_id

string

The client ID you received from Dar ID when you registered.

scope

string

A space-delimited list of scopes. If not provided, scope defaults to an empty list for users that have not authorized any scopes for the application.

redirect_uri

string

Your application's callback URL

state

string

Random string for CSRF protection

response_type

string

Must be "code" (set by default)

Optional PKCE Parameters:

Parameter
Type
Description

code_challenge

string

PKCE challenge string

code_challenge_method

string

"plain" or "S256" (recommended)

Example Request:

REDIRECT <https://$>{FRONTEND_URL}?client_id=${CLIENT-ID}&scope=Read&redirect_uri=${REDIRECT-URI}&state=${STATE}

Response:

code=${CODE}&state=${STATE}

Last updated