Integrating a RESTful API with a cloud IdP
Now that your application is becoming more and more popular, you decide to delegate your authentication to a cloud IdP as they offer advanced protection for sophisticated threats. You decide to use Azure AD B2C. This service is intended for public-facing applications, allowing customers to sign in and sign up, as well as customize the user journey, social network integration, and other interesting features.
What you’ll learn in this recipe can be applied to other cloud IdPs, such as Okta, AWS Cognito, Google Firebase, and many others. Spring Boot offers specialized starters that simplify the process of integrating with an IdP even more.
Getting ready
In this recipe, we’ll integrate the application you prepared in the Configuring an MVC application with OpenID authentication recipe. If you haven’t completed that recipe yet, I’ve prepared a working version that you can find in this book’s GitHub repository...