pub struct OidcAuthorization {
pub authorization_url: String,
pub state: SecretString,
pub binding: SecretString,
pub expires_by: u64,
}Expand description
A begun sign-in through the identity provider.
The platform sends the person to authorization_url, receives the provider’s redirect at
the redirect_uri it named, and hands this value with the redirect’s state and code to
AuthClient::complete_oidc_login. Good once, and until expires_by.
It is the client’s half of the ceremony, and the client must keep it — in memory, or in the
platform’s secure storage where the browser leg can outlive the process — because the
callback is refused without its binding (issue #517). Never send any of it anywhere but
back to AuthClient::complete_oidc_login.
No Debug: the state is the key to the pending ceremony, the URL carries it, and the binding
is the secret that proves this client began it.
Fields§
Where to send the person. Carries the whole authorization request in its query.
state: SecretStringThe state the provider’s redirect will echo.
binding: SecretStringThe secret binding the ceremony to this client: 256 random bits, unpadded base64url.
Only its S256 hash went to the server, at the authorize; the callback presents the
secret itself, so a state and code that some other client began — an attacker’s,
carried to this one — cannot be completed here.
expires_by: u64The absolute Unix-seconds instant the ceremony stops being redeemable.
Auto Trait Implementations§
impl Freeze for OidcAuthorization
impl RefUnwindSafe for OidcAuthorization
impl Send for OidcAuthorization
impl Sync for OidcAuthorization
impl Unpin for OidcAuthorization
impl UnsafeUnpin for OidcAuthorization
impl UnwindSafe for OidcAuthorization
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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