imulab / go-scim

Building blocks for servers implementing Simple Cloud Identity Management v2
MIT License
142 stars 55 forks source link

Multiple Attributes Selection #62

Closed plamenGo closed 4 years ago

plamenGo commented 4 years ago

Go-Scim can't seem to handle multiple attributes selection. A request like:

GET http://{{Server}}{{Port}}/{{Api}}/Users?attributes=userName,emails

Returns:

{ "schemas": [ "urn:ietf:params:scim:api:messages:2.0:Error" ], "status": 400, "scimType": "invalidPath", "detail": "invalidPath: error compiling path" }

It breaks on the comma ',' between userName and emails.

This test is from the Microsoft SCIM Reference Code Postman test collection: https://github.com/AzureAD/SCIMReferenceCode/wiki/Test-Your-SCIM-Endpoint

imulab commented 4 years ago

Yup that seems like a bug. I mistakenly interpreted the delimiter as space rather than a comma.

I am travelling now, will fix this on return.

Marking it as a bug.

imulab commented 4 years ago

fixed and closed.