oauth2.1 flow test

pull/4/head
shengzhaoli.shengz 2023-10-17 11:03:16 +08:00
parent 138bf87e58
commit 49e16f0faa
1 changed files with 5 additions and 0 deletions

View File

@ -82,6 +82,11 @@ public class WebSecurityConfigurer {
// http.sessionManagement(configurer -> {
// configurer.maximumSessions(1).maxSessionsPreventsLogin(true);
// });
http.exceptionHandling(configurer -> {
configurer.accessDeniedPage("/login?access_denied=true");
});
return http.build();
}