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

Create an Identity with email address value in CAPITALS #3810

Open
5 tasks done
ramu-n opened this issue Mar 8, 2024 · 0 comments
Open
5 tasks done

Create an Identity with email address value in CAPITALS #3810

ramu-n opened this issue Mar 8, 2024 · 0 comments
Labels
bug Something is not working.

Comments

@ramu-n
Copy link

ramu-n commented Mar 8, 2024

Preflight checklist

Ory Network Project

No response

Describe the bug

In Create an Identity API, When user email address is passed in CAPITAL letters and even though the VerifiableAddressStatus value is set to true in the request, but the status is set to false in kratos.

Reproducing the bug

Request:
POST /admin/identities
{
"schema_id": "default",
"credentials": {
"password": {
"config": {
"password": "" // omitted here
}
}
},
"traits": {
"email": "TEST@example.com"
},
"verifiable_addresses": [
{
"value": "TEST@example.com",
"verified": true,
"via": "email",
"status": "completed"
}
]
}

RESPONSE:
{
"id": "f56a8b9b-45a1-4b57-acef-af327cb0edf8",
"credentials": {
"password": {
"type": "password",
"identifiers": [
"test@example.com"
],
"version": 0,
"created_at": "0001-01-01T00:00:00Z",
"updated_at": "0001-01-01T00:00:00Z"
}
},
"schema_id": "default",
"schema_url": "",
"state": "active",
"state_changed_at": "2024-03-08T10:21:36.453063761Z",
"traits": {
"email": "TEST@example.com"
},
"verifiable_addresses": [
{
"id": "51681889-82f6-4918-88cb-84cbe8d39af3",
"value": "test@example.com",
"verified": false,

"via": "email",
"status": "pending",
"created_at": "2024-03-08T10:21:36.455585Z",
"updated_at": "2024-03-08T10:21:36.455585Z"
}
],
"recovery_addresses": [
{
"id": "e18df1ba-083d-4509-b303-c68a583a710e",
"value": "test@example.com",
"via": "email",
"created_at": "2024-03-08T10:21:36.456606Z",
"updated_at": "2024-03-08T10:21:36.456606Z"
}
],
"created_at": "2024-03-08T10:21:36.454449Z",
"updated_at": "2024-03-08T10:21:36.454449Z"
}

VerifiableAddressStatus value is false in the response, expected to be true

Relevant log output

No response

Relevant configuration

No response

Version

v1.0.0

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

@ramu-n ramu-n added the bug Something is not working. label Mar 8, 2024
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

No branches or pull requests

1 participant