concept authorization code grant in category spring

appears as: authorization code grt, uthorization code grant
Spring Security in Action

This is an excerpt from Manning's book Spring Security in Action.

To make it simple and only give you an overview I’ve described you with the OAuth2 flow, which is called the password grant type. OAtuh 2 defines multiple grant types and, as you’ll see in chapters 12 to 15, it’s not always that the client application has the credentials. If we were using the authorization code grant, the application would have redirected the authentication in the browser directly to a login implemented by the authorization server. But more on this later in the book.

13.5  Using the authorization code grant

In this section, we discuss configuring the authorization server for the authorization code grant. You have used this grant with the client application we developed in chapter 12, and you know it’s one of the most used OAuth 2 grant types. It’s essential to understand how to configure your authorization server to work with this grant type as it’s highly probable to find this requirement in a real-world system. So in this section, we’ll write some code to prove how to make it work with Spring Security. I will create another project I’ll name ssia-ch13-ex2 to be easier for you to find the examples in the projects. From figure 13.6, you can remember how the authorization code grant type works and how the authorization server interacts with the other components in this flow.