Subversion Repositories SmartDukaan

Rev

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

Rev 26547 Rev 26548
Line 26... Line 26...
26
		logout().logoutUrl("logmeout").and()
26
		logout().logoutUrl("logmeout").and()
27
		.cors().disable().csrf().disable()
27
		.cors().disable().csrf().disable()
28
				.authorizeRequests()
28
				.authorizeRequests()
29
				//.antMatchers("/**").hasRole("hdfc")
29
				//.antMatchers("/**").hasRole("hdfc")
30
				.antMatchers("/hdfc/**").hasRole("hdfc")
30
				.antMatchers("/hdfc/**").hasRole("hdfc")
-
 
31
				.antMatchers("/spicemoney/callback").hasRole("spicemoney")
31
				.antMatchers("/hdfctest/**").hasRole("hdfctest")
32
				.antMatchers("/hdfctest/**").hasRole("hdfctest")
32
				.antMatchers("/**").permitAll()
33
				.antMatchers("/**").permitAll()
33
				.and()
34
				.and()
34
				.httpBasic()
35
				.httpBasic()
35
				.authenticationEntryPoint(myBasicAuthenticationEntryPoint);
36
				.authenticationEntryPoint(myBasicAuthenticationEntryPoint);
36
	}
37
	}
37
 
38
 
38
	@Autowired
39
	@Autowired
39
	protected void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
40
	protected void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
40
		auth.inMemoryAuthentication().withUser("hdfcuser").password("sd123$%^aGg").roles("hdfc").and()
41
		auth.inMemoryAuthentication().withUser("hdfcuser").password("sd123$%^aGg").roles("hdfc").and()
41
				.withUser("hdfctestuser").password("test").roles("hdfctest");
42
				.withUser("hdfctestuser").password("test").roles("hdfctest").and()
-
 
43
				.withUser("spicemoney").password("spicemoney").roles("spicemoney");
42
	}
44
	}
43
 
45
 
44
}
46
}