AttestoClient.Logout (AttestoClient v2.2.0)

Copy Markdown View Source

Build an OpenID Connect RP-Initiated Logout request.

The returned URL directs the user agent to the provider's discovered end_session_endpoint. This module constructs the standards-based request; it does not destroy an application session. The caller owns logout-state correlation and decides when local session termination is appropriate.

Summary

Functions

Build an RP-Initiated Logout URL.

Functions

url(opts)

@spec url(keyword()) :: {:ok, String.t()} | {:error, term()}

Build an RP-Initiated Logout URL.

Required options: :issuer and either :id_token_hint or :logout_hint. Discovery is fetched unless :metadata is supplied. Optional parameters are :client_id, :post_logout_redirect_uri, :state, and :ui_locales.