Skip to content

Instantly share code, notes, and snippets.

View foo4u's full-sized avatar

Scott Rossillo foo4u

View GitHub Profile
@aeisele
aeisele / gist:2845397
Created May 31, 2012 18:53
use spring security oauth2 resource owner password scheme as authentication provider
public class ResourceOwnerAuthenticationProvider implements AuthenticationProvider {
private String apiEndpoint;
private String clientId;
private String accessTokenUri;
private String clientSecret;
private List<String> scope;
@Override