Sites that don't grant 'access content' permission to anonymous users result in access denied when redirected to the Drupal site for log in

Created on 28 June 2023, almost 2 years ago

Problem/Motivation

If a site does not grant the access content permission to anonymous users, attempting to log in using this module results in an access denied error due to that permission being required for the discourse_sso.sso route.

Steps to reproduce

See previous heading.

Proposed resolution

Add a new permission and use that for the route, rather than access content. It looks like access discourse sso was implemented in the 7.x-1.x branch, so that could be used to be consistent: #2423837: Add a permission

Remaining tasks

Do the thing.

User interface changes

A new permission on admin/people/permissions

API changes

None?

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇦Canada ambient.impact Toronto

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

Comments & Activities

Production build 0.71.5 2024