API token key name

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
AnonymousDev
Posts: 1
Joined: 20 Dec 2022, 13:55

API token key name

Post by AnonymousDev »

I have a problem with GET request at mantis api. The token and web URL are correct. But it seems that authentication token key name is wrong. In figure you can see "Aunthentication: <mykey>". Is it possible to change "Aunthentication" to something else? Or is there a way to find out which name for authentication token is correct?
Attachments
api_token.png
api_token.png (31.99 KiB) Viewed 5155 times
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: API token key name

Post by cas »

Did you check the token in Mantis, is it still valid?
You always can create another token.
AnonymousDev
Posts: 1
Joined: 20 Dec 2022, 13:55

Re: API token key name

Post by AnonymousDev »

cas wrote: 21 Dec 2022, 08:54 Did you check the token in Mantis, is it still valid?
You always can create another token.
The token value is valid but the token name is invalid meaning in example:
token_name: token_value

token_value is ok
but token_name is invalid

if token_name would be ok and token_value would be not ok than error message 403 would be returned
Last edited by AnonymousDev on 22 Dec 2022, 08:13, edited 1 time in total.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: API token key name

Post by cas »

So revoke the current token and create a new one (to be done in Mantis under My Account). Then you can set the name again to whatever you like.
Post Reply