pub struct HttpTicketChecker {
pub check_url: String,
pub sign: RequestSign,
pub service: String,
/* private fields */
}Expand description
Signed HTTP remote ticket checker (compiled only with sso-http).
带签名的远程 HTTP 验票器(仅 sso-http 时编译)。
Fields§
§check_url: StringRemote check endpoint URL. 远程验票端点 URL。
sign: RequestSignShared request signer. 共享请求签名器。
service: StringExpected service URL. 期望的服务 URL。
Implementations§
Trait Implementations§
Source§impl TicketChecker for HttpTicketChecker
impl TicketChecker for HttpTicketChecker
Source§fn check_and_consume<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ticket_id: &'life1 str,
service: &'life2 str,
) -> Pin<Box<dyn Future<Output = SaTokenResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn check_and_consume<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ticket_id: &'life1 str,
service: &'life2 str,
) -> Pin<Box<dyn Future<Output = SaTokenResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Check and consume a ticket for the given service.
为给定服务校验并消费票据。
Auto Trait Implementations§
impl !RefUnwindSafe for HttpTicketChecker
impl !UnwindSafe for HttpTicketChecker
impl Freeze for HttpTicketChecker
impl Send for HttpTicketChecker
impl Sync for HttpTicketChecker
impl Unpin for HttpTicketChecker
impl UnsafeUnpin for HttpTicketChecker
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