mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
update docs to reflect multiple identity sources:
This commit is contained in:
parent
1f086cfa14
commit
84e98e45c1
@ -314,8 +314,7 @@ functions:
|
||||
identityValidationExpression: someRegex
|
||||
```
|
||||
|
||||
You can also use the Request Type Authorizer by setting the `type` property. In this case, you
|
||||
do not need the `identitySource`
|
||||
You can also use the Request Type Authorizer by setting the `type` property. In this case, your `identitySource` could contain multiple entries for you policy cache.
|
||||
|
||||
```yml
|
||||
functions:
|
||||
@ -328,6 +327,7 @@ functions:
|
||||
authorizer:
|
||||
arn: xxx:xxx:Lambda-Name
|
||||
resultTtlInSeconds: 0
|
||||
identitySource: method.request.header.Authorization, context.identity.sourceIp
|
||||
identityValidationExpression: someRegex
|
||||
type: request
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user