Crate openid_client

Source
Expand description

§OpenID Client

A feature complete OpenID Client library for Rust. Not stable, kindly report any bugs.

§Implemented specs & features

The following client/RP features from OpenID Connect/OAuth2.0 specifications are implemented by openid-client.

§Generating JWKs

This crate uses Josekit for JWKs. To create JWKs, refer JWK in the Josekit documentation.

§Using MTLS

To use MTLS, ie; certificate authentication, you’ll need to create your own http client out of the types::OidcHttpClient trait. Override the types::OidcHttpClient::get_client_certificate function (which returns None by default) to return Some(types::http_client::ClientCertificate).

When the request requires MTLS, and the types::OidcHttpClient::get_client_certificate method returns None, a client error will be returned.

§Issuer API

§New Instance

§OIDC Discovery

§Webfinger Discovery

§Client from Issuer

§Client

§Instance methods

§Client Read

§Dynamic Client Registration

Modules§

client
OIDC Client module
helpers
Helpers
http_client
Default Http Client
issuer
Issuer
jwks
Jwks implementation used by this crate.
re_exports
Re exports from the crate
tokenset
TokenSet Module
types
Types Module