pub struct OpenIdCallbackParams<'a> {
pub redirect_uri: &'a str,
pub parameters: CallbackParams,
pub checks: Option<OpenIDCallbackChecks<'a>>,
pub extras: Option<CallbackExtras>,
}
Expand description
#OpenIdCallbackParams
Fields§
§redirect_uri: &'a str
Redirect uri that was set in the authorize request
parameters: CallbackParams
The CallbackParams from the response
checks: Option<OpenIDCallbackChecks<'a>>
Checks for validation of openid response
extras: Option<CallbackExtras>
Extra Parameter to send to the Token endpoint
Implementations§
Source§impl<'a> OpenIdCallbackParams<'a>
impl<'a> OpenIdCallbackParams<'a>
Sourcepub fn new(redirect_uri: &'a str, parameters: CallbackParams) -> Self
pub fn new(redirect_uri: &'a str, parameters: CallbackParams) -> Self
Creates a new OpenIdCallbackParams
Sourcepub fn check_max_age(self, max_age: u64) -> Self
pub fn check_max_age(self, max_age: u64) -> Self
Checks the max_age
Sourcepub fn check_nonce(self, nonce: &'a str) -> Self
pub fn check_nonce(self, nonce: &'a str) -> Self
Checks the nonce
Sourcepub fn check_response_type(self, response_type: &'a str) -> Self
pub fn check_response_type(self, response_type: &'a str) -> Self
Checks if the response type is of the given type
Sourcepub fn check_code_verifier(self, code_verifier: &'a str) -> Self
pub fn check_code_verifier(self, code_verifier: &'a str) -> Self
Verifies the code verifier
Sourcepub fn check_state(self, state: &'a str) -> Self
pub fn check_state(self, state: &'a str) -> Self
Checks the response state
Sourcepub fn check_jarm(self, jarm: bool) -> Self
pub fn check_jarm(self, jarm: bool) -> Self
Check if the response is JARM
Sourcepub fn add_client_assertion_claim(
self,
key: impl Into<String>,
value: Value,
) -> Self
pub fn add_client_assertion_claim( self, key: impl Into<String>, value: Value, ) -> Self
Add extra claims to the client assertion payload
Sourcepub fn set_dpop_key(self, dpop: Jwk) -> Self
pub fn set_dpop_key(self, dpop: Jwk) -> Self
Sets dpop key to the grant
Trait Implementations§
Source§impl<'a> Default for OpenIdCallbackParams<'a>
impl<'a> Default for OpenIdCallbackParams<'a>
Source§fn default() -> OpenIdCallbackParams<'a>
fn default() -> OpenIdCallbackParams<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for OpenIdCallbackParams<'a>
impl<'a> RefUnwindSafe for OpenIdCallbackParams<'a>
impl<'a> Send for OpenIdCallbackParams<'a>
impl<'a> Sync for OpenIdCallbackParams<'a>
impl<'a> Unpin for OpenIdCallbackParams<'a>
impl<'a> UnwindSafe for OpenIdCallbackParams<'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