pub struct OAuth2AuthenticationSchemeDefinitionBuilder { /* private fields */ }Expand description
Represents the service used to build OAuth2AuthenticationSchemeDefinitions
Implementations§
Source§impl OAuth2AuthenticationSchemeDefinitionBuilder
impl OAuth2AuthenticationSchemeDefinitionBuilder
Sourcepub fn use_secret(&mut self, secret: &str) -> &mut Self
pub fn use_secret(&mut self, secret: &str) -> &mut Self
Configures the authentication scheme to load from the specified secret
Sets the OAuth2 authority URL
Sourcepub fn with_grant(&mut self, grant: &str) -> &mut Self
pub fn with_grant(&mut self, grant: &str) -> &mut Self
Sets the OAuth2 grant type
Sourcepub fn with_client_id(&mut self, id: &str) -> &mut Self
pub fn with_client_id(&mut self, id: &str) -> &mut Self
Sets the OAuth2 client id
Sourcepub fn with_client_secret(&mut self, secret: &str) -> &mut Self
pub fn with_client_secret(&mut self, secret: &str) -> &mut Self
Sets the OAuth2 client secret
Sourcepub fn with_scopes(&mut self, scopes: Vec<String>) -> &mut Self
pub fn with_scopes(&mut self, scopes: Vec<String>) -> &mut Self
Sets the OAuth2 scopes
Sourcepub fn build(self) -> AuthenticationPolicyDefinition
pub fn build(self) -> AuthenticationPolicyDefinition
Builds the configured AuthenticationPolicyDefinition
Trait Implementations§
Source§impl Default for OAuth2AuthenticationSchemeDefinitionBuilder
impl Default for OAuth2AuthenticationSchemeDefinitionBuilder
Source§fn default() -> OAuth2AuthenticationSchemeDefinitionBuilder
fn default() -> OAuth2AuthenticationSchemeDefinitionBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OAuth2AuthenticationSchemeDefinitionBuilder
impl RefUnwindSafe for OAuth2AuthenticationSchemeDefinitionBuilder
impl Send for OAuth2AuthenticationSchemeDefinitionBuilder
impl Sync for OAuth2AuthenticationSchemeDefinitionBuilder
impl Unpin for OAuth2AuthenticationSchemeDefinitionBuilder
impl UnsafeUnpin for OAuth2AuthenticationSchemeDefinitionBuilder
impl UnwindSafe for OAuth2AuthenticationSchemeDefinitionBuilder
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