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

Fix/Okta array in customData issue #609

Open
wants to merge 2 commits into
base: okta
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/resource/Account.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,10 @@ Account.prototype.toOktaUser = function toOktaUser(configuration) {
if (configuration.customDataStrategy === 'serialize') {
oktaUser.profile.customData = JSON.stringify(value);
} else {
extend(oktaUser.profile, dot.dot(value));
extend(oktaUser.profile, Object.keys(value).reduce(function(result, key) {
result[key] = value[key];
return result;
}, {}));
}
break;
default:
Expand Down