pub struct Provider {
pub client_id: Option<String>,
pub config_url: Option<String>,
pub domain_hint: Option<String>,
pub fields: Option<Vec<String>>,
pub login_hint: Option<String>,
pub nonce: Option<String>,
pub parameters: Option<HashMap<String, String>>,
}Fields§
§client_id: Option<String>The RP’s client identifier, issued by the IdP.
config_url: Option<String>A full path of the IdP config file.
domain_hint: Option<String>By specifying one of domain_hints values provided by the accounts endpoints, the FedCM dialog selectively shows the specified account.
fields: Option<Vec<String>>Array of strings that specifies the user information ("name", " email", "picture") that RP needs IdP to share with them. Note: Field API is supported by Chrome 132 and later.
login_hint: Option<String>By specifying one of login_hints values provided by the accounts endpoints, the FedCM dialog selectively shows the specified account.
nonce: Option<String>A random string to ensure the response is issued for this specific request. Prevents replay attacks.
parameters: Option<HashMap<String, String>>Custom object that allows to specify additional key-value parameters: scope: A string value containing additional permissions that RP needs to request, for example " drive.readonly calendar.readonly" nonce: A random string to ensure the response is issued for this specific request. Prevents replay attacks. Other custom key-value parameters. Note: parameters is supported from Chrome 132.