From the course: Spring 6: Spring Security
Unlock this course with a free trial
Join today to access over 24,600 courses taught by industry experts.
Spring and OAuth 2.0
From the course: Spring 6: Spring Security
Spring and OAuth 2.0
- [Instructor] After just discussing a bit about what OAuth 2 is, I'd like to talk a little bit about how Spring works with OAuth 2. And as you might guess, Spring has full integration for this protocol. One of the first classes you may interact with is the CommonOAuth2Provider, and this is used to connect to such systems as Okta or Facebook, and we'll use a little bit more on this later, but as I said, it provides native support for things like Okta, Google, Facebook, GitHub, and several other OAuth providers. It's a property-based configuration if you're in a Spring Boot application, and that's most often how you're going to use this class. By using the property-based configuration, you actually get native support in the Spring Boot app itself with very little work, something that we are going to see in our example. It provides client-side OAuth integration. It allows you to provide third party support for the login operations so you don't have to keep that information in your site,…