Expand my Community achievements bar.

Getting username and password with https connection

Avatar

Level 4

I have a webservice that will authenticate the user to run a http://localhost:8080/soap/services/myService, I would like to call this in a form when a user clicks a button.  So I require HTTP/s authentication on the SOAP service, and this brings up a prompt:

Connection at http://localhost:8080/soap/services/myService requires authentication:

           Username:

           Password:

Now on myService, I want to verify the username and password they have entered in that security prompt within my orchestration.  How can I retrieve the username/password from the Acrobat security prompt?

If I need to clarify, please just let me know.


Thanks,

Alex

3 Replies

Avatar

Former Community Member

The userid and password is already validated against the LC user database. If you synced with LDAP or Active Directory that is where it will be authenticated. Why woudl you want to authenticate again?

Paul

Avatar

Level 4

Hi Paul,

That's sort of what I assumed was happening, but I'm not actually wanting to authenticate for the webservice call it seems.  I'm wanting to capture their username/password via acrobat prompt then push it along to the soap service.  So I guess via script I would want to do:

1. prompt the user for username/password via acro-prompt (not sure how to do this)

2. capture their input in variables (again not sure from acro-prompt)

3. set up soap message (I can do)

4. send data ("")

5. receive data on LC side and use the user/password to authenticate in a database table I created ("")

6. modify a field based on authentication allowed/denied ("")


It doesn't necessarily have to be an actual authentication box, but I just want a username/password prompt so I can get those values.

Thanks,

Alex

Avatar

Former Community Member

You will not be able to get the password from LC but you can get the user who started the process by getting the creator_id in xpath. To get the password you coudl add script to the form to ask for the password and store it in the form data. Then you coudl retrieve it when submitted. This woudl not be very secure as the password woudl be in clear text in the data stream unless you sue an https connection.

Paul