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 user sign in endpoint #47

Closed
Tracked by #24
Goncalo-Marques opened this issue Mar 26, 2024 · 0 comments · Fixed by #52
Closed
Tracked by #24

Add user sign in endpoint #47

Goncalo-Marques opened this issue Mar 26, 2024 · 0 comments · Fixed by #52
Assignees
Labels
enhancement New feature or request server app Work associated with the server app

Comments

@Goncalo-Marques
Copy link
Owner

Goncalo-Marques commented Mar 26, 2024

  • Create HTTP endpoint to handle sign in:
    • Request body:
      • username
      • password
    • Response body:
      • JWT
  • Compare given password with the one stored in the database using bcrypt
@Goncalo-Marques Goncalo-Marques self-assigned this Mar 26, 2024
@Goncalo-Marques Goncalo-Marques added enhancement New feature or request server app Work associated with the server app labels Mar 26, 2024
@Goncalo-Marques Goncalo-Marques linked a pull request Apr 1, 2024 that will close this issue
Goncalo-Marques added a commit that referenced this issue Apr 1, 2024
Refs: closes #47 

## Summary

Add endpoint to sign a user in and return a JWT.

## Changes

- Add user sign in endpoint to swagger spec
- Add domain user models
- Add domain error for users not found
- Add user username logging key
- Add http transport layer to handle user sign in
- Add service layer to handle user sign in
- Add store layer to handle user sign in
- Remove unnecessary domain employee model
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request server app Work associated with the server app
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant