pub struct AuthRequest {
pub tenant: Option<String>,
pub client_id: Option<String>,
pub response_type: Option<String>,
pub redirect_uri: Option<String>,
pub scope: Option<String>,
pub response_mode: Option<ResponseMode>,
pub state: Option<String>,
pub prompt: Option<RequestPrompt>,
pub login_hint: Option<String>,
pub domain_hint: Option<String>,
pub code_challenge: Option<String>,
pub code_challenge_method: Option<String>,
}Expand description
https://learn.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-auth-code-flow
Fields§
§tenant: Option<String>Required - TODO: Extract this from the path!
client_id: Option<String>Required
response_type: Option<String>Required
redirect_uri: Option<String>Required
scope: Option<String>Required
response_mode: Option<ResponseMode>Recommended (query, fragment, form_post) query: is unsupported when requesting an id token by using an implicit flow fragment: id token or ONLY code form_post: when requesting code
state: Option<String>Recommended
prompt: Option<RequestPrompt>Optional
login_hint: Option<String>Optional
domain_hint: Option<String>Optional
code_challenge: Option<String>Recommended, Required when code_challenge_method is included
code_challenge_method: Option<String>Recommended, Required
Implementations§
Source§impl AuthRequest
impl AuthRequest
pub fn get_response_types(&self) -> Vec<ResponseType>
Trait Implementations§
Source§impl Clone for AuthRequest
impl Clone for AuthRequest
Source§fn clone(&self) -> AuthRequest
fn clone(&self) -> AuthRequest
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 moreSource§impl Debug for AuthRequest
impl Debug for AuthRequest
Source§impl<'de> Deserialize<'de> for AuthRequest
impl<'de> Deserialize<'de> for AuthRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthRequest
impl RefUnwindSafe for AuthRequest
impl Send for AuthRequest
impl Sync for AuthRequest
impl Unpin for AuthRequest
impl UnwindSafe for AuthRequest
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