pub struct CallbackParams {Show 14 fields
pub access_token: Option<String>,
pub code: Option<String>,
pub error: Option<String>,
pub error_description: Option<String>,
pub error_uri: Option<String>,
pub expires_in: Option<String>,
pub id_token: Option<String>,
pub state: Option<String>,
pub token_type: Option<String>,
pub session_state: Option<String>,
pub response: Option<String>,
pub iss: Option<String>,
pub scope: Option<String>,
pub other: Option<HashMap<String, String>>,
}
Expand description
§CallbackParams
These are the fields that is recieved from the Authorization server to the client. Which of these fields are present will depend up on the type of authorization request
Fields§
§access_token: Option<String>
Access token obtained
code: Option<String>
Authorization code for exchanging at token endpoint
error: Option<String>
Error recieved from the Auth server. See RFC
error_description: Option<String>
Error description recieved from the Auth server. See RFC
error_uri: Option<String>
Error uri recieved from the Auth server. See RFC
expires_in: Option<String>
Token expiry
id_token: Option<String>
Id token
state: Option<String>
State that was recieved from the Auth server
token_type: Option<String>
Specified the access token type
session_state: Option<String>
Session state
response: Option<String>
The JARM response
iss: Option<String>
Issuer url
scope: Option<String>
Scopes requested
other: Option<HashMap<String, String>>
Other fields received from Auth server
Implementations§
Source§impl CallbackParams
impl CallbackParams
Sourcepub fn access_token(self, access_token: Option<String>) -> Self
pub fn access_token(self, access_token: Option<String>) -> Self
Sets the access_token field.
Sourcepub fn error_description(self, error_description: Option<String>) -> Self
pub fn error_description(self, error_description: Option<String>) -> Self
Sets the error_description field.
Sourcepub fn expires_in(self, expires_in: Option<String>) -> Self
pub fn expires_in(self, expires_in: Option<String>) -> Self
Sets the expires_in field.
Sourcepub fn token_type(self, token_type: Option<String>) -> Self
pub fn token_type(self, token_type: Option<String>) -> Self
Sets the token_type field.
Sourcepub fn session_state(self, session_state: Option<String>) -> Self
pub fn session_state(self, session_state: Option<String>) -> Self
Sets the session_state field.
Trait Implementations§
Source§impl Debug for CallbackParams
impl Debug for CallbackParams
Source§impl Default for CallbackParams
impl Default for CallbackParams
Source§fn default() -> CallbackParams
fn default() -> CallbackParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CallbackParams
impl RefUnwindSafe for CallbackParams
impl Send for CallbackParams
impl Sync for CallbackParams
impl Unpin for CallbackParams
impl UnwindSafe for CallbackParams
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