pub struct DeviceCodeOAuthFlow {
pub device_authorization_url: Url,
pub token_url: Url,
pub refresh_url: Option<Url>,
pub scopes: BTreeMap<Arc<str>, Arc<str>>,
}Expand description
Configuration for the OAuth 2.0 device authorization flow (RFC 8628).
The recommended flow for input-constrained devices
like TVs, IoT, and CLI tools where the user
authorizes the device from a separate browser session.
Fields§
The device authorization endpoint 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).
Trait Implementations§
Source§impl Clone for DeviceCodeOAuthFlow
impl Clone for DeviceCodeOAuthFlow
Source§impl Debug for DeviceCodeOAuthFlow
impl Debug for DeviceCodeOAuthFlow
Source§impl<'de> Deserialize<'de> for DeviceCodeOAuthFlow
impl<'de> Deserialize<'de> for DeviceCodeOAuthFlow
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 DeviceCodeOAuthFlow
Source§impl PartialEq for DeviceCodeOAuthFlow
impl PartialEq for DeviceCodeOAuthFlow
Source§impl Serialize for DeviceCodeOAuthFlow
impl Serialize for DeviceCodeOAuthFlow
impl StructuralPartialEq for DeviceCodeOAuthFlow
Auto Trait Implementations§
impl Freeze for DeviceCodeOAuthFlow
impl RefUnwindSafe for DeviceCodeOAuthFlow
impl Send for DeviceCodeOAuthFlow
impl Sync for DeviceCodeOAuthFlow
impl Unpin for DeviceCodeOAuthFlow
impl UnsafeUnpin for DeviceCodeOAuthFlow
impl UnwindSafe for DeviceCodeOAuthFlow
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