pub enum HttpAuth {
OAuth(Arc<McpAuth>),
Provider {
provider: String,
token: Option<ProviderToken>,
},
}Expand description
pi’s AuthProvider: where a server’s bearer token comes from.
Variants§
OAuth(Arc<McpAuth>)
OAuth credentials, refreshed after a 401.
Provider
The token of a provider (auth.provider), read for every request.
Fields
§
token: Option<ProviderToken>Reads the token. Without it, no token is sent.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HttpAuth
impl !UnwindSafe for HttpAuth
impl Freeze for HttpAuth
impl Send for HttpAuth
impl Sync for HttpAuth
impl Unpin for HttpAuth
impl UnsafeUnpin for HttpAuth
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