pub struct AuthProvider<T, J>where
T: IntoPublic + ObjectId + Serialize + for<'de> Deserialize<'de> + Clone + Send + Sync + 'static,
J: SessionBackend<T> + IdentityBackend<T> + Clone + Send + Sync + 'static,{
pub session_provider: Data<SessionProvider<T>>,
pub identity_provider: Data<IdentityProvider<T>>,
/* private fields */
}Fields§
§session_provider: Data<SessionProvider<T>>§identity_provider: Data<IdentityProvider<T>>Implementations§
Source§impl<T: IntoPublic + ObjectId + Serialize + for<'de> Deserialize<'de> + Clone + Send + Sync + 'static, J: SessionBackend<T> + IdentityBackend<T> + Clone + Send + Sync + 'static> AuthProvider<T, J>
impl<T: IntoPublic + ObjectId + Serialize + for<'de> Deserialize<'de> + Clone + Send + Sync + 'static, J: SessionBackend<T> + IdentityBackend<T> + Clone + Send + Sync + 'static> AuthProvider<T, J>
pub fn builder(backend: J) -> AuthProviderBuilder<T, J>
pub fn default_with_backend(backend: J) -> Self
pub fn configure(self, cfg: &mut ServiceConfig)
pub async fn validate_session( &self, session_id: String, ) -> Result<T, SessionError>
Trait Implementations§
Source§impl<T, J> Clone for AuthProvider<T, J>where
T: IntoPublic + ObjectId + Serialize + for<'de> Deserialize<'de> + Clone + Send + Sync + 'static + Clone,
J: SessionBackend<T> + IdentityBackend<T> + Clone + Send + Sync + 'static + Clone,
impl<T, J> Clone for AuthProvider<T, J>where
T: IntoPublic + ObjectId + Serialize + for<'de> Deserialize<'de> + Clone + Send + Sync + 'static + Clone,
J: SessionBackend<T> + IdentityBackend<T> + Clone + Send + Sync + 'static + Clone,
Source§fn clone(&self) -> AuthProvider<T, J>
fn clone(&self) -> AuthProvider<T, J>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T, J> Freeze for AuthProvider<T, J>
impl<T, J> !RefUnwindSafe for AuthProvider<T, J>
impl<T, J> Send for AuthProvider<T, J>
impl<T, J> Sync for AuthProvider<T, J>
impl<T, J> Unpin for AuthProvider<T, J>
impl<T, J> !UnwindSafe for AuthProvider<T, J>
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