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§