HI @pradeep,
I have tried the above code snippet with my application, but still same error. I am using the below securityConfig:
@Override
protected void configure(HttpSecurity http) throws Exception {
http.cors().and().csrf().disable().exceptionHandling().authenticationEntryPoint(unauthorizedHandler).and()
.sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS).and().authorizeRequests()
.antMatchers("/", "/favicon.ico", "/**/*.png", "/**/*.gif", "/**/*.svg", "/**/*.jpg", "/**/*.html",
"/v2/api-docs", "/configuration/ui", "/common/**", "/v2/api-docs", "/configuration/ui",
"/static/downloadFile/**", "/resources/**", "/swagger-resources", "/configuration/security",
"/swagger-ui.html", "https://aqueous-cliffs-46108.herokuapp.com/api/customer/get/customer/api",
"/webjars/**", "/**/*.css", "/**", "/**/*.js")
.permitAll().antMatchers("/api/auth/**").permitAll().antMatchers("/api/geolocation/**").permitAll()
.antMatchers("/api/ticketTemplate/**").permitAll().antMatchers("/api/admin/**").permitAll()
.antMatchers("/api/ticket/**").permitAll().antMatchers("/api/image/**").permitAll()
.antMatchers("/api/customer/**").permitAll().antMatchers("/api/application/setting/**").permitAll().antMatchers("/api/otp/**").permitAll().anyRequest().authenticated();
// Add our custom JWT security filter
http.addFilterBefore(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class);
}
I have removed all security Coinfig and run the application. Then the login screen of camunda comes but without styling and when I entered the credentials it says wrong user credential error message.