Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theme selection not showing when using SSO #7257

Open
2 of 6 tasks
Computroniks opened this issue May 18, 2024 · 0 comments
Open
2 of 6 tasks

Theme selection not showing when using SSO #7257

Computroniks opened this issue May 18, 2024 · 0 comments
Labels
bug Identifies a bug which needs to be addressed question This is a question triage:not-checked Item was not checked by the core team

Comments

@Computroniks
Copy link

Computroniks commented May 18, 2024

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

  1. Setup SSO provider (openid_connect)
  2. Login
  3. Change default theme to dark-reader
  4. 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)
@Computroniks Computroniks added bug Identifies a bug which needs to be addressed question This is a question triage:not-checked Item was not checked by the core team labels May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies a bug which needs to be addressed question This is a question triage:not-checked Item was not checked by the core team
Projects
None yet
Development

No branches or pull requests

1 participant