Uploaded image for project: 'Camunda Operate'
  1. Camunda Operate
  2. OPE-1103

Frontend development server does not redirect to SSO login

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Open
    • Priority: L3 - Default
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: frontend
    • Labels:
      None

      Description

      Bug description

      When using the SSO profile in Operate, the frontend development server does not redirect to the SSO login page

      Steps to reproduce the behavior

      • Start Operate backend in sso mode (set env vars and activate sso-auth profile in Makefile)
      • Start Operate frontend development server (cd client && yarn start)
      • Navigate to localhost:3000

      Problem - Current Behavior

      Access to fetch at 'https://weblogin.cloud.ultrawombat.com/authorize?redirect_uri=http://localhost:3000/sso-callback&client_id=xxxx&audience=https%3A%2F%2Fcamunda-dev.eu.auth0.com%2Fuserinfo&scope=openid%20profile%20email&response_type=code&state=xxxxx' (redirected from 'http://localhost:3000/api/authentications/user') from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
      • All subsequent API requests fail with the same error

      Expected behavior

      • When navigating to localhost:3000 with CORS enabled, it should redirect to the SSO login page

      Environment and Additional Information

      • When bypassing the frontend development server and navigating to localhost:8080 directy, the redirect works as exptected.

        mgm-controller-panel

        This is the controller panel for Smart Panels app

          Attachments

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              patrick.dehn Patrick Dehn
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: