Client configuration

Your application can use the OAuth2 client that is configured in two different ways. The first of these ways is through the @EnableOAuth2Client annotation, which creates a filter bean with an ID of oauth2ClientContextFilter that is responsible for storing the request and context. It also manages communication between your application and an authorization server. However, we will be looking at the second approach to OAuth2's client-side implementation, through @EnableOAuth2Sso. Single sign-on (SSO) is a well-known security pattern that allows a user to use one set of login credentials to access multiple applications. There are two features provided by this annotation—the OAuth2 client and the authentication. The authentication ...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.