We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 128fc3a commit a4b7b07Copy full SHA for a4b7b07
src/service_ml_forecast/middlewares/keycloak_middleware.py
@@ -78,10 +78,13 @@ class KeycloakTokenUserPayload(BaseModel):
78
79
@cached(ttl=30, cache=Cache.MEMORY, key="valid_issuers") # type: ignore[misc]
80
async def _get_valid_issuers() -> list[str]:
81
- """Construct the list of valid issuers based on the realms retrieved from OpenRemote.
+ """Construct the list of valid issuers based on the enabled realms retrieved from OpenRemote.
82
83
Returns:
84
The list of valid issuers.
85
+
86
+ Remarks:
87
+ The list of valid issuers is cached for 30 seconds to reduce the number of requests to the OpenRemote Manager.
88
"""
89
openremote_service = get_openremote_service()
90
realms = openremote_service.get_realms()
0 commit comments