OAuth login: 'validate id_token' fails after the crypto-provider fix (next layer of #60) #61
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_proxy#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
With the jsonwebtoken aws_lc_rs fix (#60) deployed, OAuth login no longer panics and now progresses through the code exchange to id_token validation, which fails: proxy logs '[ERROR] OAuth code exchange failed: validate id_token' and the browser shows 'OAuth exchange failed: validate id_token'. The proxy validates the id_token signature against the provider jwks_uri, fetched via OIDC discovery of issuer/.well-known/openid-configuration (oauth.rs validate_id_token, gated on a non-empty provider.jwks_uri). Most likely the seeded OAuth provider is missing the forge issuer / jwks_uri, so the proxy cannot get forge's signing key to verify the RS256 id_token; other candidates are the JWKS fetch failing or an iss/aud/nonce mismatch. Two asks: add the specific validation reason to the log (signature vs issuer vs audience vs nonce vs expiry) instead of the generic message, and verify the deployer's oauth.set_provider seed includes the issuer so OIDC discovery resolves the jwks_uri. Reproduced on flowtest8 (hero_proxy main
66b9b44).