]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: SSO error: AttributeError: 'str' object has no attribute 'decode' 51950/head
authorVolker Theile <vtheile@suse.com>
Tue, 9 May 2023 13:19:42 +0000 (15:19 +0200)
committerNizamudeen A <nia@redhat.com>
Wed, 7 Jun 2023 06:42:54 +0000 (12:12 +0530)
commit01f0f8d456221ecd944e80933c64ef3009d532bc
tree971aeebd697f1e232d60329b44030aa3cd63df17
parent8c43c677d158b5e9f935b49dc88ba15f47f93e49
mgr/dashboard: SSO error: AttributeError: 'str' object has no attribute 'decode'

The token is `str` in PyJWT >= 2 and Python3. Check `controllers/auth.py` where the same code is used.

Fixes: https://tracker.ceph.com/issues/59689
References: https://github.com/SUSE/ceph/pull/506

Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit 0fc6e7637657a96acfb0aa01dde6b3fbd81a136d)
src/pybind/mgr/dashboard/controllers/saml2.py