]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: SSO error: AttributeError: 'str' object has no attribute 'decode' 51951/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:43:34 +0000 (12:13 +0530)
commit309be0fee26c6abdfc7533bf908f0c6270f049a4
tree90b5e30c0f771dc37e7da72f874098b623b9324b
parent9a6a2dc88ca73ce6144437763a8709c90f69d938
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