dci-python-backend-assignments / tdd-class-social

6 stars 4 forks source link

As a user I want to login #20

Open Frederick7277 opened 2 years ago

mathiasbrito-dci commented 2 years ago

@hilabit, @petertheprofessional and @Frederick7277 you need to sync, because you stories are related, Stories #13 #12 and #20

mathiasbrito-dci commented 2 years ago

Also, check issue #21 we need to define a model for teacher/student.

lamalul commented 2 years ago

I changed this Issue to be as a User I want to login , @Frederick7277 will work on that

Frederick7277 commented 2 years ago
  1. Initial structure for solution is developed.
  2. The issues depends on #13, which is regarding registration of users. #13 is not clearly progressed. #20 is convinced that there is link with #13.
  3. It is not entirely clear at which point the login(#13) takes over from registration(#20). The extent of information required to execute the login is also not clear. For example authorization protocols like "OAuth2" will be useful, but which information is relevant?
Frederick7277 commented 2 years ago

An "AuthenticationController" to authenticate Email, username and/or password is need. Need to generate token that the user retains for the time of login to the point of log_out. FLOW

Frederick7277 commented 2 years ago

Do not go for a template... this is out of the scope, if you have the tests for the controller you are done with your task. :)

Originally posted by @mathiasbrito-dci in https://github.com/dci-python-backend-assignments/tdd-class-social/issues/13#issuecomment-1176107341

I need something from https://github.com/dci-python-backend-assignments/tdd-class-social/issues/13. My research suggests that I need a "Template" or some sort of "Form", which I can request, iterate and validate for valid user, from registered users. If the template is not required, then I need guidance. In the meantime, tests are complete.

mathiasbrito-dci commented 2 years ago

to test it, use the docs as an interface, remember we are working on the backend, when we introduce templates we are starting to touch frontend code... if you fell you need an interface to interact with your route, use localhost:8000/docs