user logout rest api response is NULL

Created on 4 September 2020, over 4 years ago
Updated 29 June 2024, 10 months ago

Problem/Motivation

While using user logout API it gives a blank response with 204 status
http://site.com/user/logout?_format=json&token=<logout_token>

Steps to reproduce

1) Enable the required modules for web services (rest, hal..etc)
2) Login any user using rest (site.com/user/login?_format=json) and get the csrf_token and logout_token
3) hit the logout token (/user/logout?_format=json&token=<logout_token>)
4) It will give the blank output with 204 status code

Proposed resolution

core/modules/user/src/Controller/UserAuthenticationController.php -> logout() method we can just add the msg with logged out successfully.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

11.0 🔥

Component
User system 

Last updated 9 days ago

Created by

🇮🇳India naresh_bavaskar Pune, Maharashtra

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

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