Skip to content

Commit 4ccfd65

Browse files
Don't expect an optional property in the token payload
1 parent 66fb3d1 commit 4ccfd65

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/service_ml_forecast/middlewares/keycloak_middleware.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class ResourceRoles(BaseModel):
6868
class KeycloakTokenUserPayload(BaseModel):
6969
"""Partial payload of the JWT token for handling resource access."""
7070

71-
name: str
7271
preferred_username: str
7372
resource_access: dict[str, ResourceRoles]
7473

0 commit comments

Comments
 (0)