Struct oauth2::AuthorizationRequest [−][src]
pub struct AuthorizationRequest<'a> { /* fields omitted */ }
Expand description
A request to the authorization endpoint
Implementations
Appends a collection of scopes to the token request.
Appends an extra param to the authorization URL.
This method allows extensions to be used without direct support from
this crate. If name
conflicts with a parameter managed by this crate, the
behavior is undefined. In particular, do not set parameters defined by
RFC 6749 or
RFC 7636.
Security Warning
Callers should follow the security recommendations for any OAuth2 extensions used with this function, which are beyond the scope of RFC 6749.
Enables the Implicit Grant flow.
Enables custom flows other than the code
and token
(implicit flow) grant.
Enables the use of Proof Key for Code Exchange (PKCE).
PKCE is highly recommended for all public clients (i.e., those for which there is no client secret or for which the client secret is distributed with the client, such as in a native, mobile app, or browser app).
Overrides the redirect_url
to the one specified.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for AuthorizationRequest<'a>
impl<'a> Send for AuthorizationRequest<'a>
impl<'a> Sync for AuthorizationRequest<'a>
impl<'a> Unpin for AuthorizationRequest<'a>
impl<'a> UnwindSafe for AuthorizationRequest<'a>