pub struct AuthenticatorConfig {
pub client_id: String,
pub token_url: String,
pub secret: String,
pub resource: Option<String>,
pub audience: Option<String>,
pub scopes: Option<String>,
pub default_expires_in: Option<u64>,
}Expand description
Configuration for authentication using the OIDC authenticator
Fields§
§client_id: StringService principal client ID.
token_url: StringIdP token URL.
secret: StringService principal client secret.
resource: Option<String>Optional resource.
audience: Option<String>Optional audience.
scopes: Option<String>Optional space separate list of scopes.
default_expires_in: Option<u64>Optional default token expiry time, in seconds.
If this is set, the authenticator will fall back on this if
the identity provider returns a token response without expires_in.
If this is not set, and expires_in is missing, the authenticator will return an error.
Auto Trait Implementations§
impl Freeze for AuthenticatorConfig
impl RefUnwindSafe for AuthenticatorConfig
impl Send for AuthenticatorConfig
impl Sync for AuthenticatorConfig
impl Unpin for AuthenticatorConfig
impl UnwindSafe for AuthenticatorConfig
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