I am trying to integrate okta in my application. First time it is redirecting to okta server once login with user name and password its is redirecting me to default page as below
/login have some other page to view instead of application showing me this page. If i click on hyperlink also it is not redirecting me to anywhere.
—Spring Secuirty----
protected void configure(HttpSecurity http) throws Exception {
http.antMatcher("/**")
.authorizeRequests()
.antMatchers("/").permitAll()
.anyRequest().authenticated()
.and().oauth2Login().permitAll(); // <-- THIS WAS CHANGED
http.csrf().disable();
http.headers().frameOptions().sameOrigin();
http.headers().defaultsDisabled().cacheControl();
http.headers().defaultsDisabled().contentTypeOptions();
http.headers().xssProtection().block(false);
http.headers().httpStrictTransportSecurity().includeSubDomains(true).maxAgeInSeconds(7776000);
}
Do i have to configure anything else in my application…?