Merge pull request #1729 from CodeMonkeyLeet/fix_opa_rego_typo

Fix casing typo in OPA rego example for Authorization
This commit is contained in:
Ori Zohar 2021-08-19 13:50:20 -07:00 committed by GitHub
commit dabcf6fba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ spec:
my_claim := jwt.payload["my-claim"]
}
jwt = { "payload": payload } {
auth_header := input.request.headers["authorization"]
auth_header := input.request.headers["Authorization"]
[_, jwt] := split(auth_header, " ")
[_, payload, _] := io.jwt.decode(jwt)
}