mirror of https://github.com/dapr/docs.git
Update daprdocs/content/en/reference/components-reference/supported-cryptography/json-web-key-sets.md
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com> Signed-off-by: Mark Fussell <markfussell@gmail.com>
This commit is contained in:
parent
f51dea141f
commit
2f56aa9297
|
@ -31,8 +31,36 @@ spec:
|
||||||
type: crypto.jwks
|
type: crypto.jwks
|
||||||
version: v1
|
version: v1
|
||||||
metadata:
|
metadata:
|
||||||
- name: jwks
|
# Example 1: load JWKS from file
|
||||||
value: fixtures/crypto/jwks/jwks.json
|
- name: "jwks"
|
||||||
|
value: "fixtures/crypto/jwks/jwks.json"
|
||||||
|
# Example 2: load JWKS from a HTTP(S) URL
|
||||||
|
# Only "jwks" is required
|
||||||
|
- name: "jwks"
|
||||||
|
value: "https://example.com/.well-known/jwks.json"
|
||||||
|
- name: "requestTimeout"
|
||||||
|
value: "30s"
|
||||||
|
- name: "minRefreshInterval"
|
||||||
|
value: "10m"
|
||||||
|
# Option 3: include the actual JWKS
|
||||||
|
- name: "jwks"
|
||||||
|
value: |
|
||||||
|
{
|
||||||
|
"keys": [
|
||||||
|
{
|
||||||
|
"kty": "RSA",
|
||||||
|
"use": "sig",
|
||||||
|
"kid": "…",
|
||||||
|
"n": "…",
|
||||||
|
"e": "…",
|
||||||
|
"issuer": "https://example.com"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
# Option 3b: include the JWKS base64-encoded
|
||||||
|
- name: "jwks"
|
||||||
|
value: |
|
||||||
|
eyJrZXlzIjpbeyJ…
|
||||||
```
|
```
|
||||||
|
|
||||||
{{% alert title="Warning" color="warning" %}}
|
{{% alert title="Warning" color="warning" %}}
|
||||||
|
|
Loading…
Reference in New Issue