Answers for "sprign boot authorization auto redirect to get authority to access login"

-1

spring security after login redirect

@Configuration
	@EnableWebSecurity
	public class SecSecurityConfig extends WebSecurityConfigurerAdapter {
	 
	    @Override
	    protected void configure(final HttpSecurity http) throws Exception {
	        http
	            .authorizeRequests()
	            // ... endpoints
	            .formLogin()
	                .loginPage("/login.html")
	                .loginProcessingUrl("/login")
	                .defaultSuccessUrl("/homepage.html", true)
	            // ... other configuration       
	    }
	}
Posted by: Guest on October-29-2020

Code answers related to "sprign boot authorization auto redirect to get authority to access login"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language