pub struct ClientCredentials {
pub token_url: String,
pub client_id: String,
pub client_secret: String,
pub scope: Option<String>,
pub audience: Option<String>,
}Expand description
OAuth 2.0 client-credentials grant configuration.
Fields§
§token_url: StringThe token endpoint, e.g. https://login.example.com/oauth2/token.
client_id: StringThe client id.
client_secret: StringThe client secret.
scope: Option<String>Space-separated scopes to request, if the issuer needs them.
audience: Option<String>The audience (resource) to request, if the issuer needs it (e.g. Auth0).
Trait Implementations§
Source§impl Clone for ClientCredentials
impl Clone for ClientCredentials
Source§impl Debug for ClientCredentials
impl Debug for ClientCredentials
Auto Trait Implementations§
impl Freeze for ClientCredentials
impl RefUnwindSafe for ClientCredentials
impl Send for ClientCredentials
impl Sync for ClientCredentials
impl Unpin for ClientCredentials
impl UnsafeUnpin for ClientCredentials
impl UnwindSafe for ClientCredentials
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