Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-6787

Reinitiate the authentication flow when the user is no longer authorized for C8SM

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.10.0-alpha5, 3.10.0
    • None
    • frontend
    • None
    • Not defined

      When a user logs out or is otherwise unauthorized (token expiry) in C8SM, they are shown the Optimize login page. However, this is never a page that the user should see in C8SM as authentication happens in Identity.

      With this in mind, we should refresh the page when a 401 is returned to reinitiate the auth flow with Identity. We already do similar for C8SaaS.

      AT:

      • C8SM users are never shown the Optimize login page
      • After logging out of Optimize, users are redirected to Identity
      • If reauthenticated, the redirect back to Optimize is successful

      Testing notes:

      • Validate the ATs above

      Notes:

      • We should consider backporting this to the maintenance/3.9 branch too, because the Identity integration with log out also exists there

       

      Testing notes:

      • It should possible to logout out in platform and self-managed mode
      • Logging out in platform mode takes you to the optimize login page
      • Logging out in self-managed mode, takes you to keycloak login page
      • We should also test what happens when the session times out in both cloud and self-managed
        We can test this by deleting the cookies after logging in and trying to interact with Optimize. In this case, the page should refresh and new authentication cookies will be set, allowing the user to continue using Optimize with no issues.

        This is the controller panel for Smart Panels app

            [OPT-6787] Reinitiate the authentication flow when the user is no longer authorized for C8SM

            Joshua Windels created issue -
            Joshua Windels made changes -
            Status Original: Triage [ 10612 ] New: Backlog [ 11212 ]
            Omran Abazeed made changes -
            Status Original: Backlog [ 11212 ] New: In Development [ 10312 ]
            Joshua Windels made changes -
            Status Original: In Development [ 10312 ] New: Ready for Testing [ 10008 ]
            Joshua Windels made changes -
            Assignee Original: Omran Abazeed [ omran.abazeed ] New: Cigdem Ilhan [ cigdem.ilhan ]
            Omran Abazeed made changes -
            Description Original: When a user logs out or is otherwise unauthorized (token expiry) in C8SM, they are shown the Optimize login page. However, this is never a page that the user should see in C8SM as authentication happens in Identity.

            With this in mind, we should refresh the page when a 401 is returned to reinitiate the auth flow with Identity. We already do similar for C8SaaS.

            *AT:*
             * C8SM users are never shown the Optimize login page
             * After logging out of Optimize, users are redirected to Identity
             * If reauthenticated, the redirect back to Optimize is successful

            *Testing notes:*
             * Validate the ATs above

            *Notes:*

            - We should consider backporting this to the maintenance/3.9 branch too, because the Identity integration with log out also exists there
            New: When a user logs out or is otherwise unauthorized (token expiry) in C8SM, they are shown the Optimize login page. However, this is never a page that the user should see in C8SM as authentication happens in Identity.

            With this in mind, we should refresh the page when a 401 is returned to reinitiate the auth flow with Identity. We already do similar for C8SaaS.

            *AT:*
             * C8SM users are never shown the Optimize login page
             * After logging out of Optimize, users are redirected to Identity
             * If reauthenticated, the redirect back to Optimize is successful

            *Testing notes:*
             * Validate the ATs above

            *Notes:*
             - We should consider backporting this to the maintenance/3.9 branch too, because the Identity integration with log out also exists there

             

            *Testing notes:*
             * It should possible to logout out in platform and self-managed mode
             * Logging out in platform mode takes you to the optimize login page
             * Logging out in self-managed mode, takes you to keycloak login page
             * We should also test what happens when the session times out in both cloud and self-managed
            We can test this by deleting the cookies after logging in and trying to interact with Optimize. In this case, the page should refresh and new authentication cookies will be set, allowing the user to continue using Optimize with no issues.
            Cigdem Ilhan made changes -
            Status Original: Ready for Testing [ 10008 ] New: In Test [ 10004 ]
            Cigdem Ilhan made changes -
            Assignee Original: Cigdem Ilhan [ cigdem.ilhan ]
            Resolution New: Fixed [ 1 ]
            Status Original: In Test [ 10004 ] New: Done [ 10010 ]
            Omran Abazeed made changes -
            Assignee New: Michal Konopski [ michal.konopski ]
            Status Original: Done [ 10010 ] New: In Review [ 10212 ]
            Michal Konopski made changes -
            Assignee Original: Michal Konopski [ michal.konopski ] New: Omran Abazeed [ omran.abazeed ]
            Status Original: In Review [ 10212 ] New: Rework [ 11413 ]
            Omran Abazeed made changes -
            Assignee Original: Omran Abazeed [ omran.abazeed ] New: Michal Konopski [ michal.konopski ]
            Status Original: Rework [ 11413 ] New: In Review [ 10212 ]

              Unassigned Unassigned
              joshua.windels Joshua Windels
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: