Public Access
feat(security): load verify keys from auth JWKS
Core finds the key by the token kid and loads the JWKS again for an unknown kid, at most every 10 s. JWT_PUBLIC_KEY is used only until the first JWKS load works, so a key removed from the JWKS cannot verify later. While that key still works, requests do not wait for a slow Auth.
This commit is contained in:
1 parent
9fd552a785
commit
762b7898d3
8 files changed
+452
-60
No files matched your search
@@ -35,7 +35,8 @@ management:
|
||||
show-details: never
|
||||
security:
|
||||
jwt:
|
||||
public-key: ${JWT_PUBLIC_KEY}
|
||||
public-key: ${JWT_PUBLIC_KEY:}
|
||||
jwks-url: ${JWT_JWKS_URL:}
|
||||
app:
|
||||
cors:
|
||||
allowed-origins: "https://tbp.andreas-dahm.eu"
|
||||
|
||||
Reference in new issue
Block a user