Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-2969

Add user to an existing htpasswrd IDP

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Center-UI-Team

      Description

      When viewing a list of user for an existing htpasswrd IDP, the admin user that has the feature gate enabled will have an option to add a new user. When the user clicks on the "Add new user" button, a modal will open. The behavior on the modal will mimic adding a new user when creating a new htpasswrd IDP including validations and password autosuggest.

      When the user clicks on "Add user" an API call will be made to add the user. While this API call is pending, a loading spinner is show in the modal. During this pending time, the modal cannot be closed and the "Add" button will be disabled. If the API call returns success, the modal window is closed and the user table is refreshed. If the API call returns an error, the returned error is shown in the modal

      Screenshots

      Technical notes

      There is an API to add a new user to an existing IDP at

      POST /api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users

      The PatternFly patterns state that an inline confirmation alert is shown (see https://v5-archive.patternfly.org/patterns/actions#deletion for an example). The problem with this is that it will cause the other items on the page to "jump" when the alert disappears. Following other like actions (for example adding a machine pool) no additional notification will be given to the user that the update was successful (beyond the closing of the modal).

        1. add-user.png
          53 kB
          Kim Doberstein
        2. view-table-add-user.png
          62 kB
          Kim Doberstein

              Unassigned Unassigned
              kdoberst Kim Doberstein
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: