pub struct TokenExchange {
pub endpoint: String,
pub subject: BearerCredentialProvider,
pub subject_token_type: Option<String>,
pub requested_token_type: Option<String>,
pub audience: Option<String>,
pub scope: Option<String>,
}Expand description
RFC 8693 token-exchange configuration.
Fields§
§endpoint: StringThe token-exchange endpoint.
subject: BearerCredentialProviderThe provider of the token to exchange.
subject_token_type: Option<String>The type of the subject token; defaults to ID_TOKEN_TYPE.
requested_token_type: Option<String>The type of token to request; defaults to ACCESS_TOKEN_TYPE.
audience: Option<String>The audience to request, if the exchange needs it.
scope: Option<String>Space-separated scopes to request, if the exchange needs them.
Trait Implementations§
Source§impl Clone for TokenExchange
impl Clone for TokenExchange
Auto Trait Implementations§
impl !RefUnwindSafe for TokenExchange
impl !UnwindSafe for TokenExchange
impl Freeze for TokenExchange
impl Send for TokenExchange
impl Sync for TokenExchange
impl Unpin for TokenExchange
impl UnsafeUnpin for TokenExchange
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