rafiki icon indicating copy to clipboard operation
rafiki copied to clipboard

[BUG] It's not possible to access 2 admin uis at the same time (localplayground)

Open Emanuel-Palestino opened this issue 1 year ago • 1 comments

Bug Report

Describe the bug

When you run the local playground environment of Rafiki. Two different instances of Rafiki are executed. If you want to open at the same time both Admin UIs. The second session overwrite the first one.

To Reproduce

  1. Run rafiki localenv environment (cloud nine and happy life).
  2. Acces to Admin UI of cloud nine.
  3. Acces to Admin UI of happy life in other browser tab.
  4. That's all. If you try to acces to cloud nine admin ui, the session has expired.

Expected behavior

I think the developer may be able to run both admin uis on the same browser, due to these are different servers (they are on different ports). I guess the problem is related to the session cookies. I don't know if it's possible to make independent cookies based on ports.

System Specs

Emanuel-Palestino avatar Aug 23 '24 17:08 Emanuel-Palestino

Now, by default, we are not running kratos in the local playground, so this is only an issue for when you are starting up the local env with pnpm localenv:compose:adminauth ....

We can put this note in the local playground README (not rafiki.dev) - to say that if a developer wants to access both admin UIs at the same time, they'd have to use a different browser, or incognito/private mode

mkurapov avatar Oct 02 '24 12:10 mkurapov