Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Login is cumbersome #2064

Closed
Closed

Description

@PVince81

Due to the oauth handshake process, the login process goes through several steps.
The first time it's ok.

However, now every time I want to login I need to authorize the app again.
And when I want to switch the user, I need to click "Authorize" first and then click "Switch user" on the second page.

We should look into ways to simplify the flow.

Maybe if we already had a logged in user we could directly redirect to the OC server's authorize page where the user can be switched ? Or have a dialog like Google that shows the last logged in user (or the one currently logged in on the server, if we can know) with a button "Log in as XYZ" and another one "Login as someone else".

@DeepDiver1975

Activity

  1. added this to the backlog milestone on Sep 24, 2019
  2. DeepDiver1975 commented on Sep 24, 2019

    @DeepDiver1975
    Contributor

    We use implicit flow at the moment which returns No refresh token by design.
    With auth code flow we will get a refresh token and there is no need to rerun the auth process then as long as the refresh token is valid.

    This will require to add pkce to the oauth App. There is already a Ticket für this.

  3. DeepDiver1975 commented on Sep 24, 2019

    @DeepDiver1975
    Contributor

    Regarding the Switch user screen.: As long as we so Not Support the logout Mechanism(which is Part of openidconnect) we need to keep this screen because this is the only was to really loggout

  4. PVince81 commented on Sep 24, 2019

    @PVince81
    ContributorAuthor

    Nice, here's the PKCE ticket: #511

  5. modified the milestones: backlog, on Sep 26, 2019
  6. PVince81 commented on Sep 26, 2019

    @PVince81
    ContributorAuthor

    @pmaier1 @michaelstingl as discussed I'm moving this into M1 scope as it is scary for a first impression of Phoenix

  7. PVince81 commented on Sep 26, 2019

    @PVince81
    ContributorAuthor

    Effort for the PKCE was estimated to 5d

  8. kulmann commented on Jul 6, 2022

    @kulmann
    Contributor

    With #7072 being merged we finally switch over to using PKCE in web as well. Regarding the user switch and already on web current master, without the mentioned PR:

    • the logout in web now calls the oc10 logout url after removing the user from the browser session. i.e. logout actually logs out of oc10 entirely
    • web can be defined as trusted client, so that the authorize page doesn't appear anymore at all.

    Considering this ticket as done if no one speaks up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions