]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: SSO error: AttributeError: 'str' object has no attribute 'decode' 51406/head
authorVolker Theile <vtheile@suse.com>
Tue, 9 May 2023 13:19:42 +0000 (15:19 +0200)
committerVolker Theile <vtheile@suse.com>
Tue, 9 May 2023 13:21:32 +0000 (15:21 +0200)
commit0fc6e7637657a96acfb0aa01dde6b3fbd81a136d
treeb46240f1a168295bbd98500b640363d514e0dd53
parent785f3ec474a7f78fee24ef9bcb4f64a2c0550094
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>
src/pybind/mgr/dashboard/controllers/saml2.py