Developer Documentation
DAR Open Network
  • Overview
  • DAR ID
    • Introduction
    • Client ID Registration
    • Authentication
      • 1. Request DAR ID Identity
      • 2. Exchange Code for Access Token
      • 3. Refresh Access Token
      • 4. Get Access Token Details
      • 5. Get User DAR ID Information
    • Security Best Practices
  • DeAI
    • Multi-Agent Framework
      • Development Guide
      • Agent Options
      • Endpoints Overview
    • aiNFT Framework
      • Overview
      • Chat with an NFT Agent
      • Generate a Story for an NFT Agent
      • Group Chat Between Multiple NFT Agents
    • Game Asset Generator
Powered by GitBook
On this page
  1. DAR ID
  2. Authentication

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}
PreviousAuthenticationNext2. Exchange Code for Access Token

Last updated 4 months ago