def verify_claims(self, claims):
        """Verify the provided claims to decide if authentication should be allowed."""

        # Verify claims required by default configuration
        scopes = self.get_settings('OIDC_RP_SCOPES', 'openid email')
        if 'email' in scopes.split():
            return 'email' in claims

        LOGGER.warning('Custom OIDC_RP_SCOPES defined. '
                       'You need to override `verify_claims` for custom claims verification.')

        return True
def verify_claims ( self , claims ) : scopes = self . get_settings ( 'OIDC_RP_SCOPES' , 'openid email' ) if 'email' in scopes . split ( ) : return 'email' in claims LOGGER . warning ( 'Custom OIDC_RP_SCOPES defined. ' 'You need to override `verify_claims` for custom claims verification.' ) return True
Verify the provided claims to decide if authentication should be allowed.