Token authentication fails with 500 error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
New
|
Undecided
|
Unassigned |
Bug Description
Token authentication fails when using a token issued via application credential.
Below code demonstrate the failure.
(I used keystoneauth1 but plain HTTP requests with curl will also fail.)
=== Beginning of code ===
from keystoneauth1 import identity
from keystoneauth1 import session
app_cred = identity.
auth_url='http://
application
application
)
session_app_cred = session.
ref = app_cred.
token = identity.Token(
auth_url='http://
token=
project_
project_
)
session_token = session.
res = token.get_
print(res.
=== End of code ===
The error was caused by below code line.
https:/
If it is the case that the token should not be authenticated, correct error response should be produced.
Otherwise, the authentication should be successful.
I made a simple fix to this problem and applied to my deployment.
Please check the problem and feel free to ask me for any futher details.
Thanks.
Hi,
I think you are correct, the exception should be caught and handled correctly. Are you able to provide the fix you have implemented?
Thanks!