Created
October 26, 2014 15:49
-
-
Save simkimsia/7b50fe8d489bf4f04a78 to your computer and use it in GitHub Desktop.
code sample for OAuth2SecurityConfiguration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
public class OAuth2SecurityConfiguration { | |
// This first section of the configuration just makes sure that Spring Security picks | |
// up the UserDetailsService that we create below. | |
@Configuration | |
@EnableWebSecurity | |
protected static class WebSecurityConfiguration extends WebSecurityConfigurerAdapter { | |
@Autowired | |
private UserDetailsService userDetailsService; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment