neuron-auth-oidc 0.4.0

Stub OIDC client credentials / token exchange auth provider
Documentation

neuron-auth-oidc

OIDC client credentials / token exchange auth provider for neuron (stub)

crates.io docs.rs license

Overview

neuron-auth-oidc will implement AuthProvider using the OIDC client credentials grant and token exchange flows. It handles token caching and refresh before expiry.

Status: stub. The trait implementation and config types are defined; the HTTP client integration is in progress. The interface is stable.

Usage

[dependencies]
neuron-auth-oidc = "0.4"
neuron-auth = "0.4"
use neuron_auth_oidc::OidcAuthProvider;
use neuron_auth::AuthProvider;
use std::sync::Arc;

let auth: Arc<dyn AuthProvider> = Arc::new(OidcAuthProvider::builder()
    .token_url("https://auth.example.com/token")
    .client_id("my-client")
    .client_secret("my-secret")
    .build()?);

Part of the neuron workspace

neuron is a composable async agentic AI framework for Rust. See the book for architecture and guides.