Remove status message "OAuth token stored."

Created on 9 July 2025, about 18 hours ago

Problem/Motivation

The status message OAuth token stored. is currently visible to end users, including anonymous users. This message should instead be logged internally or displayed only to administrators, as it may expose sensitive information or system behavior unnecessarily.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

4.1

Component

Code

Created by

🇮🇳India keshavv India

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

Comments & Activities

  • Issue created by @keshavv
  • 🇮🇳India keshavv India

    There is option available to remove it so closing the issue

  • 🇺🇸United States fathershawn New York

    Leaving documentation for others who might come across this issue. There is not an option to remove the message. There is an plugin property to allow display and a required method on plugins

      /**
       * Check the plugin definition for success_message or return a static value.
       *
       * @return bool
       *   Should a success message be displayed to the user?
       */
      public function displaySuccessMessage(): bool;
    

    The provided base method defaults to false but plugins can provide their own logic or leave the default.

      /**
       * {@inheritdoc}
       */
      public function displaySuccessMessage(): bool {
        return $this->pluginDefinition['success_message'] ?? FALSE;
      }
    
Production build 0.71.5 2024