pub struct ClientCredentialsOAuthFlow {
pub token_url: Url,
pub refresh_url: Option<Url>,
pub scopes: BTreeMap<Arc<str>, Arc<str>>,
}Expand description
Configuration for the OAuth 2.0 client credentials flow (RFC 6749 §4.4).
The recommended flow for service-to-service authentication where the client is itself the resource owner.
Fields§
§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 ClientCredentialsOAuthFlow
impl Clone for ClientCredentialsOAuthFlow
Source§impl Debug for ClientCredentialsOAuthFlow
impl Debug for ClientCredentialsOAuthFlow
Source§impl<'de> Deserialize<'de> for ClientCredentialsOAuthFlow
impl<'de> Deserialize<'de> for ClientCredentialsOAuthFlow
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 ClientCredentialsOAuthFlow
impl StructuralPartialEq for ClientCredentialsOAuthFlow
Auto Trait Implementations§
impl Freeze for ClientCredentialsOAuthFlow
impl RefUnwindSafe for ClientCredentialsOAuthFlow
impl Send for ClientCredentialsOAuthFlow
impl Sync for ClientCredentialsOAuthFlow
impl Unpin for ClientCredentialsOAuthFlow
impl UnsafeUnpin for ClientCredentialsOAuthFlow
impl UnwindSafe for ClientCredentialsOAuthFlow
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