pub struct AuthorizationCodeOAuthFlow {
pub authorization_url: Url,
pub token_url: Url,
pub refresh_url: Option<Url>,
pub scopes: BTreeMap<Arc<str>, Arc<str>>,
pub pkce_required: bool,
}Expand description
Configuration for the OAuth 2.0 authorization code flow (RFC 6749 §4.1).
The recommended flow for user-agent clients, and the
only flow that supports PKCE (RFC 7636).
Fields§
The authorization URL. REQUIRED.
token_url: UrlThe token URL. REQUIRED.
refresh_url: Option<Url>The refresh URL. Optional in the spec; absent on the wire when the agent does not advertise a separate refresh endpoint.
scopes: BTreeMap<Arc<str>, Arc<str>>The available scopes, mapped from scope name to a human-readable description. REQUIRED (the field is always present on the wire; an empty map is valid for an agent that exposes no scope checks).
pkce_required: boolWhether PKCE (RFC 7636) is required. The
spec recommends true for public clients and
in fact every modern client should use it.
Trait Implementations§
Source§impl Clone for AuthorizationCodeOAuthFlow
impl Clone for AuthorizationCodeOAuthFlow
Source§impl Debug for AuthorizationCodeOAuthFlow
impl Debug for AuthorizationCodeOAuthFlow
Source§impl<'de> Deserialize<'de> for AuthorizationCodeOAuthFlow
impl<'de> Deserialize<'de> for AuthorizationCodeOAuthFlow
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
impl Eq for AuthorizationCodeOAuthFlow
impl StructuralPartialEq for AuthorizationCodeOAuthFlow
Auto Trait Implementations§
impl Freeze for AuthorizationCodeOAuthFlow
impl RefUnwindSafe for AuthorizationCodeOAuthFlow
impl Send for AuthorizationCodeOAuthFlow
impl Sync for AuthorizationCodeOAuthFlow
impl Unpin for AuthorizationCodeOAuthFlow
impl UnsafeUnpin for AuthorizationCodeOAuthFlow
impl UnwindSafe for AuthorizationCodeOAuthFlow
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