Skip to content

Instantly share code, notes, and snippets.

@skiph
Created October 24, 2017 07:26
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 skiph/5b654ef0efa4415a09e7a4c2346b7258 to your computer and use it in GitHub Desktop.
Save skiph/5b654ef0efa4415a09e7a4c2346b7258 to your computer and use it in GitHub Desktop.
ext {
// modify the apiKey and clientPrefix
apiKey = "YOUR_API_KEY"
clientPrefix = "YOUR_CLIENT_PREFIX"
// google identity service
discoveryEndpoint = "https://accounts.google.com/.well-known/openid-configuration"
authorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth"
tokenEndpoint = "https://www.googleapis.com/oauth2/v4/token"
userInfoEndpoint = "https://www.googleapis.com/oauth2/v3/userinfo"
// google identity client
clientId = "${clientPrefix}.apps.googleusercontent.com"
redirectScheme = "com.googleusercontent.apps.${clientPrefix}"
redirectUri = "com.googleusercontent.apps.${clientPrefix}:/oauth2redirect"
authorizationScope = "openid email profile https://www.googleapis.com/auth/books"
// client keystore
secret = "secret"
keystore = "${secret}.keystore"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment