A Spring Boot web application demonstrating user registration, login, and Google OAuth 2.0 authentication using Spring Security.
- User registration and login forms
- Google OAuth 2.0 authentication
- Spring Security for secure auth
- Simple HTML/CSS frontend
- Maven-based project structure
- Beginner-friendly implementation
| Category | Technologies |
|---|---|
| Backend | Java, Spring Boot |
| Security | Spring Security, OAuth 2.0 |
| Frontend | HTML, CSS |
| Build | Maven |
spring-boot-auth/
├── src/
│ └── main/
│ ├── java/ # Spring Boot source code
│ └── resources/ # HTML, CSS, configs
├── pom.xml # Maven dependencies
├── mvnw / mvnw.cmd # Maven wrapper
└── README.md # Documentation
- Form Login: Register/login with email/password
- Google OAuth: Authenticate via Google account
- Spring Security: Handles auth & authorization
- Redirect: Successful login → secured dashboard
- Java 17+
- Maven 3.6+
# Clone repository
git clone https://github.com/samruddhi2865/Authapp.git
cd spring-boot-auth
# Start application
mvn spring-boot:runVisit: http://localhost:8080
Google OAuth Setup:
- Create Google OAuth credentials at Google Cloud Console
- Add
CLIENT_IDandCLIENT_SECRETtoapplication.properties
- Spring Boot project structure
- Spring Security authentication
- Google OAuth 2.0 integration
- Frontend-backend connection
- Database user persistence
- Role-based access control
- Bootstrap/React UI
- Logout & session management
- JWT token support
Samruddhi Kshirsagar
B.Tech CSE (AIML)