Skip to content

Instantly share code, notes, and snippets.

@spiritbroski
Created December 5, 2020 02:40
Show Gist options
  • Select an option

  • Save spiritbroski/b9f3d820ab0b87690eb9822f397a0e23 to your computer and use it in GitHub Desktop.

Select an option

Save spiritbroski/b9f3d820ab0b87690eb9822f397a0e23 to your computer and use it in GitHub Desktop.
service: authorize
useDotenv: true
provider:
name: openwhisk
ignore_certs: true
functions:
authorize-github:
handler: authorize.github
parameters:
github_client_id: ${env:github_client_id}
github_client_secret: ${env:github_client_secret}
bind:
- service:
name: cloudantnosqldb
instance: Cloudant-vm
events:
- http: GET /authorize
plugins:
- serverless-openwhisk
- serverless-dotenv-plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment