Git Product home page Git Product logo

Comments (6)

kayx23 avatar kayx23 commented on September 27, 2024

Instead i am simply also already logged in against B with the user from A.

Can you describe this behaviour more in details? Is it like:

  • visit /web/app1 and got a GUI auth page
  • authenticate with user A
  • visit /web/app2 and it does not ask for credentials while it should? (unexpected)

from apisix.

RobWagMLP avatar RobWagMLP commented on September 27, 2024

Yes of course, sorry if i was not precise enough.
So what i want is

  • visit `/web/app1` and get KC GUI loginpage
    
  • authenticate with user A
    
  • visit `/web/app2` and get KC GUI loginpage
    
  • authenticate with user B
    

instead it is like you described, user A is also logged in app2 , instead of beeing asked for credentials for app2.
Basically what i am asking for is an option to configure which routes belong to a session. So for example that i could say routes
/web/app1
and /api/* with host app1.mydomain.de get session_id A, and
/web/app2
and api* with host app2.mydomain.de get session_id B, so that if a user with session_id A comes to web/app2, he is not treated as authenticated.
Maybe thats already somewaht there and its a bug on my side, but so far i couldnt figure anything out that would trigger that behaviour. Already checked a bit of the code to to figure out if can make some plugin for myself here, but my lua-knowledge tends towards zero :\

from apisix.

kayx23 avatar kayx23 commented on September 27, 2024

That is so very strange... Especially if you said using different session secrets also doesn't work as intended. I understand your issue now but I'm working on other things at the moment. I can surely circle back when I have time.

from apisix.

RobWagMLP avatar RobWagMLP commented on September 27, 2024

That would be really great.
The only way i could achieve that target is by having my kc-clients in different realms, wich is actually okay for the moment, but it would be really nice to be able to configure that a bit more independently from that.
I can provide you my full configuration if you want, its just a bit longer and the example i provided mirrors pretty well what i have there :)

from apisix.

kayx23 avatar kayx23 commented on September 27, 2024

cc @shreemaan-abhishek

from apisix.

damoshushu avatar damoshushu commented on September 27, 2024

I encountered the same issue, and I had made a pull request #11286 to solve this problem. Test passed

from apisix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.