Skip to content

Instantly share code, notes, and snippets.

View aeisele's full-sized avatar
friendly neighborhood java dev

Andreas Eisele aeisele

friendly neighborhood java dev
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
#!/bin/bash
set -e
buildDir="/build"
buildSize="2G"
buildEntry="tmpfs $buildDir tmpfs noatime,nodev,nosuid,size=$buildSize 0 0"
tcParent="/opt"
tcHome="$tcParent/TeamCity"