Subversion Repositories SmartDukaan

Rev

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

Rev 30219 Rev 30227
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("fundfinatest").antMatchers("/**").permitAll()
29
				.hasRole("hdfctest").antMatchers("/fundfina/**").hasRole("fundfina").antMatchers("/**").permitAll()
30
				.and().httpBasic().authenticationEntryPoint(myBasicAuthenticationEntryPoint);
30
				.and().httpBasic().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 {