token gets truncated with PKI tokens
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
django-openstack-auth |
Fix Released
|
High
|
Matthias Runge |
Bug Description
this is specific to PKI tokens
set up a user with 2 projects, log in that user into horizon
you'll see, the project switcher (in upper corner) is empty.
I can see a stack trace:
Unable to retrieve project list.
Traceback (most recent call last):
File "/home/
is_
File "/home/
result = func(*args, **kwargs)
File "/home/
projects = client.
File "/usr/lib/
tenant_list = self._list(
File "/usr/lib/
resp, body = self.client.
File "/usr/lib/
return self.request(url, 'GET', **kwargs)
File "/usr/lib/
resp = super(LegacyJso
File "/usr/lib/
return self.session.
File "/usr/lib/
return func(*args, **kwargs)
File "/usr/lib/
raise exceptions.
Unauthorized: The request you have made requires authentication. (Disable debug mode to suppress these details.) (HTTP 401) (Request-ID: req-1fd4c0dc-
looking a bit more, the token seems to be way too short.
I tested with code having and not having commit:
https:/
Changed in django-openstack-auth: | |
importance: | Undecided → High |
Changed in django-openstack-auth: | |
milestone: | none → 1.3.2 |
Changed in django-openstack-auth: | |
milestone: | none → 1.4.0 |
status: | Fix Committed → Fix Released |
The line of code creating this Unauthorized code is: https:/ /github. com/openstack/ django_ openstack_ auth/blob/ master/ openstack_ auth/utils. py#L253