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

Ensure we use an endpoint that requires auth when checking creds #357

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

richard-cox
Copy link
Member

Summary

Fixes #356

Occurred changes and/or fixed issues

  • we requested the info endpoint be made public (no auth required) to support an embedded use case
  • however we also used that endpoint to validate the user supplied creds were valid
  • end result was the ui thinking that bad creds were valid, causing the error page to show before redirecting back to log in
  • fix is to use the new me endpoint

Technical notes summary

  • requires fairly recent epinio running (from 31b276, merged 3 days ago

- we requested the info endpoint be made public (no auth required) to support an embedded use case
- however we also used that endpoint to validate the user supplied creds were valid
- end result was the ui thinking that bad creds were valid, causing the error page to show before redirecting back to log in
- fix is to use the new `me` endpoint
@richard-cox richard-cox added this to the v1.11.0 milestone Oct 16, 2023
@richard-cox richard-cox requested a review from torchiaf October 16, 2023 12:43
@richard-cox richard-cox self-assigned this Oct 16, 2023
Copy link
Contributor

@torchiaf torchiaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@richard-cox richard-cox merged commit a0870f8 into epinio:main Nov 3, 2023
3 checks passed
@richard-cox richard-cox deleted the fix-local-auth-val-end branch November 3, 2023 10:01
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.

401 error on UI when login with wrong user or password
2 participants