Page 1 of 1

API token key name

Posted: 20 Dec 2022, 14:03
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?

Re: API token key name

Posted: 21 Dec 2022, 08:54
by cas
Did you check the token in Mantis, is it still valid?
You always can create another token.

Re: API token key name

Posted: 22 Dec 2022, 08:05
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

Re: API token key name

Posted: 22 Dec 2022, 08:26
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.