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

  • 🔶 SonarQube 8.9.10.61524
  • 🔶 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 a framework, specified by the Internet Engineering Task Force (IETF) in RFCs 6749 and 6750 (published in 2012) designed to support the development of authentication and authorization protocols. It provides a variety of standardized message flows based on JSON and HTTP.

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
    
  2. Clone a GitHub Repository to your computer:

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

       http://localhost:7777
    

Releases

No releases published

Packages

No packages published