I'm trying scim-server-spring-boot example and everything is working fine. But i noticed that SCIMple library doesn't do any kind of validation on JSON request provided.
For example If i create user using below JSON request naming userName__ field instead of userName (by standard User standard Schema the correct name to be userName) i get 201 created instead of 400 bad request. The same result if i remove userName field although it is mandatory. Why? Is there something I'm not configuring well or that needs to be implemented by me?
Please let me know.
Thanks
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
],
"externalId": "extId",
"userName__": "username_1",
"name": {
"familyName": "XXX",
"givenName": "YYY"
},
"active": true,
"emails": [
{
"value": "email_3101_1417@gmail.com"
}
],
"addresses": [
{
"country": "US"
}
],
"phoneNumbers": [
{
"value": "+390833186005",
"type": "work"
},
{
"value": "+32802213916",
"type": "mobile",
"primary": false
}
],
"timezone": "Europe/London",
//"preferredLanguage": "ita",
"urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
"organization": "Buyer_guru",
"division": "Division",
"department": ""
}
}
I'm trying scim-server-spring-boot example and everything is working fine. But i noticed that SCIMple library doesn't do any kind of validation on JSON request provided.
For example If i create user using below JSON request naming userName__ field instead of userName (by standard User standard Schema the correct name to be userName) i get 201 created instead of 400 bad request. The same result if i remove userName field although it is mandatory. Why? Is there something I'm not configuring well or that needs to be implemented by me?
Please let me know.
Thanks
{ "schemas": [ "urn:ietf:params:scim:schemas:core:2.0:User", "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User" ], "externalId": "extId", "userName__": "username_1", "name": { "familyName": "XXX", "givenName": "YYY" }, "active": true, "emails": [ { "value": "email_3101_1417@gmail.com" } ], "addresses": [ { "country": "US" } ], "phoneNumbers": [ { "value": "+390833186005", "type": "work" }, { "value": "+32802213916", "type": "mobile", "primary": false } ], "timezone": "Europe/London", //"preferredLanguage": "ita", "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": { "organization": "Buyer_guru", "division": "Division", "department": "" } }