Spring boot spring启动,google auth2注销

Spring boot spring启动,google auth2注销,spring-boot,authentication,google-oauth,spring-security-oauth2,google-login,Spring Boot,Authentication,Google Oauth,Spring Security Oauth2,Google Login,我正在谷歌oauth2注销工作。当2 gmail登录到浏览器时,我会在google帐户屏幕上选择注销后要使用的帐户。但是,当只有一个谷歌帐户登录时,我无法注销。它会自动登录并进入主屏幕。即使有一个gmail登录到浏览器中,如何停止自动登录并获得google帐户选择屏幕 @Override public void configure(HttpSecurity httpSecurity) throws Exception { httpSecurity.csrf().disable(

我正在谷歌oauth2注销工作。当2 gmail登录到浏览器时,我会在google帐户屏幕上选择注销后要使用的帐户。但是,当只有一个谷歌帐户登录时,我无法注销。它会自动登录并进入主屏幕。即使有一个gmail登录到浏览器中,如何停止自动登录并获得google帐户选择屏幕

     @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());
}