pub struct CibaAuthRequest {
pub scope: Vec<String>,
pub client_notification_token: Option<String>,
pub acr_values: Option<Vec<String>>,
pub login_hint_token: Option<String>,
pub id_token_hint: Option<String>,
pub login_hint: Option<String>,
pub binding_message: Option<String>,
pub user_code: Option<String>,
pub requested_expiry: Option<u64>,
pub other: HashMap<String, String>,
}
Expand description
§CibaAuthRequest
CIBA Auth request parameters Represents an OpenID Client-Initiated Backchannel Authentication (CIBA) request.
Fields§
§scope: Vec<String>
The scope of the authentication request, typically a list of space-separated strings.
client_notification_token: Option<String>
An optional token used by the client to receive asynchronous notifications.
acr_values: Option<Vec<String>>
Optional Authentication Context Class Reference values.
login_hint_token: Option<String>
An optional token used as a hint to identify the end-user for authentication.
id_token_hint: Option<String>
An optional ID Token previously issued by the Authorization Server being passed as a hint.
login_hint: Option<String>
An optional hint to the Authorization Server about the login identifier the End-User might use.
binding_message: Option<String>
An optional message to be displayed to the user during authentication.
user_code: Option<String>
An optional user code for identifying the end-user.
requested_expiry: Option<u64>
An optional requested expiry time for the authentication request in seconds.
other: HashMap<String, String>
A map for any other additional parameters not covered by the standard fields.
Implementations§
Source§impl CibaAuthRequest
impl CibaAuthRequest
Sourcepub fn add_acr_value(self, acr_value: impl Into<String>) -> Self
pub fn add_acr_value(self, acr_value: impl Into<String>) -> Self
Add acr_values to the request
Sourcepub fn set_client_notification_token(self, token: impl Into<String>) -> Self
pub fn set_client_notification_token(self, token: impl Into<String>) -> Self
Set the client notification token
Sourcepub fn set_login_hint_token(self, token: impl Into<String>) -> Self
pub fn set_login_hint_token(self, token: impl Into<String>) -> Self
Set the login hint token
Sourcepub fn set_id_token_hint(self, token: impl Into<String>) -> Self
pub fn set_id_token_hint(self, token: impl Into<String>) -> Self
Set the id token hint
Sourcepub fn set_login_hint(self, hint: impl Into<String>) -> Self
pub fn set_login_hint(self, hint: impl Into<String>) -> Self
Set the login hint
Sourcepub fn set_binding_message(self, message: impl Into<String>) -> Self
pub fn set_binding_message(self, message: impl Into<String>) -> Self
Set the binding message
Sourcepub fn set_user_code(self, code: impl Into<String>) -> Self
pub fn set_user_code(self, code: impl Into<String>) -> Self
Set the user code
Sourcepub fn set_requested_expiry(self, expiry: u64) -> Self
pub fn set_requested_expiry(self, expiry: u64) -> Self
Set expiry in seconds