Authentication via API with token is impossible #27270
Labels
Bug
broken, incorrect, or confusing behavior
Core
relates to code central or existential to Salt
fixed-pls-verify
fix is linked, bug author to confirm fix
P2
Priority 2
Salt-API
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
Version
Affected version is the release 2015.8
Problem
Using Salt-API, you will not be able to perform anything in the Salt, if you passing the token ID, once you've got it from the Login.
Workaround
You can still do everything, if you do not use token, but always username/password or any other initial way to authenticate via configured authentication mechanism
Steps to reproduce
Install Salt 2015.8
Start Salt Master
Start Salt-API
Run the following command (host, port and other parameters may differ):
It should return you a token, something like this:
Now use this token to do something, say
test.ping
(note, your host and port and other information may differ):Result
The response is faulty:
The traceback is visible from the Salt-Master:
The following traceback is visible from the Salt-API:
The text was updated successfully, but these errors were encountered: