pub struct OpenIDClientOpts {
pub client_id: String,
pub client_secret: Option<Zeroizing<String>>,
pub redirect_uri: String,
pub validate_id_token_sig: bool,
pub accepted_audiences: Vec<String>,
pub validate_aud: bool,
pub validate_exp: bool,
pub validate_nbf: bool,
}Expand description
OpenID client options
Fields§
§client_id: StringThis client ID
client_secret: Option<Zeroizing<String>>This client secret
redirect_uri: StringRedirect URI to use when performing authentication requests
validate_id_token_sig: boolDisable id token signature & content check
accepted_audiences: Vec<String>Accepted audiences in JWT
validate_aud: boolWhether audience field of jwt should be validated or not
validate_exp: boolWhether expiration field of jwt should be validated or not
validate_nbf: boolWhether not before field of jwt should be validated or not
Implementations§
Trait Implementations§
Source§impl Clone for OpenIDClientOpts
impl Clone for OpenIDClientOpts
Source§fn clone(&self) -> OpenIDClientOpts
fn clone(&self) -> OpenIDClientOpts
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 moreAuto Trait Implementations§
impl Freeze for OpenIDClientOpts
impl RefUnwindSafe for OpenIDClientOpts
impl Send for OpenIDClientOpts
impl Sync for OpenIDClientOpts
impl Unpin for OpenIDClientOpts
impl UnsafeUnpin for OpenIDClientOpts
impl UnwindSafe for OpenIDClientOpts
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