pub struct AuthPkceState {
pub pkce_store: Arc<PkceStateStore>,
pub oidc_client: Arc<OidcServerClient>,
pub http_client: Arc<Client>,
pub post_login_redirect_uri: Option<String>,
}Expand description
Shared state injected into both PKCE route handlers.
Fields§
§pkce_store: Arc<PkceStateStore>In-memory PKCE state store (encrypted when state_encryption is on).
oidc_client: Arc<OidcServerClient>Server-side OIDC client for building authorize URLs and exchanging codes.
http_client: Arc<Client>Shared HTTP client for token-endpoint calls.
post_login_redirect_uri: Option<String>When set, the callback redirects here with the token in a
Secure; HttpOnly; SameSite=Strict cookie instead of returning JSON.
Auto Trait Implementations§
impl Freeze for AuthPkceState
impl !RefUnwindSafe for AuthPkceState
impl Send for AuthPkceState
impl Sync for AuthPkceState
impl Unpin for AuthPkceState
impl UnsafeUnpin for AuthPkceState
impl !UnwindSafe for AuthPkceState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more