Skip to content

Commit

Permalink
Merge branch 'master' of github.com:indigo-dc/oidc-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Nov 19, 2018
2 parents 4f493c7 + 05e7de0 commit cfefc0e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/utils/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,15 @@ cJSON* mergeJSONObjects(const cJSON* j1, const cJSON* j2) {
cJSON_GetArraySize(el1) == 0)) {
cJSON* cpy = cJSON_Duplicate(el, cJSON_True);
cJSON_ReplaceItemViaPointer(json, el1, cpy);
} else if (el1->type == cJSON_String && el->type == cJSON_String &&
strequal(el1->valuestring, el->valuestring)) {
pass;
} else if (strequal("scope", key)) {
// for scope the the value from j1 is used
// despite the value of j2.
// The acquired scopes might be different from the requested
// scopes, but that's fine. Also the ordering might change
pass;
} else {
oidc_errno = OIDC_EJSONMERGE;
char* val1 = jsonToString(el1);
Expand Down

0 comments on commit cfefc0e

Please sign in to comment.