Skip to content

Instantly share code, notes, and snippets.

@ueki-kazuki
Created June 14, 2017 07:10
Show Gist options
  • Save ueki-kazuki/7690ff16fdc0a91ac1b2d16302c18e7a to your computer and use it in GitHub Desktop.
Save ueki-kazuki/7690ff16fdc0a91ac1b2d16302c18e7a to your computer and use it in GitHub Desktop.
import json
def callback(event, context):
body = {
"message": "Go Serverless v1.0! Your function executed successfully!",
"input": event
}
response = {
"statusCode": 200,
"body": json.dumps(body)
}
return response
service: oauth2cb
provider:
name: aws
runtime: python3.6
stage: prod
region: us-east-1
functions:
callback:
handler: app.callback
events:
- http:
path: oauth2/callback
method: get
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment