Skip to content
This repository has been archived by the owner on Dec 12, 2018. It is now read-only.

Commit

Permalink
Allow POST messages to /api/v1/users/ it supports partial updates (gr…
Browse files Browse the repository at this point in the history
…oups does not)
  • Loading branch information
bdemers committed Sep 7, 2017
1 parent fbd0ccd commit 4a239cc
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,7 @@ public ResourceDataResult filter(final ResourceDataRequest req) {

// if this is an Okta CRUD operation, we must use a PUT and not a POST
HttpMethod method = HttpMethod.POST;
if ((href.matches(".*\\/api\\/v1\\/users\\/\\w*$")
|| href.matches(".*/api/v1/groups/.*"))
if ((href.matches(".*/api/v1/groups/.*"))
&& !create) {
method = HttpMethod.PUT;
}
Expand Down

0 comments on commit 4a239cc

Please sign in to comment.