-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support the enterprise extension by default #72
Comments
@plamenGo I added the enterprise extension schema and updated the default User resource type in the showcase project. Did a simple create and get User on it, seems fine. Do you mind giving it a run on |
OK, I can check it out -- I did the same a forked repo, so I will check for any differences. Thanks @imulab! |
Looks good, works fine. Originally, I used this schema (with a .json ext): user_enterprise_extension_schema.txt It has different indices specified, and the manager schema is not called out. No idea whether that makes a difference. What you have seems good, the Microsoft tests are happy. |
Great, let me merge this in with your racing fix. |
looks like the enterprise schema does not work with PATCH calls, keep getting "error invalid path" |
can you post your request here? |
PATCH /Users/f020ebd9-8a5f-49de-b4d1-b47f755b7747 either one of these bodies fails
this issue is same as #75 |
Located the issue! I forgot to call the critical I added the calls during the context initialization for the user and group resource types and it seems to be working now. Also fixed a bunch of test cases affected by adding the schema extension definition in the public resource type definition (they are all crying about the extension being unregistered). This was fixed in the latest Thanks for providing the failing request! Closing this one for now. |
Hi, thank you for looking into this! I tested, and this is what I'm finding: It works fine for the add op. Specifically, it works for this request:
It fails for the manager request from my prev, but that might be poorly formatted by Azure. This version works:
I believe this is an issue where Azure does not respect that manager should be a complex type, and just sends a simple value, which we are not expecting as per the schema. However when the 'op' is replace I am still getting the invalid path error consistently. Is there something else we need to do to handle 'replace' ops correctly?
My request payload is this, but I can pretty much repro with with any PATCH call that updates the extension schema (replace op):
PATCH to http://localhost:5000/Users/id |
@plamenGo let me look into this... |
Hi, wondering if there is any advice on this. |
@plamenGo Sorry, been busy with another project, haven't checked back on this one. Will do so on Tuesday. |
@imulab do you have any advice if I wanted to attempt to fix it? |
@plamenGo I did some testing on my end and it seems that You can also change the extension schema to make |
As use cases of Microsoft AD seems popular with this library, it will be beneficial to support enterprise extension in the showcase project out-of-box so users can test it out.
The text was updated successfully, but these errors were encountered: