Struct ws_auth::oauth2::auth::AuthRequest
source · 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
Trait Implementations§
source§impl Clone for AuthRequest
impl Clone for AuthRequest
source§fn clone(&self) -> AuthRequest
fn clone(&self) -> AuthRequest
Returns a copy 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