ansible / django-ansible-base

Apache License 2.0
18 stars 49 forks source link

JWT Auth ignore is_superuser value if False #623

Closed fosterseth closed 1 month ago

fosterseth commented 1 month ago

Fixes scenario where bob is a normal user in gateway, but is superuser in controller.

JWTAuth logic will update the bob user with is_superuser False, which is not what we want.

Instead, ignore is_superuser, unless the value is True

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud