How mariocodev/spring-sso-google works
Project type and purpose
• This is a backend web application (a Spring Boot “demo” service) that implements Single-Sign-On (SSO) using Google’s OAuth 2.0.
• There is no separate “frontend” code here – it’s a Spring Boot MVC web app that drives the SSO flow and returns simple HTML or JSON.
File structure
• Top-level build files: pom.xml, Maven wrapper files, .mvn/, .gitignore, LICENSE.
• Source code under src/main/java/py/com/seto/google/auth/:
• SpringSsoGoogleApplication.java – the @SpringBootApplication entry point with two endpoints (/ and /user).
• SecurityConfig.java – configures Spring Security OAuth2 client for Google SSO.
• Configuration in src/main/resources/:
• application-example.yml – template for profile-specific settings (clientId, clientSecret).
• application.yml – picks up the active profile.
• Tests mirror the main code structure under src/test/java/….
README for additional insights
• Describes 4 Maven profiles (local, dev, uat, prod) and instructions on copying application-example.yml to e.g. application-local.yml.
• Specifies Java 17, Spring Boot 3.2.5, Maven 3.9.6.
• No database, caching, message queues or other services: it’s purely OAuth2 SSO with Google.