pub struct AuthenticateInput {
pub session_id: String,
pub challenge: String,
pub signer_did: String,
pub created_time: Option<u64>,
pub session_pubkey_b58btc: Option<String>,
}Expand description
Inputs to /auth/authenticate after the transport layer has
verified the signer.
The transport layer (DIDComm unpack_signed, SIOPv2 JWS
verification, etc.) extracts the signer and produces this
struct; the canonical handler then validates against the
session and mints tokens.
Fields§
§session_id: String§challenge: String§signer_did: StringVerified signer DID. The transport layer must produce this from a cryptographic check (DIDComm authcrypt, JWS signature, etc.) — never echo it from the request body unchecked.
created_time: Option<u64>Optional message created_time for DIDComm freshness
checking. None for REST transports.
session_pubkey_b58btc: Option<String>Optional ephemeral session pubkey to register against
this session at the auth transition. SIOPv2 callers
(did-hosting-control) carry one to support
Data-Integrity-proof binding on subsequent
trust-task envelopes; DIDComm transports normally leave
this None. The route layer is responsible for any
shape-validation (e.g. z6Mk… Ed25519 multikey prefix)
before passing it in.
Trait Implementations§
Source§impl Clone for AuthenticateInput
impl Clone for AuthenticateInput
Source§fn clone(&self) -> AuthenticateInput
fn clone(&self) -> AuthenticateInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for AuthenticateInput
impl RefUnwindSafe for AuthenticateInput
impl Send for AuthenticateInput
impl Sync for AuthenticateInput
impl Unpin for AuthenticateInput
impl UnsafeUnpin for AuthenticateInput
impl UnwindSafe for AuthenticateInput
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
T.