Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
keisni opened this issue Mar 28, 2024 · 3 comments · Fixed by #6534
Closed

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

keisni opened this issue Mar 28, 2024 · 3 comments · Fixed by #6534
Assignees
Labels
feature-request Something cool or not cool

Comments

@keisni
Copy link

keisni commented Mar 28, 2024

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.

@xiaoyijun
Copy link
Contributor

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 xiaoyijun added the feature-request Something cool or not cool label Apr 3, 2024
@iberflow
Copy link

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

@devtekve
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Something cool or not cool
Development

Successfully merging a pull request may close this issue.

5 participants