Skip to main content
GET
/
v1
/
auth
/
sso
/
oauth2
/
callback
Oauth2 Callback Handler
curl --request GET \
  --url http://localhost:8000/v1/auth/sso/oauth2/callback
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "<string>",
  "first_name": "<string>",
  "last_name": "<string>",
  "idp_type": "PASSWORD",
  "current_tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "current_tenant_role": "USER",
  "default_tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Documentation Index

Fetch the complete documentation index at: https://docs.knowledgestack.ai/llms.txt

Use this file to discover all available pages before exploring further.

Query Parameters

provider
enum<string>
required

Provider to initiate SSO with

Available options:
PASSWORD,
GOOGLE,
TENANT
code
string | null

Authorization code from provider

state
string | null

State parameter for CSRF protection

error
string | null

Error code if authorization failed

error_description
string | null

Error description

tenant_id
string<uuid> | null

Tenant ID to initiate SSO with

Response

Successful Response

id
string<uuid>
required

User ID

email
string | null
required

Email address of the user

first_name
string | null
required

First name of the user

last_name
string | null
required

Last name of the user

idp_type
enum<string>
required

Identity provider type of the user

Available options:
PASSWORD,
GOOGLE,
TENANT
current_tenant_id
string<uuid>
required

Current tenant ID the user is logged into

current_tenant_role
enum<string>
required

Current tenant role of the user

Available options:
USER,
OWNER,
ADMIN
default_tenant_id
string<uuid>
required

Default tenant ID the user shall be logged into