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

Add authentication #53

Closed
amberrignell opened this issue Mar 31, 2022 · 1 comment
Closed

Add authentication #53

amberrignell opened this issue Mar 31, 2022 · 1 comment
Assignees
Milestone

Comments

@amberrignell
Copy link
Contributor

amberrignell commented Mar 31, 2022

We should be using phoenix_gen_auth, this was a community library that has since been merged into Phoenix since 1.6.

As an unauthenticated user, accessing the web frontend I will get a login screen page. Once I enter my email or username (one input) and correct password, I am redirected to the original address I tried to access.
If I enter my details incorrectly, I am presented with a flash message.

This appears to be a very thorough article:

https://www.leanpanda.com/blog/authentication-and-authorisation-in-phoenix-liveview/

Make sure to skip over the authorisation parts and implement only the parts required to enforce that a user must be logged in to access any page.

@stuartc stuartc changed the title should be able to log in Should be able to log in Mar 31, 2022
@amberrignell
Copy link
Contributor Author

Hey team! Please add your planning poker estimate with ZenHub @elias-ba @stuartc

@amberrignell amberrignell changed the title Should be able to log in Add authentication Apr 1, 2022
@taylordowns2000 taylordowns2000 added this to the Sprint 2 milestone Apr 1, 2022
@stuartc stuartc closed this as completed Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants