OAuth 2.0 Authorization
Usage
OAuth 2.0 Authorization
This endpoint initiates the OAuth 2.0 authorization flow for user authentication and obtaining an authorization code.
Using the State Parameter (Best Practice)
The state parameter is crucial for security in OAuth flows:
- Generate a cryptographically secure random string
- Store it in the user’s session before redirecting
- Validate it matches when handling the callback
- This prevents CSRF attacks
Note: OAuth scopes are predefined during client application setup and cannot be modified during the authorization request. The access token will include all scopes that were approved during client creation.
GET
OAuth 2.0 Authorization
Documentation Index
Fetch the complete documentation index at: https://whitebit-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.