https://github.com/rahulprojects01/spring_security_oauth2
The Spring Boot OAuth2 Application enables secure authentication using third-party providers like Google and GitHub. It uses Spring Security and OAuth2 for token-based authentication, ensuring secure access to protected resources.
https://github.com/rahulprojects01/spring_security_oauth2
java17 jpa-hibernate mysql-database oauth2 spring-boot
Last synced: about 2 months ago
JSON representation
The Spring Boot OAuth2 Application enables secure authentication using third-party providers like Google and GitHub. It uses Spring Security and OAuth2 for token-based authentication, ensuring secure access to protected resources.
- Host: GitHub
- URL: https://github.com/rahulprojects01/spring_security_oauth2
- Owner: RahulProjects01
- Created: 2024-11-27T04:51:28.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-19T13:39:19.000Z (over 1 year ago)
- Last Synced: 2025-07-26T03:27:52.800Z (11 months ago)
- Topics: java17, jpa-hibernate, mysql-database, oauth2, spring-boot
- Language: Java
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Security OAuth2 Integration
This application demonstrates **OAuth2** authentication and authorization using **Spring Security**, allowing users to securely log in with their third-party accounts (such as Google, GitHub, or Facebook). The app implements **OAuth2** to protect resources and manage user access based on their identity.
## Features
- **OAuth2 Authentication**: Provides third-party login functionality using providers like **Google**, **GitHub**, and others.
- **Role-Based Access Control**: Integrates with **Spring Security** to restrict access to resources based on the authenticated user’s roles.
- **Secure Access to Resources**: Protects sensitive endpoints and services with OAuth2-based security, ensuring that only authenticated users can access certain resources.
- **JWT Integration**: OAuth2 authentication can be combined with JWT tokens to securely maintain session state and authorize users.
## Tech Stack
- **Backend**: Spring Boot, Spring Security, OAuth2, JWT
- **OAuth2 Providers**: Google, GitHub, or any other OAuth2 provider (customizable)
- **Database**: MySQL (to store user data and session tokens)
- **Tools**: Postman (for API testing), IntelliJ IDEA or Eclipse (for development)
## How to Run
1. Clone the repository:
```bash
git clone https://github.com/your-username/spring-security-oauth2.git