Struct ory_hydra_client::models::accept_login_request::AcceptLoginRequest [−][src]
pub struct AcceptLoginRequest { pub acr: Option<String>, pub context: Option<Value>, pub force_subject_identifier: Option<String>, pub remember: Option<bool>, pub remember_for: Option<i64>, pub subject: String, }
Fields
acr: Option<String>
ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it to express that, for example, a user authenticated using two factor authentication.
context: Option<Value>
force_subject_identifier: Option<String>
ForceSubjectIdentifier forces the "pairwise" user ID of the end-user that authenticated. The "pairwise" user ID refers to the (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID Connect specification. It allows you to set an obfuscated subject ("user") identifier that is unique to the client. Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the sub claim in the OAuth 2.0 Introspection. Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself you can use this field. Please note that setting this field has no effect if pairwise
is not configured in ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via subject_type
key in the client’s configuration). Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies that you have to compute this value on every authentication process (probably depending on the client ID or some other unique value). If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail.
remember: Option<bool>
Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she will not be asked to log in again.
remember_for: Option<i64>
RememberFor sets how long the authentication should be remembered for in seconds. If set to 0
, the authorization will be remembered for the duration of the browser session (using a session cookie).
subject: String
Subject is the user ID of the end-user that authenticated.
Implementations
impl AcceptLoginRequest
[src]
impl AcceptLoginRequest
[src]pub fn new(subject: String) -> AcceptLoginRequest
[src]
Trait Implementations
impl Clone for AcceptLoginRequest
[src]
impl Clone for AcceptLoginRequest
[src]fn clone(&self) -> AcceptLoginRequest
[src]
fn clone(&self) -> AcceptLoginRequest
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for AcceptLoginRequest
[src]
impl Debug for AcceptLoginRequest
[src]impl<'de> Deserialize<'de> for AcceptLoginRequest
[src]
impl<'de> Deserialize<'de> for AcceptLoginRequest
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<AcceptLoginRequest> for AcceptLoginRequest
[src]
impl PartialEq<AcceptLoginRequest> for AcceptLoginRequest
[src]fn eq(&self, other: &AcceptLoginRequest) -> bool
[src]
fn eq(&self, other: &AcceptLoginRequest) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &AcceptLoginRequest) -> bool
[src]
fn ne(&self, other: &AcceptLoginRequest) -> bool
[src]This method tests for !=
.
impl Serialize for AcceptLoginRequest
[src]
impl Serialize for AcceptLoginRequest
[src]impl StructuralPartialEq for AcceptLoginRequest
[src]
Auto Trait Implementations
impl RefUnwindSafe for AcceptLoginRequest
impl Send for AcceptLoginRequest
impl Sync for AcceptLoginRequest
impl Unpin for AcceptLoginRequest
impl UnwindSafe for AcceptLoginRequest
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,