Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

userInfo endpoint should return all user attributes #76

Closed
knstvk opened this issue Aug 9, 2021 · 1 comment
Closed

userInfo endpoint should return all user attributes #76

knstvk opened this issue Aug 9, 2021 · 1 comment
Assignees
Milestone

Comments

@knstvk
Copy link
Contributor

knstvk commented Aug 9, 2021

Using metadata or reflection.
Invent a way to hide the password field from API.

@knstvk knstvk added this to the 1.1.0 milestone Aug 9, 2021
@knstvk knstvk added this to Release 1.1 (October 2021) in Jmix Roadmap - OUTDATED Aug 10, 2021
@knstvk knstvk moved this from Release 1.1 (October 2021) to Release 1.2 (February 2022) in Jmix Roadmap - OUTDATED Aug 10, 2021
@knstvk knstvk moved this from Release 1.2 (February 2022) to Release 1.1 (October 2021) in Jmix Roadmap - OUTDATED Aug 10, 2021
@knstvk knstvk removed this from Release 1.1 (October 2021) in Jmix Roadmap - OUTDATED Aug 10, 2021
@Desire456 Desire456 self-assigned this Aug 16, 2021
@gorbunkov
Copy link
Contributor

The response should look like this:

{
   "username": "admin",
   "locale", "en_US",
   "attributes": {
       "username: "admin",
       "firstName: "admin",
       "lastName: "adminov",
   }
}

username and locale at the root level and user attributes in the "attributes" field.

Also, we should introduce the @Secret annotation in jmix-core. User attributes marked with this annotation (e.g. password) should not be returned by the endpoint.

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

No branches or pull requests

5 participants