See https://github.com/secondsun/aerogear-android-authz/commit/b0b340faba166e5889d871da3026209a3b153c7b