misc: log when login is refused because of authn_classref mismatch (#68236)
This commit is contained in:
parent
437d1a3063
commit
366758a54d
|
@ -268,6 +268,11 @@ class DefaultAdapter:
|
|||
if required_classref:
|
||||
given_classref = saml_attributes['authn_context_class_ref']
|
||||
if given_classref is None or given_classref not in required_classref:
|
||||
logger.info(
|
||||
'mellon: refused login because of authn_classref mismatch (%r vs %s)',
|
||||
given_classref,
|
||||
required_classref,
|
||||
)
|
||||
raise PermissionDenied
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in New Issue