-
Notifications
You must be signed in to change notification settings - Fork 155
Setting password can result in loss of custom data #1354
Comments
OK - I've investigated thoroughly and documented what happens below. When a user resets their password this results in a So unsurprisingly we lose all custom data associated with the user as the Okta update user documentation states:
After a lot of investigation the sequence of steps that results in custom data not being included in the profile data is fairly clear - the issue seems to stem from the switch over from the Stormpath to Okta backed. Previously when account data for a user was retrieved special case handling for custom data kicked-in in the
The important thing here is that the custom data gets created as a concrete implementation of
Our custom data, in this case
The This has fatal consequences later when the
In the call
As our custom data is an instance of And then this single entry is itself later removed by the
So the custom data map ends up totally empty and as a result
So This ends up being packed into the request that is sent to the Okta backend by
And results in the following HTTP request:
See that This is a really serious issue for us - we use custom data to associate the user in Okta with the data we maintain for them in our own DB. So every time a user resets their password we lose this data. |
I confirm that after applying pull request #1356 locally I now see a
Hmm... I suspect I should have been censoring at the very least the |
Originally reported by: @brussellc5 in: okta/okta-sdk-java#117
The text was updated successfully, but these errors were encountered: