Third Party
Initialize third party login
Initialize an OAuth-backed (authorization code grant type) login with a third party provider by redirecting to the specified provider login URL to retrieve an authorization code.
GET
https://{tenant_id}.hanko.io
/
thirdparty
/
auth
Query Parameters
provider
enum<string>
requiredThe name of the third party provider to log in with. Only providers enabled in the
configuration
via the thirdparty.providers
option can be used. Requesting an unsupported provider results in a
redirect with error details in the location query.
Available options:
google
, github
redirect_to
string
requiredBase64url encoded string representing the URL the
/callback
eventually redirects to after successful login
with the third party provider. It must match one of the allowed redirect URLs set in the backend
configuration
through the third_party.allowed_redirect_urls
.
Was this page helpful?