Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.
Describe the issue:
As specified in the [1] "type" sub-attribute of the "members" attribute needs canonical values as User, Group but the existing implementation accepts any value as "type" without validation when sending a post request to Groups endpoint.
How to reproduce:
1.Create 2 users with userName 'samindra' and 'lawyers-new9'.
2.Create a group using the below data and send a post request to https://localhost:9443/scim2/Groups API.
Expected behavior:
If a unsupported type provided in the request body other than the specified canonical types '400 - Unsupported "type" provided' should be given as the response.
Describe the issue: As specified in the [1] "type" sub-attribute of the "members" attribute needs canonical values as User, Group but the existing implementation accepts any value as "type" without validation when sending a post request to Groups endpoint.
How to reproduce: 1.Create 2 users with userName 'samindra' and 'lawyers-new9'. 2.Create a group using the below data and send a post request to https://localhost:9443/scim2/Groups API.
Expected behavior: If a unsupported type provided in the request body other than the specified canonical types '400 - Unsupported "type" provided' should be given as the response.
Environment information:
References: [1]https://tools.ietf.org/html/rfc7643#page-26