oauth2.1 flow test、 page flow
parent
bd3e8ed961
commit
a51a857173
|
@ -87,9 +87,11 @@ public class WebSecurityConfigurer {
|
||||||
// configurer.maximumSessions(1).maxSessionsPreventsLogin(true);
|
// configurer.maximumSessions(1).maxSessionsPreventsLogin(true);
|
||||||
// });
|
// });
|
||||||
|
|
||||||
http.exceptionHandling(configurer -> {
|
// http.exceptionHandling(configurer -> {
|
||||||
configurer.accessDeniedPage("/login?access_denied=true");
|
// configurer.accessDeniedHandler((request, response, accessDeniedException) -> {
|
||||||
});
|
// response.sendRedirect("/access_denied");
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
|
||||||
return http.build();
|
return http.build();
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,4 +40,16 @@ public class SOSController {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 403 无权限访问
|
||||||
|
// *
|
||||||
|
// * @return view
|
||||||
|
// * @since 3.0.0
|
||||||
|
// */
|
||||||
|
// @GetMapping("/access_denied")
|
||||||
|
// public String accessDenied() {
|
||||||
|
// return "access_denied";
|
||||||
|
// }
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue