Repository navigation
Description
Please verify that this bug has NOT been raised before.
- I checked and didn't find a similar issue
Describe the bug*
When using a SSO provider (in this case OIDC) it seems that selecting the theme in the user settings does not change the displayed theme.
When selecting the theme in settings, the request to the API is made and the response is 302 (as expected) and the setting is updated in the common_colortheme table (see snippet below), however the theme never changes for the user. It works as expected for a non SSO user but for SSO it seems to fail.
inventree=# select * from common_colortheme;
id | name | user
----+-------------+-----------------
1 | dark-reader | admin
38 | darker | Matthew Nickson
Steps to Reproduce
- Setup SSO provider (openid_connect)
- Login
- Change default theme to dark-reader
- Note no change
Expected behaviour
Theme updates
Deployment Method
- Docker
- Package
- Bare metal
- Other - added info in Steps to Reproduce
Version Information
Version Information:
InvenTree-Version: 0.15.1
Django Version: 4.2.12
Commit Hash: be3b22c
Commit Date: 2024-05-15
Database: postgresql
Debug-Mode: False
Deployed using Docker: False
Platform: Linux-6.8.4-3-pve-x86_64-with-glibc2.35
Installer: GIT
Active plugins: False
Please verify if you can reproduce this bug on the demo site.
- I can reproduce this bug on the demo site.
The demo site doesn't use SSO so this doesn't apply
Relevant log output
One slightly interesting thing from the server.err.log is this for the SSO user (there are multiple for each role so I have just included one below):
/opt/inventree/env/lib/python3.10/site-packages/django/core/cache/backends/base.py:117: CacheKeyWarning: Cache key contains characters that will cause errors if used with memcached: ':1:role_Matthew Nickson_return_order_delete'
warnings.warn(warning, CacheKeyWarning)
Activity
matmair commentedon Jul 1, 2024
Hi there @Computroniks! This got lost in the notification flood sadly. Can you please confirm this is still happening?
Computroniks commentedon Jul 1, 2024
Computroniks commentedon Jul 2, 2024
@matmair Updated to the version shown below, the issue still happens.
matmair commentedon Jul 4, 2024
I have just tested this with GitHub SSO and it seems to work with GitHub SSO but I have a feeling - what is your setting for
Display Users full names? UnderGeneralComputroniks commentedon Jul 4, 2024
It was set to on, but after I turned it off the issue is resolved.
matmair commentedon Jul 4, 2024
Ok that is passable solution till the permanent fix in #7556 is merged