pub struct HttpUserInfoFetcher { /* private fields */ }Expand description
SessionVersionFetcher backed by an AuthClient’s userinfo call.
Uses the caller’s bearer token to GET /oauth/userinfo and reads
response.session_version. Returns FetchError if the HTTP call
fails, the endpoint returns non-2xx, the response is unparseable, or
the response omits session_version (which signals the caller is
not a Human-entity account — but the validator should only ever
call the fetcher for tokens that carried a sv claim in the first
place, so None here is a protocol violation).
Implementations§
Source§impl HttpUserInfoFetcher
impl HttpUserInfoFetcher
pub fn new(client: Arc<AuthClient>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HttpUserInfoFetcher
impl !RefUnwindSafe for HttpUserInfoFetcher
impl Send for HttpUserInfoFetcher
impl Sync for HttpUserInfoFetcher
impl Unpin for HttpUserInfoFetcher
impl UnsafeUnpin for HttpUserInfoFetcher
impl !UnwindSafe for HttpUserInfoFetcher
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