Skip to content

URGENT: mendys-platform Authentik provider rejects authorize with invalid_request (prod portal down) #495

Description

@izzywdev

@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:

  1. Missing/unbound authorization_flow on the provider (a provider without one rejects authorize as malformed).
  2. Missing scope mappings (openid/email/profile property mappings not attached).
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions