-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
31 lines (29 loc) · 1.05 KB
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
service: okta-openid-mini-project
frameworkVersion: '3'
provider:
name: aws
profile: default
runtime: nodejs14.x
httpApi:
cors:
allowCredentials: true
allowedOrigins:
- http://localhost:3000
authorizers:
jwtAuthorizer:
type: jwt
identitySource: $request.header.Authorization
issuerUrl: https://<Okta_host>/oauth2/default
audience: api://default
logs:
httpApi:
format: '{"ip":"$context.identity.sourceIp","authorizerError":"$context.authorizer.error","requestTime":"$context.requestTime","httpMethod":"$context.httpMethod","path":"$context.path","protocol":"$context.protocol","status":"$context.status","responseLength":"$context.responseLength","requestId":"$context.requestId","extendedRequestId":"$context.extendedRequestId","userAgent":"$context.identity.userAgent","integrationError":"$context.integration.error"}'
functions:
hello:
handler: handler.hello
events:
- httpApi:
path: /
method: get
authorizer:
name: jwtAuthorizer