Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Created October 26, 2014 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simkimsia/7b50fe8d489bf4f04a78 to your computer and use it in GitHub Desktop.
Save simkimsia/7b50fe8d489bf4f04a78 to your computer and use it in GitHub Desktop.
code sample for OAuth2SecurityConfiguration
@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