cancel
Showing results for 
Search instead for 
Did you mean: 

web service authentication code

PatrickChilders
Level 3
I've used Visual Studio to consume a blue prism web service successfully. Unfortunately for authentication I can only seem to get it to work by hard-coding in a password. The documentation for web services includes samples but they too have hard-coded passwords. Blue Prism itself uses pass-through authentication, so is there any way that we can duplicate this? No matter what I try I just cannot seem to get anything other than 401 unauthorized when I try to send some form of non-hard-coded credential to the web service. For obvious reasons I really don't want to have a plain text password or key in my code. Thank you
2 REPLIES 2

RobinToll
Staff
Staff
Pass-through authentication is usually Active Directory, in this day and age. What authentication does the web service use? Is it tied to the same AD instance as the users running the robots? If the robot's user has permission to access the web service, you should be able to use pass-through authentication. If not, the other obvious option is to use the Credentials Manager in Blue Prism and use the built-in functionality to not hard-code credentials into your processes/code.

KimStroh
Level 2
So how do you set the object or action to use path through auth? I wasn't able to successfully run a HTTP GET in the BP studio without setting my network username and pwd in the object first.