cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.1, WF:How to set up authentication parameters to the REST WS?

Former Member
0 Kudos

Hello!

I need to get a very simple function - to allow the user to enter their credentials to access WS.

But I can't find the way to do it.

I created a REST WS, create a profile, enables HTTP Basic Authentication.

Then I try to user standard PK parameters - username and password, but it seems to be an authentication parameters to SUP platform. Nothing works.

Then I created new PKs (login and password) and set them in the HTTP Basic Authentication. But it also doesn't work with an error in log: com.sybase.dataservices.DSException:The security context does not contain the parameter key 'pk_login'.

Also I didn't find the way to use that PK in the Mobile Workflow - that keys weren't in the dropdown of the available PKs.

So could anyone to give me a clue how to achive my needs?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I made a new step forward - I added two parameters to WS's URI - login and password, so they appears in the WF.

Now the WS work fine. Is that method correct?

Former Member
0 Kudos

used the same "unofficial" way, but still got an error "login failed"...

have no idea about the relationship between sup connection credential and back-end REST service credential...