serverless / serverless-azure-functions

Serverless Azure Functions Plugin – Add Azure Functions support to the Serverless Framework
MIT License
266 stars 162 forks source link

jwtValidate set required claims? #504

Open jis260 opened 4 years ago

jis260 commented 4 years ago

Feature Proposal - setting jwtValidate claims as part of the serverless.yml

I've searched for whether this has been implemented or requested and I could not find anything.

Description

jis260 commented 4 years ago

I took a look at apimPolicyBuilder.js and I see that it does reference "requiredClaims".

I successfully set an required claim at the All Operations level with: image

I could not find this in the reference YAML template at: https://github.com/serverless/serverless-azure-functions/blob/master/docs/examples/apim.md

Multiple values can be specified like: image

I tried setting jwtValidate at the function level, but this does not set a policy.