Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile Management requests sends Request ID in POST Body instead of Query Parameter #190

Closed
aeneasr opened this issue Jan 27, 2020 · 0 comments · Fixed by #202
Closed
Assignees
Labels
bug Something is not working.

Comments

@aeneasr
Copy link
Member

aeneasr commented Jan 27, 2020

Describe the bug

Instead of setting the Request ID in the action part of the JSON Payload, it is set as a hidden field:

{
  "id": "48068b5d-3438-4d6f-9955-331b96c41762",
  "expires_at": "2020-01-27T23:03:58.5986947Z",
  "issued_at": "2020-01-27T22:03:58.5987099Z",
  "request_url": "http://127.0.0.1:4455/profiles",
  "form": {
    "action": "http://127.0.0.1:4455/.ory/kratos/public/profiles",
    "method": "POST",
    "fields": {
      "csrf_token": {
        "name": "csrf_token",
        "type": "hidden",
        "required": true,
        "value": "+5+WxP7+leOpfjHHkWWe99APD7845i82p4wGtfdWKHBK5fFg4BS7JjzdeI7kdsOUElyrG10ZR5vIqi7asNpqAA=="
      },
      "request": {
        "name": "request",
        "type": "hidden",
        "required": true,
        "value": "48068b5d-3438-4d6f-9955-331b96c41762"
      },
      "traits.email": {
        "name": "traits.email",
        "type": "text",
        "value": "aeneas@ory.sh"
      },
      "traits.name.first": {
        "name": "traits.name.first",
        "type": "text",
        "value": "sdfaasdfafsd"
      },
      "traits.name.last": {
        "name": "traits.name.last",
        "type": "text",
        "value": "sdfaasfd"
      }
    }
  },
  "identity": {
    "id": "c631e58a-445a-4844-ae80-f0b426a1e11e",
    "traits_schema_id": "default",
    "traits_schema_url": "",
    "traits": {
      "email": "aeneas@ory.sh",
      "name": {
        "last": "sdfaasfd",
        "first": "sdfaasdfafsd"
      }
    }
  }
}

This should be adjusted to match logic from login/registration.

Reproducing the bug

See #189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants