- Issue created by @Anybody
In Drupal 7 there was a "system.connect" resource to retrieve information about the currently logged in user:
system > connect
Returns the details of currently logged in user.
This seems to be entirely missing in Drupal 8+ (5.x)?
As a follow-up on ✨ When authenticating via endpoint/user/login the user object or uid should be returned Needs review it would make sense to retrieve information about the currently logged in user, as the login won't return such, presumably!
As a workaround, you could use the uid returned from the login, but then you'd have to store it and the DX isn't really nice with the uid requirement.
Try to get information out the currently logged in user.
Like the additional User > UserLogin / UserLogout Service Definitions add a UserInformation (or something like that) service definition plugin, which returns information about the currently logged in user without requiring the uid parameter.
Active
5.0
Code