lebronjamesuit / social-media-platforms

Build an backend app social media, secure my API using Spring Security 6 and Auth0. Deployed AWS.
https://lbconfessionapis-2012569758.eu-west-2.elb.amazonaws.com/swagger-ui/index.html
1 stars 0 forks source link
aws refresh-token spring spring-boot-3 spring-oauth2 springframework6

Social-media-platforms

Deployment:

Amazon RDS

Instance: db.t3.micro
PostgreSQL 15.3-R2  
image

Features

Technologies

Spring Security + Oauth 2 Client combination flow chart.

Screenshot 2023-07-09 at 20 42 26

Token management

image

refresh tokn

Authorization

  1. So it starts with the Client sending a login request to the server.
  2. The server checks the credentials provided by the user, if the credentials are right, it creates a JSON Web Token (JWT).
  3. It responds with a success message (HTTP Status 200) and the JWT.
  4. The client uses this JWT in all the subsequent requests to the user, it provides this JWT as an Authorization header with Bearer authentication scheme.
  5. When the server, receives a request against a secured endpoint, it checks the JWT and validates whether the token is generated and signed by the server or not.
  6. If the validation is successful, the server responds accordingly to the client.