OAuth 2.0 in Spring Boot Applications (Udemy.com)
Learn to secure Spring Boot applications with the New OAuth 2.0 Stack in Spring Security 5
Created by: Sergey Kargopolov
Last updated June 2026
What you will 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
Quality Score
No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.
Overall Score : 90 / 100
Course 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.
Instructor Details
- 4.5 Rating
3,808 Reviews
Sergey Kargopolov
I have more than 20 years of experience in building different types of software. I started my career as an Entrepreneur with award-winning web projects and currently, I’m a Full Stack Developer with a passion for teaching beginner programmers to reach their goals and assisting them in the development of their applications.
Follow me on Twitter, LinkedIn or Instagram to stay in touch.
Happy learning!
More courses by Sergey Kargopolov
Spring Boot Microservices and Spring Cloud. Build & Deploy. (2026)
4.7 (9,296 Reviews)
Provider: Udemy
Time: 25.8h
$74.99
RESTful Web Services with Spring Framework - A quick start (2024)
4.6 (4,822 Reviews)
Provider: Udemy
Time: 3h
Free
RESTful Web Services, Java, Spring Boot, Spring MVC and JPA (2026)
4.7 (4,325 Reviews)
Provider: Udemy
Time: 25.1h
$79.99
Apache Kafka for Event-Driven Spring Boot Microservices (2026)
4.6 (2,971 Reviews)
Provider: Udemy
Time: 15.2h
$74.99
Testing Java: JUnit 5, Mockito, Testcontainers, REST Assured (2026)
4.7 (2,514 Reviews)
Provider: Udemy
Time: 10.7h
$84.99
Event-Driven Microservices, CQRS, SAGA, Axon 4, Spring Boot (2026)
4.4 (2,441 Reviews)
Provider: Udemy
Time: 9.5h
$79.99
More Software Development courses
Build Web Apps with Nuxt.js 3: Master TypeScript & API [New] (2026)
4.9 (635 Reviews)
Provider: Udemy
Time: 6.7h
$19.99
70+ JavaScript Challenges: Data Structures & Algorithms (2023)
4.8 (748 Reviews)
Provider: Udemy
Time: 12.5h
$19.99
AI Agents Crash Course: Build with Python & OpenAI (2025)
4.8 (652 Reviews)
Provider: Udemy
Time: 3.4h
$19.99
Elasticsearch 9 & Spring Boot: Search Engine Masterclass (2026)
4.8 (225 Reviews)
Provider: Udemy
Time: 14.3h
$19.99
Introduction to AI and Machine Learning with Go (Golang) (2025)
4.8 (133 Reviews)
Provider: Udemy
Time: 36.2h
$19.99
Reviews
By Subhrasankar Debnath on 11/30/2024
I think this is the most in-depth OAuth Course that I have ever taken because the level of details and clarity is what I expected and also what I received from this course. I wish this course will update itself with the newer version of Spring Authorization Server as of 12/2024. Thanks & Regards, SSD.
By Franklin Ike on 10/10/2023
I really really really enjoyed this course. I really like Sergeys approach to teaching. You can tell he is a techy who really wants to understand the concepts he is trying to teach and has gone through alot of trouble to transfer that knowledge in a way thats useful in the real world without cutting corners. Doing this course made me an instant fan of Sergey and I have since bought another course of his and will probably buy more in the future. Thank you Sir
By Deependra Y on 6/3/2023
simple and easy to follow , whats happening at each line is explained very well, care has been taken very well by trainer while explaining concepts and implementing why such implementation/concept is required, trainer has a very very good hands on , its a must buy course for any one who wish to jump on spring security with OAuth2 flow
By Udo Klimaschewski on 3/12/2023
From my point of view, all the chapters about Spring Cloud Microservices, Eureka Discovery, Load Balancing etc. is way out of topic for a course about OAuth2. On the other hand, other aspects are missing. E.g. Some information about OpenId Connect. It is mentioned, but never explained. (E.g. in the logout endpoint). Also, acquiring an access token through Postman gets really tiresome after the third time. And it is repeated hundreds of times throughout the course. You should configure Postman to automatically obtain a token after the second time you do it manually.
By Anurag Desai on 9/10/2022
It was good, but would be better if English captions were present. Auto caption is worst had to turned it off. Should have taken at least one example with database.
By Bello Adamou on 5/6/2022
Good content but so badly taught ! Content is relevant and very useful but the teacher behave like he's teaching to childs: -spends time explaining even simple copy and paste, -repeat himself a lot -explain even basic concepts every developers already know All this make some video longer than they should be. It would also be nice if we had more demonstration with Restful app. Still some room for improvement but overall it's a good course. Content is good, it shows in details all the oAuth2 process and config. I enjoyed the theorical parts too.
By Filip Drasic on 10/20/2021
This was one of the best courses I have taken on Udemy! I have learned a lot about Spring Security and how to secure my application according to industry standards. This course is also a great introduction to Spring microservices, something I have been interested in for a while now. I recommend this course to anyone who wants to get known with Spring Security & microservices, and I will for sure recommend it to my work colleagues. Thanks a lot!
By Vladimír Korček on 6/24/2021
It was my pleasure to take this course, I learned lots of practical information about OAuth2, how it works, what are the different authorization flows/types, different authorization servers and I could test it in the practical examples. This was my second course from Sergey and I really like his approach and detailed explanation of theoretical things as well when coding examples, this is really important and good when learning new things. I had great experience during the course and even I wasn't completely new to OAuth topic I have now much better knowledge about it.
By Emmanuel Garcia de Santiago on 6/19/2021
It is one of the best Udemy courses. Sergey explained every topic in detail and all the code works without any issue. The unique advice from my side would be to apply an update for the videos using authentication configuration with Facebook and Google, they are outdated, the consoles/options are not exactly the same.
By Mohammed Mahfuzul Alam on 2/3/2021
One of finest course. It covers not only OAuth 2.0 only, but also some high level overview of Eureka Discovery Service, API Gateway, Load balancing as well as a glimpse of micro-service architecture. If you are looking for an standalone OAuth server up and running that serves as an auth service for several micro-services than this course is definitely for you.







![Build Web Apps with Nuxt.js 3: Master TypeScript & API [New]](/programming/software-development/images/6457785_5adc_4.jpg?v=1789443959)




