Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poc - cookie auth #124

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

poc - cookie auth #124

wants to merge 3 commits into from

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Oct 24, 2024

Rough draft, this will need a couple more steps to get there right, but:

  • changes UI_EXTERNAL_LOGIN_URI to /auth/login/
    • makes login button go the the right place
    • TODO missing link from our login form
    • TODO detect logged in vs not

open http://localhost:8002/auth/login/?next=%2Fui%2Flogin%2F

  • log in in the external login dialog
  • redirects to pulp ui login dialog
  • log in with username=HACK there
  • it will use cookie auth 🎉
20241024173944.mp4

(the rest of the PR is dealing with appContext.user logic, disabling fetch withCredentials:false which is needed for basic auth to work, and TODO loading user info)

@himdel himdel marked this pull request as draft October 24, 2024 18:02
use /auth/login/ for cookies
remove last AppContext.user, switch to UserContext.getUsername/isLoggedIn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant