Add Missing AuthorizationRequestRepository in Snippet
Closes PR-13099
This commit is contained in:
parent
3469bcb822
commit
b6f3cb71e6
|
@ -276,9 +276,18 @@ public class OAuth2ClientSecurityConfig {
|
||||||
.authorizationRequestRepository(this.authorizationRequestRepository())
|
.authorizationRequestRepository(this.authorizationRequestRepository())
|
||||||
...
|
...
|
||||||
)
|
)
|
||||||
);
|
.oauth2Login(oauth2 -> oauth2
|
||||||
return http.build();
|
.authorizationEndpoint(endpoint -> endpoint
|
||||||
|
.authorizationRequestRepository(this.authorizationRequestRepository())
|
||||||
|
...
|
||||||
|
)
|
||||||
|
).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository() {
|
||||||
|
return new CustomOAuth2AuthorizationRequestRepository();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue