Skip to content

Commit 86ba019

Browse files
committed
fix env typo
Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
1 parent fb9de01 commit 86ba019

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

a2a/slack_researcher/a2a_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ def run():
221221
# if one of the auth variables is set, create middleware
222222
# if none of them are set, ignore all authorization headers. No token validation will be performed
223223
if not settings.JWKS_URL is None:
224+
logging.info("JWKS_URI is set - using JWT Validation middleware")
224225
app.add_middleware(AuthenticationMiddleware, backend=BearerAuthBackend(), on_error=on_auth_error)
225226

226227
uvicorn.run(app, host="0.0.0.0", port=settings.SERVICE_PORT)

a2a/slack_researcher/slack_researcher/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class Settings(BaseSettings):
4141
os.getenv("ISSUER", None),
4242
description="The issuer for incoming JWT tokens"
4343
)
44-
JWKS_URL: Optional[str] = Field(
45-
os.getenv("JWKS_URL", None),
44+
JWKS_URI: Optional[str] = Field(
45+
os.getenv("JWKS_URI", None),
4646
description="Endpoint to obtain JWKS from auth server"
4747
)
4848
AUDIENCE: Optional[str] = Field(

0 commit comments

Comments
 (0)