pub struct AuthClient { /* private fields */ }Implementations§
Source§impl AuthClient
impl AuthClient
pub fn new(base_url: String) -> Self
pub async fn generate_challenge( &self, client_id: &str, domain: &str, ) -> Result<ChallengeResponse, Box<dyn Error>>
pub fn sign_challenge( &self, message: &str, private_key: &str, ) -> Result<String, Box<dyn Error>>
pub async fn submit_challenge( &self, client_id: &str, domain: &str, state: &str, signature: &str, ) -> Result<AccessToken, Box<dyn Error>>
Auto Trait Implementations§
impl Freeze for AuthClient
impl RefUnwindSafe for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl UnwindSafe for AuthClient
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