Comments (1)
The supported filter attributes for resource Users in this sample are userName and externalId. This is defined in the Microsoft.SCIM.WebHostSample/Provider/InMemoryUserProvider.cs method QueryAsync. The extra /
does not cause issues if the attribute is supported.
The sample may benefit from returning a 400 error here instead of a 500 indicating that the attribute filtered is not supported, in addition to the PostMan collection modified to accommodate for this. @ArvindHarinder1 I don't see comments in the SCIM spec giving an answer here one or the other, however, the closest text states that invalid filters found in the query should result in a 400 response.
[rfc7644 section 3.4.2.2]
Providers MAY support additional filter operations if they choose.
Providers MUST decline to filter results if the specified filter
operation is not recognized and return an HTTP 400 error with a
"scimType" error of "invalidFilter" and an appropriate human-readable
response as per Section 3.12.
In the meantime, you can add the following query to the code to make the displayName test work.
if (queryFilter.AttributePath.Equals(AttributeNames.DisplayName))
{
IEnumerable<Core2EnterpriseUser> allUsers = this.storage.Users.Values;
results =
allUsers.Where(
(Core2EnterpriseUser item) =>
string.Equals(
item.DisplayName,
parameters.AlternateFilters.Single().ComparisonValue,
StringComparison.OrdinalIgnoreCase))
.Select((Core2EnterpriseUser user) => user as Resource).ToArray();
return Task.FromResult(results);
}
from scimreferencecode.
Related Issues (20)
- Patch phone numbers triggers object null reference exception
- Microsoft Azure Scim Provisioning Issue HOT 2
- Nugget package HOT 2
- [Closed]
- Core2EnterpriseUserExtensions Apply Patch does not patches Name Formatted
- Missing metadata update for 'Groups' provider
- Missing support for filter expressions
- Json Serialization/Deserialization Issues HOT 2
- Postman Test data field names does not match the Resource data field names [See the 1st comment for enhancement suggestion] HOT 2
- [Enhancement] Use AttributeFilter to use newtonsoft only on the scim controllers HOT 4
- Postman collection link outdated
- Pagination not working on GET /Users or /Groups HOT 1
- RequestExtensions.TryGetRequestIdentifier and overall usage of "correlationIdentifier"
- User patch (remove) request in sample does not verify schema for required attributes
- Status Code being set to 201 on PUT request HOT 1
- Autorization on Azure Ad failled
- Is TryGetRequestIdentifier() extension method incomplete?
- Question on 'value' in PatchOperation2Combined and the static Create() method vs assigning a value
- Handling of path and pathless patch operations
- Upgraded Target to Latest Net Core
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scimreferencecode.