Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 3.26 KB

README.md

File metadata and controls

50 lines (29 loc) · 3.26 KB

1_YkgY5ktTU3GKsx5khORfwg

oAuth 2.0 with Google

This project demonstrates the implementation of "Login with Google" functionality in a Spring Boot 3.3.0 application. Here's how it works:

  1. User Authentication: When a user tries to log in using Google, they need to enter their Google credentials to authenticate themselves.
  2. Authorization: After successful authentication, Google will ask the user to grant the necessary permissions for the application.
  3. Application Login: Once the required permissions are granted, the user is successfully logged into the application.
  4. Registration: If the user is logging in for the first time and is not yet registered, they will be directed to a registration form to complete their profile and get fully registered.
  5. This setup ensures a smooth and secure way for users to authenticate and register using their Google accounts.

Technology Used

Java 17 SpringBoot 3.3.0 OAuth2.0 Html & Css Postgresql

Roles

  • Client: The Spring Boot application acts as the client. It requests access to the user's resources (like their Google profile information) on behalf of the user.
  • Authorization Server: Google’s OAuth 2.0 server acts as the authorization server. It handles user authentication and gets their consent to share specific resources with the client application.
  • Resource Server: Google's APIs act as the resource server. After the user authorizes access, the client application can request resources from these APIs, such as the user's profile information.
  • User: The end-user who wants to log in to the Spring Boot application using their Google account. The user provides their Google credentials and consents to share their information with the client application.

Screenshots

Screenshot 2024-06-16 001538

Screenshot 2024-06-16 001658

Screenshot 2024-06-16 001712

Screenshot 2024-06-16 001726

Screenshot 2024-06-16 001748

Screenshot 2024-06-16 001808

Screenshot 2024-06-16 001835

Screenshot 2024-06-16 001843

Screenshot 2024-06-16 001855