pub struct IdentityServiceToken;Expand description
Authentication is required by including an identity server access token in the
Authentication http header, or an access_token query parameter.
Using the query parameter is deprecated since Matrix 1.11.
Trait Implementations§
Source§impl AuthScheme for IdentityServiceToken
impl AuthScheme for IdentityServiceToken
Source§type AddAuthenticationError = InvalidHeaderValue
type AddAuthenticationError = InvalidHeaderValue
The error type returned from
add_authentication().Source§type ExtractAuthenticationError = ExtractTokenError
type ExtractAuthenticationError = ExtractTokenError
The error type returned from
extract_authentication().Source§fn add_authentication<T: AsRef<[u8]>>(
request: &mut Request<T>,
access_token: Self::Input<'_>,
) -> Result<(), Self::AddAuthenticationError>
fn add_authentication<T: AsRef<[u8]>>( request: &mut Request<T>, access_token: Self::Input<'_>, ) -> Result<(), Self::AddAuthenticationError>
Add this authentication scheme to the given outgoing request, if necessary. Read more
Source§fn extract_authentication<T>(
request: &Request<T>,
) -> Result<Self::Output, Self::ExtractAuthenticationError>
fn extract_authentication<T>( request: &Request<T>, ) -> Result<Self::Output, Self::ExtractAuthenticationError>
Extract the data of this authentication scheme from the given incoming request. Read more
Source§impl Clone for IdentityServiceToken
impl Clone for IdentityServiceToken
Source§fn clone(&self) -> IdentityServiceToken
fn clone(&self) -> IdentityServiceToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentityServiceToken
Source§impl Debug for IdentityServiceToken
impl Debug for IdentityServiceToken
Source§impl Default for IdentityServiceToken
impl Default for IdentityServiceToken
Source§fn default() -> IdentityServiceToken
fn default() -> IdentityServiceToken
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdentityServiceToken
impl RefUnwindSafe for IdentityServiceToken
impl Send for IdentityServiceToken
impl Sync for IdentityServiceToken
impl Unpin for IdentityServiceToken
impl UnsafeUnpin for IdentityServiceToken
impl UnwindSafe for IdentityServiceToken
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