Commit 9e18aaa0 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Fix a bug in the auth backend

parent 2845c951
......@@ -87,7 +87,7 @@ class OIDCTokenAuthBackend:
return self._get_idp_userinfo_bruteforce(access_token)
except OIDCConfig.DoesNotExist as error:
set_session(request, 'auth_error', error)
set_session(request, 'auth_error', str(error))
raise ValueError('Unable to retrieve userinfo (bruteforce)')
except HTTPError as error: # raised in idp.get_userinfo
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment