We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3469bcb commit b6f3cb7Copy full SHA for b6f3cb7
docs/modules/ROOT/pages/servlet/oauth2/client/authorization-grants.adoc
@@ -276,9 +276,18 @@ public class OAuth2ClientSecurityConfig {
276
.authorizationRequestRepository(this.authorizationRequestRepository())
277
...
278
)
279
- );
280
- return http.build();
+ .oauth2Login(oauth2 -> oauth2
+ .authorizationEndpoint(endpoint -> endpoint
281
+ .authorizationRequestRepository(this.authorizationRequestRepository())
282
+ ...
283
+ )
284
+ ).build();
285
}
286
+
287
+ @Bean
288
+ public AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository() {
289
+ return new CustomOAuth2AuthorizationRequestRepository();
290
+ }
291
292
----
293
0 commit comments