Not working Redirection Second Call in Spring boot

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

image

/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…?

Are you using the Okta Spring Boot starter? GitHub - okta/okta-spring-boot: Okta Spring Boot Starter

If you want to get an application working quickly, install the Okta CLI and run okta start spring-boot.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.