pub struct OpenIdConfig {
pub name: String,
pub image: Url,
pub config_endpoint: Url,
pub upstream_cluster: String,
pub authority: String,
pub redirect_uri: Url,
pub client_id: String,
pub scope: String,
pub claims: Map<String, Value>,
pub client_secret: Secret<String>,
pub audience: String,
}Expand description
Struct that holds the configuration for the OpenID Connect provider
Fields§
§name: StringName of the OpenID Connect Provider
image: UrlImage of the OpenID Connect Provider, will be shown in the screen where the user can select the provider
config_endpoint: UrlConfig endpoint for the plugin.
upstream_cluster: StringUpstream Cluster name
The authority that will be used for the dispatch calls
redirect_uri: UrlThe redirect uri that the authorization endpoint will redirect to and provide the code
client_id: StringThe client id
scope: StringThe scope
claims: Map<String, Value>The claims
client_secret: Secret<String>The client secret
audience: StringThe audience. Sometimes its the same as the client id
Trait Implementations§
Source§impl Clone for OpenIdConfig
impl Clone for OpenIdConfig
Source§fn clone(&self) -> OpenIdConfig
fn clone(&self) -> OpenIdConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpenIdConfig
impl Debug for OpenIdConfig
Source§impl<'de> Deserialize<'de> for OpenIdConfig
impl<'de> Deserialize<'de> for OpenIdConfig
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 OpenIdConfig
impl RefUnwindSafe for OpenIdConfig
impl Send for OpenIdConfig
impl Sync for OpenIdConfig
impl Unpin for OpenIdConfig
impl UnsafeUnpin for OpenIdConfig
impl UnwindSafe for OpenIdConfig
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