I’m trying to make an app that uses the ctfd API.
At first I tryed to use a session token to connect with the API (as the ctfd frontend does), but I found the API token in the docs. I thought this was more suitable.
I issued a token with a demo of ctfd and added Authorization: Token tokentokentoken
to the header to access/api/v1/challenges
. But this redirects to /login
.
How do I use API tokens?