如何解决春季启动,谷歌 auth2 注销
我正在处理 google oauth2 注销。当 2 gmail 在浏览器中登录时,我正在获取 google 帐户屏幕以选择注销后要使用的帐户。但是当只有一个谷歌帐户登录时,我无法注销。它会自动登录并进入主屏幕。即使在浏览器中登录了一个 Gmail,如何停止自动登录并获得谷歌帐户选择屏幕?
@Override
public void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity.csrf().disable().antMatcher("/**").authorizeRequests()
.antMatchers("/","/login","/home","/logout").authenticated()
.anyRequest().authenticated()
.and()
.logout()
.invalidateHttpSession(true)
.clearauthentication(true)
.logoutSuccessUrl("/oauth2/authorization/google")
.deleteCookies("JSESSIONID")
.permitAll()
.and()
.oauth2Login()
.userInfoEndpoint()
.oidcUserService(oidcUserService());
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。