pub struct OAuth2AuthenticationSchemeDefinition {Show 13 fields
pub use_: Option<String>,
pub endpoints: Option<OAuth2AuthenticationEndpointsDefinition>,
pub authority: Option<String>,
pub grant: Option<String>,
pub client: Option<OAuth2AuthenticationClientDefinition>,
pub request: Option<OAuth2AuthenticationRequestDefinition>,
pub issuers: Option<Vec<String>>,
pub scopes: Option<Vec<String>>,
pub audiences: Option<Vec<String>>,
pub username: Option<String>,
pub password: Option<String>,
pub subject: Option<OAuth2TokenDefinition>,
pub actor: Option<OAuth2TokenDefinition>,
}Expand description
Represents the definition of an OAUTH2 authentication scheme
Fields§
§use_: Option<String>Gets/sets the name of the secret, if any, used to configure the authentication scheme
endpoints: Option<OAuth2AuthenticationEndpointsDefinition>Gets/sets the configuration of the OAUTH2 endpoints to use
Gets/sets the URI that references the OAUTH2 authority to use.
grant: Option<String>Gets/sets the grant type to use.
client: Option<OAuth2AuthenticationClientDefinition>Gets/sets the definition of the client to use.
request: Option<OAuth2AuthenticationRequestDefinition>Gets/sets the configuration of the authentication request to perform.
issuers: Option<Vec<String>>Gets/sets a list of valid issuers for token checks.
scopes: Option<Vec<String>>Gets/sets the scopes to request the token for.
audiences: Option<Vec<String>>Gets/sets the audiences to request the token for.
username: Option<String>Gets/sets the username to use (for Password grant).
password: Option<String>Gets/sets the password to use (for Password grant).
subject: Option<OAuth2TokenDefinition>Gets/sets the token representing the identity of the party on whose behalf the request is made.
actor: Option<OAuth2TokenDefinition>Gets/sets the token representing the acting party’s identity.
Trait Implementations§
Source§impl Clone for OAuth2AuthenticationSchemeDefinition
impl Clone for OAuth2AuthenticationSchemeDefinition
Source§fn clone(&self) -> OAuth2AuthenticationSchemeDefinition
fn clone(&self) -> OAuth2AuthenticationSchemeDefinition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for OAuth2AuthenticationSchemeDefinition
impl Default for OAuth2AuthenticationSchemeDefinition
Source§fn default() -> OAuth2AuthenticationSchemeDefinition
fn default() -> OAuth2AuthenticationSchemeDefinition
Source§impl<'de> Deserialize<'de> for OAuth2AuthenticationSchemeDefinition
impl<'de> Deserialize<'de> for OAuth2AuthenticationSchemeDefinition
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>,
Source§impl PartialEq for OAuth2AuthenticationSchemeDefinition
impl PartialEq for OAuth2AuthenticationSchemeDefinition
Source§fn eq(&self, other: &OAuth2AuthenticationSchemeDefinition) -> bool
fn eq(&self, other: &OAuth2AuthenticationSchemeDefinition) -> bool
self and other values to be equal, and is used by ==.