Skip to main content

Module client

Module client 

Source
Expand description

Async OAuth client for auth_service (tokio).

Beside discovery, the code and refresh grants, introspection, revocation and registration, the client does the device flow (RFC 8628), token exchange (RFC 8693), pushed authorization requests (RFC 9126), RP-initiated logout URLs, private_key_jwt client authentication (RFC 7523) and DPoP (RFC 9449). Every request is sent once: a redirect is never followed, so a credential cannot be replayed to another origin.

Structs§

AuthorizationUrlOpts
Client
DeviceAuthorizationOpts
Options for Client::start_device_authorization.
IntrospectionResponse
OidcMetadata
PushedAuthorizationOpts
Options for Client::push_authorization_request.
TokenExchangeOpts
Options for Client::exchange_token.
TokenOpts
TokenResponse
UserInfoResponse

Enums§

ClientAuthMethod
Match the registered token_endpoint_auth_method. Public clients use None.
TokenType
How a token is presented to the userinfo endpoint (and to a resource server).