Struct splinter::oauth::OAuthClientBuilder [−][src]
pub struct OAuthClientBuilder { /* fields omitted */ }
Expand description
A builder for a new OAuthClient
.
This builder constructs an OAuthClient
using the most general parameters. Configurations
that set values specific to certain providers may be available, depending on which features
have been enabled at compile time.
Implementations
Builds an OAuthClient
.
Errors
Returns an OAuthClientBuildError
if any of the auth, redirect, or token URLs are
invalid.
Sets the client ID for the OAuth2 provider.
Sets the client secret for the OAuth2 provider.
Sets the authorize URL for the OAuth2 provider.
Sets the redirect URL for the OAuth2 provider.
Sets the token URL for the OAuth2 provider.
Sets extra parameters that will be added to an authorization request
Sets the scopes to request from the OAuth2 provider.
Sets the subject provider to use to request the user’s subject identifier.
pub fn with_inflight_request_store(
self,
inflight_request_store: Box<dyn InflightOAuthRequestStore>
) -> Self
pub fn with_inflight_request_store(
self,
inflight_request_store: Box<dyn InflightOAuthRequestStore>
) -> Self
Sets the in-flight request store in order to store values between requests to and from the OAuth2 provider.
Sets the profile provider to use to request the user’s profile details.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for OAuthClientBuilder
impl Send for OAuthClientBuilder
impl Sync for OAuthClientBuilder
impl Unpin for OAuthClientBuilder
impl !UnwindSafe for OAuthClientBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more