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

Create a dummy login API #22

Open
jayasanka-sack opened this issue Oct 4, 2021 · 0 comments
Open

Create a dummy login API #22

jayasanka-sack opened this issue Oct 4, 2021 · 0 comments
Assignees

Comments

@jayasanka-sack
Copy link
Collaborator

You might need a new controller and a service to do handle authentication. (something like AuthController)

Create an endpoint to login (ex /auth/login). You don't need to implement session related stuff. For now, implement something like this:
A user may provide a username and password.

  • If the username and password are correct, return a 200 response.
  • If the credentials are wrong, send 401.
  • if the request payload is incomplete, send 400
@pasindur99 pasindur99 self-assigned this Oct 5, 2021
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

No branches or pull requests

2 participants