Skip to main content

Module oidc_callback

Module oidc_callback 

Source
Expand description

External OAuth/OIDC provider callback handler.

Handles the return redirect from an external provider after the user authenticates. Supports two provider kinds:

  • oidc — full OpenID Connect: discovery + id_token JWT verification
  • oauth2 — generic OAuth 2.0: fixed endpoints + userinfo HTTP call

After claims are obtained (via either path), identity mapping, provisioning, and auth code issuance are identical regardless of provider kind.

Structs§

CallbackParams
ExternalAuthorizeForm
FederateOwnerLinkStart

Functions§

begin_federate_owner_link
Start an explicit Federate owner link for the currently signed-in hosted account. The endpoint accepts no target account or owner DID from the browser; both are resolved from the authenticated session and trusted provider configuration.
external_authorize
Initiate external OAuth/OIDC login by redirecting to the provider.
external_callback
Handle callback from external OIDC provider.