Odd situation of showing a login page when already logged in #1

Closed
opened 2024-01-23 09:12:34 +00:00 by edward · 1 comment
Owner
  1. Start flask development server for service on http://localhost:5000/
  2. Service looks for a UniAuth cookie and doesn't find it, so redirects to https://edwardbetts.com/UniAuth/login
  3. User is already authenticated via UniAuth, the cookie lives on 4angle.com
  4. If the user re-authenticates they get redirected to http://localhost:5000/ which redirects them back to the login page

Need to show a message on the UniAuth page explaining the problem.

What if the service requesting the login is responsible for setting the cookie?

The requesting service could look for a login cookie, when it doesn't find it redirect the user to UniAuth. After login UniAuth can redirect with the auth_token as a URL parameter and the local service can set the auth cookie.

1. Start flask development server for service on http://localhost:5000/ 2. Service looks for a UniAuth cookie and doesn't find it, so redirects to https://edwardbetts.com/UniAuth/login 3. User is already authenticated via UniAuth, the cookie lives on 4angle.com 4. If the user re-authenticates they get redirected to http://localhost:5000/ which redirects them back to the login page Need to show a message on the UniAuth page explaining the problem. What if the service requesting the login is responsible for setting the cookie? The requesting service could look for a login cookie, when it doesn't find it redirect the user to UniAuth. After login UniAuth can redirect with the auth_token as a URL parameter and the local service can set the auth cookie.
Author
Owner

Current design assumes all applications run on the same host as UniAuth. This isn't necessarily true. We need a design that allows the application to run on a different host to the authentication provider.

Current design assumes all applications run on the same host as UniAuth. This isn't necessarily true. We need a design that allows the application to run on a different host to the authentication provider.
edward referenced this issue from a commit 2024-02-18 21:56:49 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: edward/UniAuth#1
No description provided.