Skip to content
UdemySoftware DevelopmentPaid courseAll LevelsCertificate

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

icon
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

icon
Quality Score

No CourseDuck member has rated this course yet. Taken it? Give each part a thumbs up or down.

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 90 / 100

icon
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.

icon
Udemy Discount

The discount is applied through our link. Open the course from here and Udemy's current promotional price is applied at checkout on most courses, no code to type.

Some courses are excluded from Udemy's promotions. If the price does not drop, clear your browser cookies and use the button again.

icon
Instructor Details

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!

icon
More courses by Sergey Kargopolov

$74.99

Free

$79.99

$74.99

$84.99

$79.99

icon
More Software Development courses

$19.99

$19.99

$19.99

$19.99

$19.99

$19.99

icon
Reviews

4.5

3,808 ratings on Udemy

Select a bar to show only those reviews.Select the bar again to show every rating.

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.

Showing all 10 reviews on CourseDuck

Read all 3,808 reviews on Udemy