pub struct DefaultRefreshClaims;Expand description
默认刷新声明解析器:不附加任何自定义声明(零配置可用)。
Trait Implementations§
Source§impl Clone for DefaultRefreshClaims
impl Clone for DefaultRefreshClaims
Source§impl Debug for DefaultRefreshClaims
impl Debug for DefaultRefreshClaims
Source§impl Default for DefaultRefreshClaims
impl Default for DefaultRefreshClaims
Source§impl RefreshClaimsResolver for DefaultRefreshClaims
impl RefreshClaimsResolver for DefaultRefreshClaims
Source§fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 ActionContext,
_sub: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Value, BaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_ctx: &'life1 ActionContext,
_sub: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Value, BaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
解析新 Access Token 的自定义声明。 Read more
Source§fn resolve_pair<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 ActionContext,
sub: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<TokenPairClaims, BaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve_pair<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 ActionContext,
sub: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<TokenPairClaims, BaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
从同一次业务快照解析新 Access/Refresh Token 的声明。 Read more
Source§fn resolve_pair_from_claims<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 ActionContext,
claims: &'life2 TokenClaims,
) -> Pin<Box<dyn Future<Output = Result<TokenPairClaims, BaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn resolve_pair_from_claims<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 ActionContext,
claims: &'life2 TokenClaims,
) -> Pin<Box<dyn Future<Output = Result<TokenPairClaims, BaseError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
基于已通过核心签名、时效、类型和撤销校验的旧 Refresh Token 完整声明,解析
新 Token 对的声明。 Read more
Auto Trait Implementations§
impl Forget for DefaultRefreshClaims
impl Freeze for DefaultRefreshClaims
impl Move for DefaultRefreshClaims
impl RefUnwindSafe for DefaultRefreshClaims
impl Send for DefaultRefreshClaims
impl Sync for DefaultRefreshClaims
impl Unpin for DefaultRefreshClaims
impl UnsafeUnpin for DefaultRefreshClaims
impl UnwindSafe for DefaultRefreshClaims
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more