Registry / auth / openidconnect

openidconnect

JSON →
library4.0.1rscratesunverified

OpenID Connect library for implementing authentication and authorization flows.

# Cargo.toml [dependencies] openidconnect = "4.0.1"
INSTALL
IMPORT
SIG · OPENIDCONNECT
O
openidconnect
authrustv4.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CoreClient
use openidconnect::core::CoreClient;

Discovers OpenID Connect provider metadata and creates a client.

use openidconnect::core::CoreClient; use openidconnect::reqwest::async_http_client; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let client = CoreClient::from_provider_metadata( openidconnect::core::CoreProviderMetadata::discover( "https://accounts.google.com/.well-known/openid-configuration", async_http_client, ).await?, openidconnect::ClientId::new("your-client-id".to_string()), None, ); Ok(()) }
Debug
Known issues
gotchaRequires an async runtime (e.g., Tokio) and the `reqwest` feature for HTTP client.
fix
Add `openidconnect = { version = "4", features = ["reqwest"] }` and use tokio.
affects: >=4.0.0
Upgrade
Version history
4.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
openidconnect — cargo add openidconnect · libregistry