Deny Action

The Deny authentication action terminates the ongoing authentication with an access denied error. It supports two different operation modes: Always (always deny authentication) and Attribute Condition (check for a boolean attribute and deny authentication if that attribute value matches the expected one).

This action is useful when combined with other actions that set attributes based on certain conditions, allowing for conditional access control.

Configuration#

The following configuration options are available:

ConfigurationMandatoryDescription
alwaysNoAlways deny authentication.
attribute-conditionNoDeny authentication depending on the presence of an attribute.
attribute-condition/nameYesThe name of the attribute.
attribute-condition/sourceYesThe source of the attribute (subject-attributes, context-attributes, action-attributes)
attribute-condition/expected-valueNoThe expected value of the attribute to deny authentication. Defaults to: true
errorNoThe error string used when the action denies the authentication.

Back-channel support#

This action can be used in back-channel authentication.

Was this helpful?