Skip to content

Handle OAuth2 callback (login and identity linking)

GET
/_torii/auth/oauth2/{provider}/callback
curl --request GET \
--url 'https://your-app.toriiauth.eu/_torii/auth/oauth2/example/callback?state=example&_relay=false'
provider
required
string
code
string
state
required
string
error
string
error_description
string
_relay
boolean
User-Agent
string

Found

Media type*/*
object

Unknown or expired state, or a browser without the state’s binding cookie; both answer the same {error, error_description} body

Media type*/*
object