pub struct ExternalProviderConfig {
pub issuer: SecretResolver<String>,
pub jwks_uri: SecretResolver<String>,
pub audience: SecretResolver<String>,
pub user_info_url: Option<SecretResolver<String>>,
}Fields§
§issuer: SecretResolver<String>The issuer of the token
This is the issuer of the token that will be used to validate the token.
Example:
- Google: https://accounts.google.com
- Microsoft: https://login.microsoftonline.com/{tenant_id}/v2.0
- Auth0: https://your-tenant.auth0.com/
jwks_uri: SecretResolver<String>The jwks uri of the token
This is the jwks uri of the token that will be used to validate the token.
Example:
- Google: https://www.googleapis.com/oauth2/v1/certs
- Microsoft: https://login.microsoftonline.com/{tenant_id}/discovery/v2.0/keys
- Auth0: https://{your-auth0-domain}/.well-known/jwks.json
audience: SecretResolver<String>The audience of the token
This is the audience of the token that will be used to validate the token.
Example:
- Google: YOUR_CLIENT_ID
- Microsoft: YOUR_CLIENT_ID
- Auth0: YOUR_CLIENT_ID
user_info_url: Option<SecretResolver<String>>The user info url of the token
This is the user info url of the token that will be used to validate the token.
Example:
- Google: https://www.googleapis.com/oauth2/v3/userinfo
- Microsoft: https://graph.microsoft.com/oidc/userinfo
- Auth0: https://{your-auth0-domain}.auth0.com/userinfo
Trait Implementations§
Source§impl Clone for ExternalProviderConfig
impl Clone for ExternalProviderConfig
Source§fn clone(&self) -> ExternalProviderConfig
fn clone(&self) -> ExternalProviderConfig
Returns a copy 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 ExternalProviderConfig
impl Debug for ExternalProviderConfig
Source§impl<'de> Deserialize<'de> for ExternalProviderConfig
impl<'de> Deserialize<'de> for ExternalProviderConfig
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
Auto Trait Implementations§
impl Freeze for ExternalProviderConfig
impl RefUnwindSafe for ExternalProviderConfig
impl Send for ExternalProviderConfig
impl Sync for ExternalProviderConfig
impl Unpin for ExternalProviderConfig
impl UnwindSafe for ExternalProviderConfig
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