mirror of https://github.com/status-im/consul.git
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
{
|
|
"name": "envoy.filters.http.jwt_authn",
|
|
"typedConfig": {
|
|
"@type": "type.googleapis.com/envoy.extensions.filters.http.jwt_authn.v3.JwtAuthentication",
|
|
"providers": {
|
|
"okta": {
|
|
"issuer": "test-issuer",
|
|
"payloadInMetadata": "jwt_payload_okta",
|
|
"remoteJwks": {
|
|
"httpUri": {
|
|
"uri": "https://example-okta.com/.well-known/jwks.json",
|
|
"cluster": "jwks_cluster",
|
|
"timeout": "1s"
|
|
},
|
|
"asyncFetch": {
|
|
"fastListener": true
|
|
}
|
|
}
|
|
},
|
|
"okta_0": {
|
|
"issuer": "test-issuer",
|
|
"payloadInMetadata": "jwt_payload_okta_0",
|
|
"remoteJwks": {
|
|
"httpUri": {
|
|
"uri": "https://example-okta.com/.well-known/jwks.json",
|
|
"cluster": "jwks_cluster",
|
|
"timeout": "1s"
|
|
},
|
|
"asyncFetch": {
|
|
"fastListener": true
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"rules": [
|
|
{
|
|
"match": {
|
|
"prefix": "some-special-path"
|
|
},
|
|
"requires": {
|
|
"providerName": "okta_0"
|
|
}
|
|
},
|
|
{
|
|
"match": {
|
|
"prefix": "/"
|
|
},
|
|
"requires": {
|
|
"providerName": "okta"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
} |