Oauth

OAuth callback endpoint

GET/api/oauth/callback

Handles the OAuth provider callback after user authorization. This endpoint processes the authorization code and exchanges it for an access token. On success, displays an HTML page that closes the authorization window.

Query Parameters

state*string

State parameter for OAuth security (CSRF protection)

code*string

Authorization code from the OAuth provider

error?string

Error code if authorization failed

error_description?string

Error description if authorization failed

Response Body

text/html

text/html

curl -X GET "http://localhost:8080/api/oauth/callback?state=string&code=string"
"string"
"string"