pub struct ConsentForm {Show 13 fields
pub action: Option<String>,
pub client_id: String,
pub redirect_uri: String,
pub code_challenge: String,
pub scope: String,
pub state: Option<String>,
pub resource: Option<String>,
pub nonce: String,
pub fingerprint: String,
pub signature: String,
pub handle: Option<String>,
pub account_public_key: Option<String>,
pub oidc_nonce: Option<String>,
}Expand description
Consent form submission (Ed25519 challenge-response).
The client supplies its key fingerprint (not a username). The server
resolves the username from the pubkey:{fingerprint} → username reverse
index, then verifies the signature. The challenge string is
"{fingerprint}:{nonce}:{code_challenge}".
Fields§
§action: Option<String>Omitted/authorize authenticates an existing account. signup
provisions a new hosted account inside this same authorize transaction.
client_id: String§redirect_uri: String§code_challenge: String§scope: String§state: Option<String>§resource: Option<String>§nonce: StringEd25519 nonce (from hidden form field; validated server-side against pending_nonces)
fingerprint: StringSSH-style key fingerprint (SHA256:...) of the signing key.
signature: StringBase64-encoded Ed25519 signature
handle: Option<String>Requested one-label hosted-account handle. Signup action only.
account_public_key: Option<String>Standard-base64 raw or SSH-wire Ed25519 public key. Signup action only.
oidc_nonce: Option<String>OIDC nonce (passed through from authorize request, stored in auth code)
Trait Implementations§
Source§impl Debug for ConsentForm
impl Debug for ConsentForm
Source§impl<'de> Deserialize<'de> for ConsentForm
impl<'de> Deserialize<'de> for ConsentForm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ConsentForm
impl RefUnwindSafe for ConsentForm
impl Send for ConsentForm
impl Sync for ConsentForm
impl Unpin for ConsentForm
impl UnsafeUnpin for ConsentForm
impl UnwindSafe for ConsentForm
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request