Skip to content

[BUG]: API Call - /auth/email/me - 422 Error is shown #2700

@IuliaGaitan

Description

@IuliaGaitan

🐞 Bug Summary

422 error when trying to see the active user when using a generated API token.


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)

🔁 Steps to Reproduce

  1. Go to Swagger
  2. Send a GET to http://localhost:8080/auth/email/me
  3. Check result

🤔 Results:

422 error

Image
{
  "message": "Validation failed: Invalid password_change_required",
  "details": [
    {
      "field": "auth_provider",
      "message": "Invalid auth_provider"
    },
    {
      "field": "password_change_required",
      "message": "Invalid password_change_required"
    }
  ],
  "success": false
}

🤔 Expected Behavior

The endpoint should show the active user.


📓 Logs / Error Output

Paste any relevant stack traces or logs here.
⚠️ Do not paste secrets, credentials, or tokens.


🧠 Environment Info

You can retrieve most of this from the /version endpoint.

Key Value
Version or commit v0.128.0
Runtime Python 3.12.3
Platform / OS Linux 6.6.87.2-microsoft-standard-WSL2 (x86_64)
Container none

🧩 Additional Context (optional)

Related with #2390

Metadata

Metadata

Assignees

Labels

MUSTP1: Non-negotiable, critical requirements without which the product is non-functional or unsafebugSomething isn't working

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions