UI inconsistency in API token expiration selection between "with scopes" and "without scopes" UI when policy is set to "Never expires" in Admin Hub.

XMLWordPrintable

    • 1

      Issue Summary

      When the Authentication Policy for API token expiration is set to "Never expires" in Admin Hub, there is a discrepancy in behavior between the Legacy "Create API token" UI and the Modern "Create API token with scopes" UI.

      Steps to Reproduce

      1. Go to Admin Hub > Security > Authentication Policies.
      2. Set "API token expiration" to "Never expires".
      3. As a user under this policy, go to the API token management page.
      4. Attempt to create a API token without scopes and observe the date picker.
      5. Attempt to create an API token with scopes and observe the date picker.

      Expected Results

      The UI behavior should be consistent. If the policy allows "Never expires," users should ideally still be able to set a shorter expiration date for better security as seen in "API token without scopes", or the UI should clearly explain why the field is locked.

      Actual Results

      The Modern UI locks the expiration date to "No expiry" without allowing manual override, while the Legacy UI allows selection. The presence of a non-functional calendar picker in the Modern UI is confusing.

      Workaround

      Use an API token creation without scopes if a specific expiration date is required, or check off the "Never expires" setting in Admin Hub to pick up an date for scoped API tokens.

              Assignee:
              Unassigned
              Reporter:
              Unassigned
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: