Get authentication token details
Hello
I'm currently trying to execute the instructions of the Authentication Service API document:
I'm stuck at the step "Get auth token details".
I use the software Postman to test the request.
I tried the type of authorization "Bearer Token" and fill the field "Token" with the token value that i got with the request HTTP for basic authentication using name and password
But I got this message of error "Invalid header. Verify the header"
Can someone help me please
Thank you
Best Answers
-
Hi @DanielLim2,
You shouldn't use Bearer Token in this scenario - please take a look at this Postman Collection for Anaplan, I think it will help you with whatever you try to achieve:
1 -
Hi @DanielLim2,
You are almost there - just add whitespace between "AnaplanAuthToken" and the actual value of the token, and remove quotes. So like this:
AnaplanAuthToken ABC123
That's why it's better to use variables, as you see in the library I linked - you have more reusability and avoid errors during copy&paste.
1
Answers
-
Hi,
You shouldn't be doing authentication via authentication tab but through headers. There your header would be
authorization: 'AnaplanAuthToken {your_token_value}'
0 -
Hi
Thank you for your answer.
I tried this too, but i got the same message
With 0 Params for Anthorization, whatever the field "No Auth", "Bearer Token", "Basic Auth", I got a message of error
Thank you for your help
0 -
Hi on the column left side your value should be authorization and in right hand side AnaplanAuthToken {token_value}
0 -
Hi
Thank you guys
I will look at it M.Kierepka
I tried
Thanks
0 -
Hello Guys
Thanks a lot, it worked
M.Kierepka, I looked at your postman, it's amazing. Can I ask you some questions about it ? I will just do some personnal researchs before, try to understand by myself.
Thank you again
0 -
Hi @DanielLim2,
Glad it's working now! Sure, you can always post another question on community and tag me in the comment, or directly message me.
0