Skip to main content

external_authorize

Function external_authorize 

Source
pub async fn external_authorize(
    __arg0: State<Arc<OAuthState>>,
    __arg1: Path<String>,
    headers: HeaderMap,
    __arg3: Form<ExternalAuthorizeForm>,
) -> Response
Expand description

Initiate external OAuth/OIDC login by redirecting to the provider.

POST /oauth/external/authorize/:provider

Dispatches on provider.kind:

  • oidc — fetches OIDC discovery, sends PKCE + nonce
  • oauth2 — uses configured endpoints, omits nonce, skips PKCE when pkce_supported = false