Skip to content

keycloak log in failing when internalIssuerUrl is set to PublicIssuerUrl #2138

@deanchanter

Description

@deanchanter

Logs

2026-02-21 22:20:33 [warning ] Issuer discovery fallback failed for provider https://auth-mercuryiq-dev.miq-demo.runshiftup.com/realms/agentstack: "jwks_uri" MUST use "https" scheme [agentstack_server.api.auth.auth]
2026-02-21 22:20:33 [warning ] Issuer discovery failed for provider https://auth-mercuryiq-dev.miq-demo.runshiftup.com/realms/agentstack: "jwks_uri" MUST use "https" scheme [agentstack_server.api.auth.auth]
2026-02-21 22:20:33 [warning ] Token validation failed: Issuer discovery failed for provider https://auth-mercuryiq-dev.miq-demo.runshiftup.com/realms/agentstack: "jwks_uri" MUST use "https" scheme [agentstack_server.api.dependencies]
2026-02-21 22:20:33 [error ] Error during HTTP request: [('HTTPException', '401: Token validation failed')] [agentstack_server.application]
2026-02-21 22:20:33 [info ] 10.0.18.166:0 - "GET /api/v1/providers HTTP/1.1" 401 [uvicorn.access]
2026-02-21 22:20:34 [warning ] Issuer discovery fallback failed for provider https://auth-mercuryiq-dev.miq-demo.runshiftup.com/realms/agentstack: "jwks_uri" MUST use "https" scheme [agentstack_server.api.auth.auth]
2026-02-21 22:20:34 [warning ] Issuer discovery failed for provider https://auth-mercuryiq-dev.miq-demo.runshiftup.com/realms/agentstack: "jwks_uri" MUST use "https" scheme [agentstack_server.api.auth.auth]
2026-02-21 22:20:34 [warning ] Token validation failed: Issuer discovery failed for provider https://auth-mercuryiq-dev.miq-demo.runshiftup.com/realms/agentstack: "jwks_uri" MUST use "https" scheme [agentstack_server.api.dependencies]
2026-02-21 22:20:34 [error ] Error during HTTP request: [('HTTPException', '401: Token validation failed')] [agentstack_server.application]

WA is to set internalssurUrl to http://keycloak:8336/realms/agentstack

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions