Skip to content

A Spring Boot web-based application configured to use OAuth 2.0 with Google API.

Notifications You must be signed in to change notification settings

AndrzejSzelag/oauth2google

Repository files navigation

OAuth 2.0 Google

A Spring Boot web-based application configured to use OAuth 2.0 with Google API.

OAuth2Google1.java OAuth2Google2.java

Tech Stack

  • 🔶 Java 21.0.5 LTS
  • 🔶 Spring Boot 3.4.2
  • 🔶 Apache Maven 3.9.8

Testing

  • 🔶 JUnit 5.11.4
  • 🔶 AssertJ 3.26.3
  • 🔶 Mockito 5.14.2

IDE

  • 🔶 IntelliJ IDEA 2024.3.2.1 (Ultimate Edition)

What is OAuth 2.0?

OAuth (Open Authorization) 2.0 is an open authorization standard. It provides a way for users to log into a web-based application (Spring Security OAuth 2.0) by delegating the authentication process to trusted third-party services, such as Google and GitHub. The full specification of the OAuth 2.0 protocol can be found in RFC 6749.

How use OAuth2.0?

  1. Configuring an OAuth 2.0 Google application in Google Cloud Platform (https://cloud.google.com/).

    You need:

      CLIENT_ID
      CLIENT_SECRET  
      REDIRECT_URI
    
  2. Clone a GitHub Repository to your computer:

       git clone https://github.com/AndrzejSzelag/oauth2google.git
    
  3. Run JAR file and in your web browser paste a URL:

       http://localhost:7777
    

About

A Spring Boot web-based application configured to use OAuth 2.0 with Google API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published