logto icon indicating copy to clipboard operation
logto copied to clipboard

oauth2.0 connector: support parse nested userInfo in Profile Map config

Open keisni opened this issue 11 months ago • 3 comments

What problem did you meet?

my identity provier, reponse user info like this: { "code": 10000, "data": { "uid": "alice" }, "msg": success } i tried to config Profile Map like this: { "id": "data.uid" } but it doesn`t work.

Describe what you'd like Logto to have

Support Profile Map config in this case. Or please tell me how to do this if this feature alreay exists.

keisni avatar Mar 28 '24 10:03 keisni

Hi @keisni , currently we do not support property mapping through an object's keypath, but this indeed is a feature worth implementing. However, due to the lack of sufficient resources recently, if you are in a hurry, you could to try contributing your code, otherwise you need to wait for our update plans.

xiaoyijun avatar Apr 03 '24 12:04 xiaoyijun

This is preventing me from using Zendesk as one of the connectors, they nest their user response in a "user" object.

iberflow avatar Aug 11 '24 22:08 iberflow

This is preventing me from using Zendesk as one of the connectors, they nest their user response in a "user" object.

Same issue for me here, except with Patreon. My workaround was to setup a small proxy to flatten the userinfo and configure logto to go to it.

For reference, I found your post on discord https://discord.com/channels/965845662535147551/1272623933186637997 and I made mine too https://discord.com/channels/965845662535147551/1274821740840878120

devtekve avatar Aug 18 '24 20:08 devtekve