enum

KemalIdentity::ApiTokens::PolicyViolation

Inherits Enum < Comparable < Value < Object

Why an issuance was refused by the deployment's token lifetime policy.

Like Passwords::PolicyViolation and unlike FailureReason, these are safe to show the person who asked: they arise when somebody is creating a credential, not when somebody is proving they hold one, so there is no account to enumerate and a specific message is what makes the requirement followable.

Constants

ExpiryRequired = 0

The deployment forbids a token with no expiry, and none was given.

TooLong = 1

The requested expiry is further away than the deployment permits.

Instance methods

expiry_required?

Returns true if this enum value equals ExpiryRequired

Source
too_long?

Returns true if this enum value equals TooLong

Source