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

Simplify support of username as a nested property #16390

Open
Tracked by #16378
rwinch opened this issue Jan 9, 2025 · 0 comments
Open
Tracked by #16378

Simplify support of username as a nested property #16390

rwinch opened this issue Jan 9, 2025 · 0 comments

Comments

@rwinch
Copy link
Member

rwinch commented Jan 9, 2025

For Spring Boot users who want to change the property of the User Info response that is used to create a username, they can easily change this by specifying the user-name-attribute. However, if the username is nested this does not work. For example, X wraps responses in a data property which means the username is data.username

{
  "data": {
    "id": "2244994945",
    "name": "TwitterDev",
    "username": "Twitter Dev"
  }
}

Unfortunately, this currently requires quite a bit more work than a non-nested property.

We could consider a way to access nested properties or to simplify transform the response so it is not nested (probably preferred).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant