Skip to main content

Crate greentic_oauth_core

Crate greentic_oauth_core 

Source
Expand description

Greentic OAuth core primitives shared across services.

The crate exposes a consistent provider interface, including optional PKCE verifier forwarding and pass-through extra_params so higher-level brokers can enrich authorization and token requests for specific providers without reinventing serialization concerns.

Re-exports§

pub use oidc::IdClaims;
pub use oidc::OidcClient;
pub use oidc::OidcError;
pub use oidc::PkceState;
pub use pkce::PkcePair;
pub use provider::Provider;
pub use provider::ProviderError;
pub use provider::ProviderResult;
pub use provider_tokens::ProviderOAuthClientConfig;
pub use provider_tokens::ProviderOAuthFlow;
pub use provider_tokens::ProviderSecretStore;
pub use provider_tokens::ProviderToken;
pub use provider_tokens::ProviderTokenError;
pub use provider_tokens::ProviderTokenService;
pub use provider_tokens::client_credentials_path;
pub use provider_tokens::refresh_token_path;
pub use state::DEFAULT_STATE_TTL;
pub use state::StateClaims;
pub use state::StateError;
pub use state::sign_state;
pub use state::verify_state;
pub use types::AccessToken;
pub use types::OAuthError;
pub use types::OAuthFlowRequest;
pub use types::OAuthFlowResult;
pub use types::OAuthRequestCtx;
pub use types::OAuthResult;
pub use types::OwnerKind;
pub use types::ProviderId;
pub use types::TokenHandleClaims;
pub use types::TokenSet;
pub use types::ValidatedClaims;
pub use verifier::CodeVerifierStore;
pub use verifier::InMemoryCodeVerifierStore;

Modules§

config
constants
Shared constants used across Greentic OAuth services.
oidc
OpenID Connect relying party utilities.
pkce
provider
provider_tokens
state
types
verifier

Structs§

TenantCtx
Context that accompanies every invocation across Greentic runtimes.

Functions§

health_check
Lightweight probe to ensure the crate is wired in correctly.