-
Notifications
You must be signed in to change notification settings - Fork 72
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
Client Authentication #105
Comments
I've had a long deliberation blocker here - whether to go with Devise or start from scratch. I now think going from scratch to have an event sourced Authentication module is the way to go. However with this ticket I imagine to go with something super simplest. Maybe just have commands for setting the accounts (login/password) for clients (without the registration UI yet), use them in the seeds. Then some UI (login/password) only for the customer panel. |
Hi, @andrzejkrzywda As I have mentioned, I would love to help out with this one. I've seen the work around Do you see I would love to align this before I ship my idea of the solution |
I think we can start with a new BC called Authentication (similarly as in the red book - the Identity and Access BC). The
The consequence would be that we allow multiple accounts per client, which is fine by me. Those commands would then be used in the seeds to set up the existing clients. We will create UI for creating accounts as a separate ticket. For the login process we probably need something like
Let's make the Logout feature as a separate ticket. BTW, currently we use client/customer as synonyms. How does it sound? |
Sounds great! |
There was a bit of progress about it recently. Instead of using URL, we now store cookies. some context: https://dev.to/andrzejkrzywda/implementing-authentication-in-tiny-steps-jhn @pstrzalk how is it going? need any help? |
Thank you very much for the head's up @andrzejkrzywda Actually, I need 48h days too keep up with all the plans and promisses... I'm terribly sorry to keep you waiting for so long. Back when I started, I've added the new BC and the first events. But I had to put it on a shelf for much longer than I expected. |
I have re-visited my changes and adjusted a bit. I've created a WIP PR at #175 So far I've
When you have a chance, please take a look and let me know what you think. Again - sorry for the delay. The next step, if I understand correctly, is to:
The thing I'm not sure about is - what's the intended approach for checking the credentials? |
Added the possibility to login with password. Extracted tasks: |
Currently, a client can "log in" by navigating to
/client
URL, selecting desired client name, and clicking thelogin
button.The outcome of this issue should be a possibility to log in using the client login and password.
The text was updated successfully, but these errors were encountered: