cancel
Showing results for 
Search instead for 
Did you mean: 

Send cookie to webservice via SMP 3.0

Former Member
0 Kudos

Hi,

  I am building a hybrid application using Kapsel and SMP 3.0 SP06 where the authentication is based on Http login using basic authentication.

From the mobile application I am trying to send a cookie in the header e.g. Cookie: myappID=myapplication to the authentication webservice.

The issue is while I am getting http header for authorization I am not getting any cookie header data in the webservice.

Please suggest what could be the issue.

Regards,

Amit

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for your reply Jitendra.

Since the webservice is used for authentication using Http/https login module in the authentication section I have used the service as is and not converted to OData. The service is a Restful service.

[Mobile App]---SetCookie--> [SMP 3.0](Http Login)----Basic Auth--->[Java Restful webservice]

As you can see the cookie set by the mobile app needs to be available at the webservice.

Please let me know if some more information is needed.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you check below points:

1. What is the SSO mechanism you have selected? (under BACKEND tab for the same app id)

2. Are you able to ping app id created in Admin cockpit for the given backend url (rest service)?

3. Did you try on-boarding the user using rest client? Did it work? You must have given REST service credentials under AUTHORIZATION header.

Regards,

JK

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

From the mobile application I am trying to send a cookie in the header e.g. Cookie: myappID=myapplication to the authentication webservice.

Have you converted web service (i assume SOAP) into OData service? Can you share some more info on your design.

Meanwhile, have a look at

Regards,

JK