Last active
December 19, 2023 20:06
-
-
Save artberger/674bab05350c9a048303cc7daaffe730 to your computer and use it in GitHub Desktop.
Gloo JwtPolicy basic dev-example
This file contains 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
apiVersion: security.policy.gloo.solo.io/v2 | |
kind: JWTPolicy | |
metadata: | |
annotations: | |
cluster.solo.io/cluster: "" | |
name: jwt-policy | |
namespace: httpbin | |
spec: | |
applyToRoutes: | |
- route: | |
labels: | |
route: httpbin | |
config: | |
phase: | |
preAuthz: {} | |
providers: | |
dev-example: | |
claimsToHeaders: | |
- append: true | |
claim: org | |
header: x-org | |
- append: true | |
claim: email | |
header: x-email | |
issuer: https://dev.example.com | |
local: | |
inline: |- | |
-----BEGIN PUBLIC KEY----- | |
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArER4FGhBW0h05DnVSHre | |
Vr7tH/+XpTGsmSVYXciDKm3BigygvE1oGXIdIrvIzwE8XTrSgfquvf+VhXvMOa4x | |
anvuEqrLlqV9kanlEtjkkwV6PbDksrUeukxDiaxGBTBm6XIlpQdfRI3lMSln6phM | |
mxtWOdMyA9QcXYEr5hXi9KJUyjGaAZGyOxYOyq+VNnxHIvqHR7pQiokTc4jkMD+X | |
rxgAka3Lb1ekE/WowwzPvO8dyq0cUiCBrC4TiH/Yd2/LVEwnWoM1RI8FsuRnRgcX | |
y2lto8nYVfQyCD6bWfnReiOo4DVQpP9GeVd3OxKDks+tt8AMT/IecrqPg08x+BCF | |
uwIDAQAB | |
-----END PUBLIC KEY----- | |
tokenSource: | |
headers: | |
- name: X-Auth | |
prefix: 'Bearer ' | |
queryParams: | |
- auth_token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment