Subversion Repositories SmartDukaan

Rev

Rev 30227 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 30227 Rev 30228
Line 24... Line 24...
24
	protected void configure(HttpSecurity http) throws Exception {
24
	protected void configure(HttpSecurity http) throws Exception {
25
		http.logout().logoutUrl("logmeout").and().cors().disable().csrf().disable().authorizeRequests()
25
		http.logout().logoutUrl("logmeout").and().cors().disable().csrf().disable().authorizeRequests()
26
				// .antMatchers("/**").hasRole("hdfc")
26
				// .antMatchers("/**").hasRole("hdfc")
27
				.antMatchers("/hdfc/**").hasRole("hdfc").antMatchers("/imei/validate").hasRole("paytail")
27
				.antMatchers("/hdfc/**").hasRole("hdfc").antMatchers("/imei/validate").hasRole("paytail")
28
				.antMatchers("/spicemoney/callback").hasRole("spicemoney").antMatchers("/hdfctest/**")
28
				.antMatchers("/spicemoney/callback").hasRole("spicemoney").antMatchers("/hdfctest/**")
29
				.hasRole("hdfctest").antMatchers("/fundfina/**").hasRole("fundfina").antMatchers("/**").permitAll()
29
				.hasRole("hdfctest").antMatchers("/**").permitAll().and().httpBasic()
30
				.and().httpBasic().authenticationEntryPoint(myBasicAuthenticationEntryPoint);
30
				.authenticationEntryPoint(myBasicAuthenticationEntryPoint);
31
	}
31
	}
32
 
32
 
33
	@Autowired
33
	@Autowired
34
	protected void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
34
	protected void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
35
		auth.inMemoryAuthentication().withUser("hdfcuser").password("sd123$%^aGg").roles("hdfc").and()
35
		auth.inMemoryAuthentication().withUser("hdfcuser").password("sd123$%^aGg").roles("hdfc").and()
36
				.withUser("hdfctestuser").password("test").roles("hdfctest").and().withUser("spicemoney")
36
				.withUser("hdfctestuser").password("test").roles("hdfctest").and().withUser("spicemoney")
37
				.password("$SMT123MONEY").roles("spicemoney").and().withUser("paytail").password("$SDP@yTa!l")
37
				.password("$SMT123MONEY").roles("spicemoney").and().withUser("paytail").password("$SDP@yTa!l")
38
				.roles("paytail").and().withUser("fundfina").password("$mart@234").roles("fundfina");
38
				.roles("paytail");
39
	}
39
	}
40
 
40
 
41
}
41
}