Created
June 14, 2017 07:10
-
-
Save ueki-kazuki/7690ff16fdc0a91ac1b2d16302c18e7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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