pub struct OAuthRequest {
pub provider_id: String,
pub auth_url: String,
pub display_name: Option<String>,
pub language_code: Option<String>,
pub custom_parameters: HashMap<String, String>,
pub pkce: Option<PkcePair>,
}Expand description
Parameters needed to initiate an OAuth identity provider flow.
Consumers construct the final authorization URL using the provided endpoint
and parameters. These values mirror the Firebase JS SDK AuthEventManager
inputs, allowing a 1:1 translation for popup and redirect handlers.
Fields§
§provider_id: StringProvider identifier (e.g. google.com).
auth_url: StringFully qualified authorization URL.
display_name: Option<String>Optional human-readable hint to display in custom UI.
language_code: Option<String>Optional locale hint.
custom_parameters: HashMap<String, String>Additional query parameters to include when opening the provider.
pkce: Option<PkcePair>Optional PKCE verifier/challenge pair for this request.
Implementations§
Source§impl OAuthRequest
impl OAuthRequest
pub fn new(provider_id: impl Into<String>, auth_url: impl Into<String>) -> Self
pub fn with_display_name(self, value: impl Into<String>) -> Self
pub fn with_language_code(self, value: impl Into<String>) -> Self
pub fn with_custom_parameters(self, parameters: HashMap<String, String>) -> Self
pub fn with_pkce(self, pkce: Option<PkcePair>) -> Self
pub fn pkce(&self) -> Option<&PkcePair>
Trait Implementations§
Source§impl Clone for OAuthRequest
impl Clone for OAuthRequest
Source§fn clone(&self) -> OAuthRequest
fn clone(&self) -> OAuthRequest
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 moreAuto Trait Implementations§
impl Freeze for OAuthRequest
impl RefUnwindSafe for OAuthRequest
impl Send for OAuthRequest
impl Sync for OAuthRequest
impl Unpin for OAuthRequest
impl UnwindSafe for OAuthRequest
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