pub struct TrustOAuth2JwtGrantIssuer {
pub allow_any_subject: Option<bool>,
pub expires_at: String,
pub issuer: String,
pub jwk: Box<JsonWebKey>,
pub scope: Vec<String>,
pub subject: Option<String>,
}
Expand description
TrustOAuth2JwtGrantIssuer : Trust OAuth2 JWT Bearer Grant Type Issuer Request Body
Fields§
§allow_any_subject: Option<bool>
The "allow_any_subject" indicates that the issuer is allowed to have any principal as the subject of the JWT.
expires_at: String
The "expires_at" indicates, when grant will expire, so we will reject assertion from "issuer" targeting "subject".
issuer: String
The "issuer" identifies the principal that issued the JWT assertion (same as "iss" claim in JWT).
jwk: Box<JsonWebKey>
§scope: Vec<String>
The "scope" contains list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749])
subject: Option<String>
The "subject" identifies the principal that is the subject of the JWT.
Implementations§
source§impl TrustOAuth2JwtGrantIssuer
impl TrustOAuth2JwtGrantIssuer
sourcepub fn new(
expires_at: String,
issuer: String,
jwk: JsonWebKey,
scope: Vec<String>
) -> TrustOAuth2JwtGrantIssuer
pub fn new( expires_at: String, issuer: String, jwk: JsonWebKey, scope: Vec<String> ) -> TrustOAuth2JwtGrantIssuer
Trust OAuth2 JWT Bearer Grant Type Issuer Request Body
Trait Implementations§
source§impl Clone for TrustOAuth2JwtGrantIssuer
impl Clone for TrustOAuth2JwtGrantIssuer
source§fn clone(&self) -> TrustOAuth2JwtGrantIssuer
fn clone(&self) -> TrustOAuth2JwtGrantIssuer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TrustOAuth2JwtGrantIssuer
impl Debug for TrustOAuth2JwtGrantIssuer
source§impl<'de> Deserialize<'de> for TrustOAuth2JwtGrantIssuer
impl<'de> Deserialize<'de> for TrustOAuth2JwtGrantIssuer
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TrustOAuth2JwtGrantIssuer
impl PartialEq for TrustOAuth2JwtGrantIssuer
source§fn eq(&self, other: &TrustOAuth2JwtGrantIssuer) -> bool
fn eq(&self, other: &TrustOAuth2JwtGrantIssuer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TrustOAuth2JwtGrantIssuer
Auto Trait Implementations§
impl RefUnwindSafe for TrustOAuth2JwtGrantIssuer
impl Send for TrustOAuth2JwtGrantIssuer
impl Sync for TrustOAuth2JwtGrantIssuer
impl Unpin for TrustOAuth2JwtGrantIssuer
impl UnwindSafe for TrustOAuth2JwtGrantIssuer
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