Herald
OpenapiOauth

Initiate OAuth login flow for a realm

GET
/api/oauth/{realmId}/{provider}/login

Path Parameters

realmId*string

Realm ID

provider*string

OAuth provider type (google, github, facebook, apple, discord, wechat, wechat_miniprogram)

Query Parameters

redirect_uri?string

Provider callback URI override

downstream_state?string

Existing downstream authorization transaction state

Response Body

OAuth login initiated

application/json
  1. response
authUrl*string
state*string
Example Request
curl -X GET 'https://example.com/api/oauth/string/string/login'
Example Response
{
  "authUrl": "string",
  "state": "string"
}