Hi,
I had added below code to handle Ldap login using oauth. adding this my code is working but the theme got changed from vertical to horizontal. There is an option near timezone with four box if i click on that i am redirect to my old theme. Somehow main-screen-top-menu.xml
is getting open instead existing menu.
@Bean
@Order(JmixOrder.HIGHEST_PRECEDENCE + 100)
public SecurityFilterChain securityFilterChain(HttpSecurity http,
CustomDefaultJmixOidcUserService jmixOidcUserService,
ClientRegistrationRepository clientRegistrationRepository) throws Exception {
http.apply(SecurityConfigurers.uiSecurity())
.and()
.oauth2Login(oauth2Login -> {
oauth2Login.userInfoEndpoint(userInfoEndpoint -> {
userInfoEndpoint.oidcUserService(jmixOidcUserService)
.and()
.successHandler((request, response, authentication) -> {
//redirect to the main screen after successful authentication using auth provider
new DefaultRedirectStrategy().sendRedirect(request, response, "/#main");
});
});
})
.logout(configurer -> {
configurer.logoutSuccessHandler(oidcLogoutSuccessHandler());
});
return http.build();
}
Existing Theme

Changed Theme
