Make `session opened` logging optional

Created on 6 September 2022, almost 2 years ago
Updated 1 April 2024, 3 months ago

Problem/Motivation

Currently the OAuth 2 Drupal Auth provider always logs a db log message every time an authentication request is successful.

For a website that e.g. provides api access of sorts and and has specified various routes to use the `oauth2` auth provider, each time the authentication is successful for the route with the auth provider, a `Session opened for %name via @client` message gets logged. With a lot of users access a lot of endpoints, this quickly logs lots and lots of messages that we aren't really interested in.

Steps to reproduce

Set a route(s) to use the 'oauth2' authentication provider and authenticate successfully.

Proposed resolution

Make the logging of this message optional, so that e.g. high volume instances do not keep logging all these messages which are not very useful. By default the log messages will be enabled as they are now, to preserve the current behaviour.

Remaining tasks

User interface changes

A new setting added to the server configuration entity form which will disable the log messages.

API changes

N/A

Data model changes

A new setting added to the config schema.

✨ Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom rossb89

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.69.0 2024