Closed fnwbr closed 2 years ago
Correct me if I am wrong here, but we looked through the repository a little, and saw that the X-Spacedeck-Auth
header is referenced in one or two places without being fully implemented.
The difference here would be: X-Spacedeck-Api-Token
is an HTTP header that can be provided to provide an api_token
(coming from the User
model), while X-Spacedeck-Auth
would be a session token, which has to be generated via a POST
to the /sessions
endpoint first. (kind of as outlined in https://github.com/spacedeck/spacedeck-open/issues/15#issuecomment-616187422 back then)
This allows sending the same session token, that is usually being provided via the
sdsession
cookie, via theX-Spacedeck-Auth
HTTP header.