audriga / scim-server-php Goto Github PK
View Code? Open in Web Editor NEWA PHP server library for SCIM 2.0 (RFC 7642 / RFC 7643 / RFC 7644)
Home Page: https://www.audriga.com/en/User_provisioning/Open_Provisioning_Framework
License: MIT License
A PHP server library for SCIM 2.0 (RFC 7642 / RFC 7643 / RFC 7644)
Home Page: https://www.audriga.com/en/User_provisioning/Open_Provisioning_Framework
License: MIT License
While testing Azure AD SCIM provisioning with the PR for a Nextcloud app at https://lab.libreho.st/libre.sh/scim/scimserviceprovider/-/merge_requests/2 I discovered what I think is a limitation/bug in this SCIM library rather than the NC app.
In short, I got this error in the logs:
Opf\Models\SCIM\Standard\Filters\FilterException: Incorrectly formatted AttributeExpression in /var/www/html/custom_apps/scimserviceprovider/vendor/audriga/scim-server-php/src/Util/Filters/FilterParser.php:29
The request was:
GET /Groups?excludedAttributes=members&filter=displayName+eq+%22EDU+All+personal%22
So, the filter that is requested is this:
displayName eq "EDU All personal"
Looking at FilterParser::parseFilterExpression()
it seems that it simply splits the filter string on the space character and verifies that the number of elements from that is two or three. It does not seem to take into account quoted values (strings are always quoted in this context), parentheses and similar filter formats.
As far as I can tell, spaces are perfectly valid in strings, according to the SCIM Core specification which references the JSON specification. Regarding filter formats there is support for grouping using ()
and more complex filtering using []
described here.
On a related note, I noticed that while there's about six groups in the Azure AD I'm testing with, only two of them are synced. It seems that the two that are synced have no spaces in their names, while those that are not synced do have spaces in their names. So perhaps that part is related to spaces as well (could be due to a query failing due to the above filter issue, I haven't digged into this at all yet).
Make it easier for developers to find this package and include it in their project by registering it on packagist.org. Shouldn't take more than just a couple of minutes.
I was looking for a package like this but had a hard time finding something usable and only accidentally stumbled on this package in github.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.