pub fn validate_iss(&self, validation: Validation<String>) -> Result<(), ValidationError> {
        match validation {
            Validation::Ignored => Ok(()),
            Validation::Validate(expected_issuer) => match self.issuer {
                Some(ref iss) if iss != &expected_issuer => {
                    Err(ValidationError::InvalidIssuer(self.issuer.clone().unwrap()))
                }
                _ => Ok(()),
            },
        }
    }
/// Validates that if the token has an `iss` claim, it matches the expected issuer
Validates that if the token has an `iss` claim, it matches the expected issuer
Validates that if the token has an ` iss ` claim it matches the expected issuer
pub fn validate_iss(&self, validation: Validation<String>) -> Result<(), ValidationError> {
        match validation {
            Validation::Ignored => Ok(()),
            Validation::Validate(expected_issuer) => match self.issuer {
                Some(ref iss) if iss != &expected_issuer => {
                    Err(ValidationError::InvalidIssuer(self.issuer.clone().unwrap()))
                }
                _ => Ok(()),
            },
        }
    }
pub fn validate_iss ( & self , validation : Validation < String > ) -> Result < ( ) , ValidationError > { match validation { Validation :: Ignored => Ok ( ( ) ) , Validation :: Validate ( expected_issuer ) => match self . issuer { Some ( ref iss ) if iss != & expected_issuer => { Err ( ValidationError :: InvalidIssuer ( self . issuer . clone ( ) . unwrap ( ) ) ) } _ => Ok ( ( ) ) , } , } }
Validates that if the token has an `iss` claim, it matches the expected issuer
Validates that if the token has an ` iss ` claim it matches the expected issuer
&self
validation
Validation<String>
&self
validation
Validation<String>