Gregory GoijaertsProdigy
I was just testing the new OAuth API and I noticed that it seems to be returning the wrong information.
When you create a session with the received access_token it returns a new user type which is pretty normal considering it is a new type of connection. The weird thing however is that the granted_by_user key, which should contain the detailed information on the user is nearly empty and only contains the user's display name and avatar.
Whereas the requested_by_user key is completely filled with user information. Now I'm not going to share a direct copy of this info since it contains some private information but it is the same response you'd get when requesting your own user information from the API.
Some of the information that is returned includes the following details about person providing the OAuth client:
- billing contract details,
- home address
- id-card information
- phone and email details
What I'm guessing that is going on is that the API has switched which info is returned. To clarify, I would expect that the user who is giving permission through OAuth sees the developer's name and image so he/she knows who is getting access. And then the granted_by_user field should contain detailed information on the user's own account. Right now this seems to be swapped around? π
This is making the OAuth API unusable for me since anyone using my desktop application could see all that private information about me.