pub struct IdTokenCredentials {
pub provider: Provider,
pub token: String,
pub access_token: Option<String>,
pub nonce: Option<String>,
pub gotrue_meta_security: Option<GotrueMetaSecurity>,
}
Fields§
§provider: Provider
Provider name or OIDC iss
value identifying which provider should be used to verify the provided token.
token: String
OIDC ID token issued by the specified provider. The iss claim in the ID token must match the supplied provider. Some ID tokens contain an at_hash which require that you provide an access_token value to be accepted properly. If the token contains a nonce claim you must supply the nonce used to obtain the ID token.
access_token: Option<String>
If the ID token contains an at_hash claim, then the hash of this value is compared to the value in the ID token.
nonce: Option<String>
If the ID token contains a nonce claim, then the hash of this value is compared to the value in the ID token.
gotrue_meta_security: Option<GotrueMetaSecurity>
Optional Object which may contain a captcha token
Trait Implementations§
Source§impl Clone for IdTokenCredentials
impl Clone for IdTokenCredentials
Source§fn clone(&self) -> IdTokenCredentials
fn clone(&self) -> IdTokenCredentials
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 moreSource§impl Debug for IdTokenCredentials
impl Debug for IdTokenCredentials
Source§impl<'de> Deserialize<'de> for IdTokenCredentials
impl<'de> Deserialize<'de> for IdTokenCredentials
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IdTokenCredentials
impl PartialEq for IdTokenCredentials
Source§impl Serialize for IdTokenCredentials
impl Serialize for IdTokenCredentials
impl StructuralPartialEq for IdTokenCredentials
Auto Trait Implementations§
impl Freeze for IdTokenCredentials
impl RefUnwindSafe for IdTokenCredentials
impl Send for IdTokenCredentials
impl Sync for IdTokenCredentials
impl Unpin for IdTokenCredentials
impl UnwindSafe for IdTokenCredentials
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