Herald
OpenapiOauth

Handle WeChat OAuth callback

GET
/api/oauth/{realmId}/wechat/callback

Path Parameters

realmId*string

Realm ID

Query Parameters

code*string

Authorization code

state*string

OAuth state for CSRF protection

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/oauth/string/wechat/callback?code=string&state=string"
Empty
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}
{  "code": "string",  "details": null,  "message": "string",  "requestId": "string",  "status": 0}