03-01-23 10:04 AM
Hello,
I am struggling to set up my web service to start using Token instead of Basic authentication.
1. I tried to follow this post: Blue Prism Product
I can generate token on the process level and it is for sure a correct token.
Therefore:
I have created credential slot with "Bearer Token" type.
I dynamically set the token as "password" using "set" action in Credentials VBO.
I set up "Common Authentication" part of the service to "Bearer Token" and select Credential slot mentioned earlier.
I am keep receiving 401 error.
2. I also tried this solution:
https://community.blueprism.com/communities/community-home/digestviewer/viewthread?GroupId=145&MessageKey=9de26d97-5c8f-40ab-9f18-2cce689c21c1&CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&tab=dig...
So I used the same "Bearer Token" credential slot which I update from the process.
Set up Common Headers to Name "Authorization"; Value: Bearer [Token]
& Common Parameters Name "Token" which I expose to the process and update (I also update token within credential slot so I am not sure if there is a point in providing it 2 ways at the same time, but that is what was suggested in the trade).
I also get 401.
Please help.
I am not attaching any screenshot because it seems to be more readable, but please let me know in case I can provide any useful info.
03-01-23 11:15 AM
03-01-23 11:34 AM
@EslamGhandour, thank you for your swift reply.
It goes through when I use SOAPUI (that is why we are sure token is correct).
In the beginning I tried it with " Common Authentication" being blank. I should have mentioned it - sorry. I double checked it now and it is still giving me 401.
03-01-23 12:43 PM
03-01-23 12:49 PM
03-01-23 01:13 PM
03-01-23 02:40 PM
Hello @ewilson,
I am using SOAPUI because postman is for some reason banned in my department, however, it s RESTful API 🙂
I currently use cURL through cmd (since I have issues with cookies when trying to use normal Utility - HTTP) to generate a NINAA Token.
Does it answer your question ?
03-01-23 04:59 PM
04-01-23 02:49 PM
Thank you for your suggestion.
I am not familiar with fiddler, but I will figure it out and try follow your advice.
I will let you know how I did 🙂
09-01-23 10:01 AM
Hello, I find out that it was very basic mistake on my side.
I haven't noticed I was still trying to connect through https although service is only prepared for http for now.
It works now with the set up number 2:)
I did notice it thanks to Fiddler so thank you 🙂