Skip to content

Schema attributes should be case insensitive #319

@andreidabryian

Description

@andreidabryian

When I send POST request with body:

{
    "UserName": "UserName123",
    "Active": true,
    "DisplayName": "BobIsAmazing",
    "schemas": [
        "urn:ietf:params:scim:schemas:core:2.0:User"
    ],
  "externalId": "${__UUID}",
    "name": {
        "formatted": "Ryan Leenay",
        "familyName": "Leenay",
        "givenName": "Ryan"
    },
    "emails": [
        {
            "Primary": true,
            "type": "work",
            "value": "testing@bob.com"
        },
        {
            "Primary": false,
            "type": "home",
            "value": "testinghome@bob.com"
        }
    ]
}

I get an error:

{
    "schemas": [
        "urn:ietf:params:scim:api:messages:2.0:Error"
    ],
    "status": "400",
    "scimType": "invalidValue",
    "detail": "required attributes urn:ietf:params:scim:schemas:core:2.0:User:userName are missing"
}

If change UserName to userName, it returns a similar error about the next attribute.

I see that according to RFC 7643 "attribute names are case insensitive":
image

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions