Giter VIP home page Giter VIP logo

Comments (3)

schanzen avatar schanzen commented on August 10, 2024

Not sure how to do this. We cannot let any user select any account for authentication, right?
I think we definitely have to check the sub claim request and if it matches the authenticated user if we already have a session which is currently not done.
I am really not sure how the account selection could work. Maybe we would have to implement a username screen followed by a password screen and then store the subs which were successfully authenticated against in the session.

It would be "better" subjectively to have a single page with user and password login prompt and IF the user previously authetnticated with at least one other account we should display an account selection (and optional reauthentication) unless we have to enforce the "sub" request.

from omejdn-server.

bellebaum avatar bellebaum commented on August 10, 2024

As an idea, this is how Microsoft seems to handle this (determined by experiment):
They first have a page for the user to enter a uid (email, username,...), and afterwards have a second page to enter their password. But this way they are also able to automatically determine other providers and request tokens from there. For example, entering a mail adress ending in fraunhofer.de, the user agent is automatically redirected to the Fraunhofer SSO page, with the email address already pre-entered.

Unrelated, one simple solution for us would be to deactivate the username input field when we have to reauthenticate a specific user. The account selection page is a good idea, though we will need to support multiple sessions in the first place to do this.

from omejdn-server.

schanzen avatar schanzen commented on August 10, 2024

Yes, maybe two screens do make sense. Then, we also do not have to deactivate the input field.

from omejdn-server.

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.