Skip to content

Instantly share code, notes, and snippets.

@skiph
Created January 1, 2018 20:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skiph/2d3c96aa61f5d034190796362a189238 to your computer and use it in GitHub Desktop.
Save skiph/2d3c96aa61f5d034190796362a189238 to your computer and use it in GitHub Desktop.
ext {
// google credentials
apiKey = "GOOGLE_API_KEY"
clientId = "GOOGLE_CLIENT_ID"
// google authorization adapter service
adapterUri = "https://10.0.2.2:3001"
discoveryEndpoint = "${adapterUri}/.well-known/openid-configuration"
// discoverable end point defaults
authorizationEndpoint = "https://accounts.google.com/o/oauth2/v2/auth"
tokenEndpoint = "${adapterUri}/oauth2/token"
userInfoEndpoint = "https://www.googleapis.com/oauth2/v3/userinfo"
// client authorization
redirectScheme = "https"
redirectHost = "appauth.example.com"
redirectPath = "/oauth2redirect"
redirectUri = "${redirectScheme}://${redirectHost}${redirectPath}"
authorizationScope = "openid email profile https://www.googleapis.com/auth/books"
// client keystore
secret = "secret"
keystore = "${secret}.keystore"
}
@ilya888ak47
Copy link

****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment