oauth2.1 flow test、 page flow

pull/4/head
shengzhaoli.shengz 2023-10-17 11:43:05 +08:00
parent bd3e8ed961
commit a51a857173
2 changed files with 17 additions and 3 deletions

View File

@ -87,9 +87,11 @@ public class WebSecurityConfigurer {
// configurer.maximumSessions(1).maxSessionsPreventsLogin(true);
// });
http.exceptionHandling(configurer -> {
configurer.accessDeniedPage("/login?access_denied=true");
});
// http.exceptionHandling(configurer -> {
// configurer.accessDeniedHandler((request, response, accessDeniedException) -> {
// response.sendRedirect("/access_denied");
// });
// });
return http.build();
}

View File

@ -40,4 +40,16 @@ public class SOSController {
}
// /**
// * 403 无权限访问
// *
// * @return view
// * @since 3.0.0
// */
// @GetMapping("/access_denied")
// public String accessDenied() {
// return "access_denied";
// }
}