Autional Autional
API Reference GitHub autional.com →

POST /auth/sso/initiate

Generate an authorization URL and state parameter for the specified SSO provider (SAML or OIDC), protected by PKCE and CSRF state, redirecting the user to the enterprise identity provider for authentication. References: SAML 2.0 Core §3.4, OpenID Connect Core 1.0 §3, RFC 7636 (PKCE).

Authentication `bearerAuth` application/json

Request Body

Schema: dto.SSOInitiateRequest

FieldTypeRequiredExampleConstraintsDescription
provider string Yes saml Provider
return_url string No https://app.example.com/callback Return URL
tenant_id string No tenant-001 Tenant ID

Responses

StatusDescriptionSchema
200SSO initiated successfully, returns authorization URL and state parameterdto.SSOInitiateResponse
400Invalid request parameters or unsupported SSO providergitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated or invalid tokengitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.SSOInitiateResponse

SSO login initiation response

FieldTypeRequiredExampleConstraintsDescription
auth_url string No Authorization URL
provider string No Provider
return_url string No Return URL
state string No State parameter
tenant_id string No Tenant ID

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No