pub struct OAuthAccountApi;Expand description
Trusted direct account operations. The caller supplies the authorized user;
these methods are not HTTP routes. HTTP handlers always resolve the session
first, and cannot select a principal with a userId body/query field.
Implementations§
Source§impl OAuthAccountApi
impl OAuthAccountApi
Sourcepub async fn get_access_token(
user_id: &str,
selection: OAuthAccountSelection,
ctx: &AuthContext<impl AuthSchema>,
) -> AuthResult<AuthResponse>
pub async fn get_access_token( user_id: &str, selection: OAuthAccountSelection, ctx: &AuthContext<impl AuthSchema>, ) -> AuthResult<AuthResponse>
§Errors
Returns storage, provider, selection, or token errors.
Sourcepub async fn refresh_token(
user_id: &str,
selection: OAuthAccountSelection,
ctx: &AuthContext<impl AuthSchema>,
) -> AuthResult<AuthResponse>
pub async fn refresh_token( user_id: &str, selection: OAuthAccountSelection, ctx: &AuthContext<impl AuthSchema>, ) -> AuthResult<AuthResponse>
§Errors
Returns storage, provider, selection, or refresh errors.
Sourcepub async fn account_info(
user_id: &str,
selection: OAuthAccountSelection,
ctx: &AuthContext<impl AuthSchema>,
) -> AuthResult<AuthResponse>
pub async fn account_info( user_id: &str, selection: OAuthAccountSelection, ctx: &AuthContext<impl AuthSchema>, ) -> AuthResult<AuthResponse>
§Errors
Returns storage, provider, selection, or profile errors.
Auto Trait Implementations§
impl Freeze for OAuthAccountApi
impl RefUnwindSafe for OAuthAccountApi
impl Send for OAuthAccountApi
impl Sync for OAuthAccountApi
impl Unpin for OAuthAccountApi
impl UnsafeUnpin for OAuthAccountApi
impl UnwindSafe for OAuthAccountApi
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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