Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
OAuth 2.0 in Spring Boot Applications
Highest Rated
Rating: 4.7 out of 5(3,782 ratings)
29,473 students

OAuth 2.0 in Spring Boot Applications

Learn to secure Spring Boot applications with the New OAuth 2.0 Stack in Spring Security 5
Last updated 5/2026
English

What you'll learn

  • OAuth 2.0
  • OAuth 2 Authorization Flows
  • The New OAuth 2.0 stack in Spring Security 5
  • Use OAuth 2.0 in Spring Boot Applications
  • Configure OAuth 2.0 Resource Server
  • Keycloak Identity and Access Management Solution
  • Resource Servers behind API Gateway
  • New Spring Authorization Server
  • OAuth 2.0 in MVC Web App
  • OAuth 2 - Social Login
  • OAuth2 + PKCE in JavaScript Application
  • Register Resource Servers with Eureka Service Registry

Course content

20 sections188 lectures11h 4m total length
  • Source Code1:18
  • Presentation files0:11
  • Introduction4:24

    Explore how to implement OAuth 2.0 in Spring Boot applications, from basic flows and access tokens to securing resource servers via scope, role, and API gateway integration.

  • Introduction to OAuth 27:19

    OAuth 2 is a standard open authorization framework with flows for web and mobile. It lets apps access user data on behalf of users using access tokens, without exposing passwords.

  • OAuth 2.0 Roles3:16

    Identify the four OAuth roles—resource owner, client, resource server, and authorization server—and explain how tokens are issued to apps logging in with user-owned data through providers or self-hosted servers.

  • Current State of OAuth 2.0 in Spring Security 53:31

    Explore the evolution of OAuth 2.0 in Spring Security 5, from the deprecated Spring Security OAuth to the new authorization server options, including Keycloak and Spring Authorization Server.

  • OAuth 2.0 Client Types5:00

    Explore how OAuth 2.0 client types work in Spring Boot: confidential vs public clients, how they store secrets, register with the authorization server, and choose appropriate flows.

  • OAuth Access Token7:45

    Discover how OAuth 2.0 issues access tokens after user consent and how resource and authorization servers validate them. Distinguish identifier tokens from self-contained JWTs.

  • OAuth2 and OpenID Connect (OIDC)3:39

    OpenID Connect adds an identity layer to OAuth 2.0, delivering an ID token with user information alongside the access token and exposing the user info endpoint.

Requirements

  • Knowledge of Java
  • Knowledge of Spring Boot
  • Knowledge of Spring MVC

Description

This video course is for beginner Java developers who are interested in learning how to secure OAuth 2.0 Resources in Spring Security 5.

The course covers only the new OAuth 2.0 stack in Spring Security 5.

You will learn how to: 

  • Perform each OAuth 2 authorization flow,

    • Authorization Code,

    • PKCE-enhanced authorization code,

    • Client credentials,

    • Password credentials.

  • Startup and configure the Keycloak server,

  • Configure OAuth 2 Resource Server,

  • Startup multiple Resource Servers on random port numbers,

  • Configure Spring Cloud API Gateway,

  • Configure and use Eureka Registry and Discovery Service,

  • Build a simple Spring MVC Web Application that fetches data from a protected Resource Server running behind Spring Cloud API Gateway.

  • Implement a simple JavaScript application that uses PKCE-Enhanced authorization code to acquire JWT access tokens and communicate with protected Resource Server,

  • Learn how to refresh an expired JWT Access token,

  • Learn to implement Scope-base access control,

  • Learn how to implement Role-based access control,

  • OAuth social login with Facebook, Google, and Okta accounts,

  • Implement Keycloak Remote User Authentication(User Storage SPI)

  • New Spring Authorization Server version 0.2.2

This is a step-by-step video course that explains how to use OAuth 2 from the very beginning. If you do not have experience with OAuth and would like to learn how to use it in Spring Boot Web Applications, then this video course is for you.

Who this course is for:

  • Beginner Java developer interested to learn OAuth 2.0