Skip to content

Users removed from all groups if REMOTE_AUTH_DEFAULT_GROUPS isn't valid #11206

@arthanson

Description

@arthanson

NetBox version

3.4.0

Python version

3.8

Steps to Reproduce

Turn on social auth
Setup a user using a remote social login and belonging to some groups
set REMOTE_AUTH_DEFAULT_GROUPS to a group name that doesn't exist:
REMOTE_AUTH_DEFAULT_GROUPS=["notexist", ]
logout the user then log in as the user
see that the group assignments are cleared.

Expected Behavior

The REMOTE_AUTH_DEFAULT_GROUPS should just add them as a group, it shouldn't remove existing group assignments.

Observed Behavior

The user is removed from all groups.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions