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

Feature: Add User authentification #42

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

syphax-bouazzouni
Copy link
Collaborator

@syphax-bouazzouni syphax-bouazzouni commented Dec 20, 2024

Changes

  • Add PostgreSQL database and H2 for test (4e58d1c)
  • Add user model and repository layers (d55e991)
  • Add jwt token generator and filter validator (0fe3b3f)
  • Add spring security using the jwtAuthenticationFilter and users (43e5d66)
  • Add AuthController to register, login and logout users (042472f)
  • Add a global exception handler (1ff5994)

image

spring.jpa.hibernate.ddl-auto=update
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# Authentification
jwt.secret=3BTTxwtSBaY3KguZsrrZBnlsJbGFrsonbOQZ0hlZuhU=
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to extract this to a .env

restart: always
environment:
- POSTGRES_DB=db
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to extract this to .env

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

Successfully merging this pull request may close these issues.

1 participant