pub struct AppserviceTokenOptional;Available on crate feature
api only.Expand description
No authentication is performed for clients, but it can be performed for appservices, by
including an appservice access token in the Authorization http header, or an
access_token query parameter.
Using the query parameter is deprecated since Matrix 1.11.
Trait Implementations§
Source§impl AuthScheme for AppserviceTokenOptional
impl AuthScheme for AppserviceTokenOptional
Source§type Input<'a> = SendAccessToken<'a>
type Input<'a> = SendAccessToken<'a>
The input necessary to generate the authentication.
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: SendAccessToken<'_>,
) -> Result<(), Self::AddAuthenticationError>
fn add_authentication<T: AsRef<[u8]>>( request: &mut Request<T>, access_token: SendAccessToken<'_>, ) -> 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<Option<String>, Self::ExtractAuthenticationError>
fn extract_authentication<T>( request: &Request<T>, ) -> Result<Option<String>, Self::ExtractAuthenticationError>
Extract the data of this authentication scheme from the given incoming request. Read more
Source§impl Clone for AppserviceTokenOptional
impl Clone for AppserviceTokenOptional
impl Copy for AppserviceTokenOptional
Source§impl Debug for AppserviceTokenOptional
impl Debug for AppserviceTokenOptional
Auto Trait Implementations§
impl Freeze for AppserviceTokenOptional
impl RefUnwindSafe for AppserviceTokenOptional
impl Send for AppserviceTokenOptional
impl Sync for AppserviceTokenOptional
impl Unpin for AppserviceTokenOptional
impl UnsafeUnpin for AppserviceTokenOptional
impl UnwindSafe for AppserviceTokenOptional
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