pub struct AuthService<'a> { /* private fields */ }Implementations§
Source§impl<'a> AuthService<'a>
impl<'a> AuthService<'a>
pub fn new(config: &'a CasdoorConfig) -> Self
pub fn get_auth_token(&self, code: String) -> Result<String, Box<dyn Error>>
pub fn parse_jwt_token( &self, token: String, ) -> Result<CasdoorUser, Box<dyn Error>>
pub fn get_signin_url(&self, redirect_url: String) -> String
pub fn get_signup_url(&self, redirect_url: String) -> String
pub fn get_signup_url_enable_password(&self) -> String
pub fn get_user_profile_url( &self, uname: String, token: Option<String>, ) -> String
pub fn get_my_profile_url(&self, token: Option<String>) -> String
Auto Trait Implementations§
impl<'a> Freeze for AuthService<'a>
impl<'a> RefUnwindSafe for AuthService<'a>
impl<'a> Send for AuthService<'a>
impl<'a> Sync for AuthService<'a>
impl<'a> Unpin for AuthService<'a>
impl<'a> UnwindSafe for AuthService<'a>
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