When authenticating via endpoint/user/login the user object or uid should be returned

Created on 2 March 2016, almost 9 years ago
Updated 3 April 2024, 9 months ago

When authenticating with drupal via an app/javascript all that is returned in the response is the cookie name and id.

In order to actually load a user object of the user that just logged in you need to know the users uid. Currently there is no access to this information.

Can the user's account object be returned as part of the response? If that is too heavy just the UID would be OK and you can use it on a subsequent request to load the users profile data?

Is there is another way to retrieve a users profile data after authenticating? The equivalent of system/connect.json in D7?

I am happy to write the patch if i get confirmation this is the correct path to take. Thanks for your time.

Feature request
Status

Needs review

Version

5.0

Component

Code

Created by

🇬🇧United Kingdom Rob Holmes

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024