@claude Production incident on MendysRobotics (Jira MR-22, Critical): with login enforcement on, live.mendysrobotics.com is stuck in a login redirect loop. Backend logs show Authentik rejecting the AUTHORIZE request for the mendys-platform client:
GET /auth/oidc/callback?error=invalid_request&error_description=The%20request%20is%20otherwise%20malformed&state=...
Key facts:
- The error comes back to our REGISTERED redirect URI, so
client_id (mendys-platform-oidc-client) and redirect_uri are recognized by Authentik — the request dies during authorize validation, BEFORE any token exchange.
- Our authorize request params:
response_type=code, scope=openid email profile, state, nonce, code_challenge + code_challenge_method=S256 — identical shape to the working mendys-datasets flow.
Request: diff the mendys-platform OAuth2 provider (blueprint provider-oidc-mendys-platform.yaml) against the WORKING mendys-datasets provider and fix the delta. Leading suspects, in order:
- Missing/unbound
authorization_flow on the provider (a provider without one rejects authorize as malformed).
- Missing scope mappings (openid/email/profile property mappings not attached).
- PKCE/
invalidation_flow misconfiguration vs the datasets provider.
Please also confirm the provider's application slug is mendys-platform and both redirect URIs are present in STRICT mode:
https://live.mendysrobotics.com/api/auth/oidc/callback
https://marketplace.mendysrobotics.com/api/auth/oidc/callback
Mendys side: portal access is being restored via the documented requireLogin rollback while this is fixed; an SPA loop-breaker fix is also landing. We'll re-test the full login (MR-18 checklist) as soon as you confirm the provider is corrected.
Generated by Claude Code
@claude Production incident on MendysRobotics (Jira MR-22, Critical): with login enforcement on, live.mendysrobotics.com is stuck in a login redirect loop. Backend logs show Authentik rejecting the AUTHORIZE request for the
mendys-platformclient:Key facts:
client_id(mendys-platform-oidc-client) andredirect_uriare recognized by Authentik — the request dies during authorize validation, BEFORE any token exchange.response_type=code,scope=openid email profile,state,nonce,code_challenge+code_challenge_method=S256— identical shape to the workingmendys-datasetsflow.Request: diff the
mendys-platformOAuth2 provider (blueprintprovider-oidc-mendys-platform.yaml) against the WORKINGmendys-datasetsprovider and fix the delta. Leading suspects, in order:authorization_flowon the provider (a provider without one rejects authorize as malformed).invalidation_flowmisconfiguration vs the datasets provider.Please also confirm the provider's application slug is
mendys-platformand both redirect URIs are present in STRICT mode:https://live.mendysrobotics.com/api/auth/oidc/callbackhttps://marketplace.mendysrobotics.com/api/auth/oidc/callbackMendys side: portal access is being restored via the documented
requireLoginrollback while this is fixed; an SPA loop-breaker fix is also landing. We'll re-test the full login (MR-18 checklist) as soon as you confirm the provider is corrected.Generated by Claude Code