cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to log in to Neptune app through HANA SMP

Former Member
0 Kudos

We have a Neptune application which we are trying to run on the SAP Mobile Platform on HCP. The authentication for it was working as of last week. But starting this week, we are getting two separate errors: one on Android and Windows and a completely different one on iOS.

     iOS error

     Android error

     Windows error

Pinging our server through HANA shows us that that connection is working.

Any ideas on what the issue is here would be greatly helpful.

Thank you

Accepted Solutions (0)

Answers (3)

Answers (3)

Vlado
Advisor
Advisor
0 Kudos

Discussion successfully moved from SAP HANA Cloud Platform Developer Center to SMP Developer Center

Former Member
0 Kudos

The problem was that you need to use basic authentication. I guess it is working now Abhay 🙂


Otherwise HCPms removes that from the request header and you can't log in.

You can of course use other authentication methods as well depending on your backend setup.

I'll soon write up a blog with the steps needed.

BR

Njål

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

SAP Mobile Platform on HCP

Are you talking about SAP HANA Cloud Platform Mobile services (HCPms) , if yes, please call it by its name to avoid any confusion,.

What kind of security config you have selected for this? Do you see already registered connections on HCPms cockpit for these particular devices if any? 

Did you find any information in server logs? Is it possible for you to troubleshoot this issue maybe testing through rest client?

Regards,

JK

Former Member
0 Kudos

Hey Jitendra,

Yes, I meant HCPms.

We are not using any security configuration for this connection.

Every time we attempt to log in we get registered (according to the logs on HCPms anyway).

I have tried going through the error logs, but can't completely understand the implications:

The selected one had the following text:

#2.0#2015-09-02 20:46:55.386#+0:00#DEBUG#Security###Other#1441226815382008#2d5b4e20-68af-4136-93ad-44bd757df4ee##sun.reflect.GeneratedMethodAccessor123:invoke#P1941237320#######443###Authenticated user GenericPrincipal[P1941237320()] is granted the role Administrator# #2.0#2015-09-02 20:46:55.386#+0:00#DEBUG####Other#1441226815382009#2d5b4e20-68af-4136-93ad-44bd757df4ee##sun.reflect.GeneratedMethodAccessor127:invoke#P1941237320#######443###current sesion id is 77BCDFE90E2F7FDE7B39D458FB9D216F91A7EC2FF72A72FD841BD7DC5C5793EA# #2.0#2015-09-02 20:46:55.386#+0:00#DEBUG####Other#1441226815382010#2d5b4e20-68af-4136-93ad-44bd757df4ee##sun.reflect.GeneratedMethodAccessor127:invoke#P1941237320#######443###Request with method [GET] and URI [/Admin/Sessions/jaxrs/permissions] will be permitted.# #2.0#2015-09-02 20:46:55.383#+0:00#DEBUG#Security###Other#1441226815382001#2d5b4e20-68af-4136-93ad-44bd757df4ee##sun.reflect.GeneratedMethodAccessor127:invoke#P1941237320#######443###Authenticating request# #2.0#2015-09-02 20:46:55.383#+0:00#DEBUG#Security###Other#1441226815382002#2d5b4e20-68af-4136-93ad-44bd757df4ee##sun.reflect.GeneratedMethodAccessor121:invoke#P1941237320#######443###Security configuration attribute set to ADMIN# #2.0#2015-09-02 20:46:55.383#+0:00#DEBUG#Security###Other#1441226815382003#2d5b4e20-68af-4136-93ad-44bd757df4ee##sun.reflect.GeneratedMethodAccessor121:invoke#P1941237320#######443###Found existing session with id: '77BCDFE90E2F7FDE7B39D458FB9D216F91A7EC2FF72A72FD841BD7DC5C5793EA'#


So far I have tried debugging this through Chrome and developer tools.

midhun_vp
Active Contributor
0 Kudos

Hi Abhay,

I am not sure how Neptune works (probably it would be using the REST APIs). You could try registering the app with REST client by following this blog: http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/07/01/smp3-rest-api-applic...

This issue could be with Neptune itself hence I would suggest you to raise this question in Neptune support portal as well.

Regards, Midhun

SAP Technology RIG

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

We are not using any security configuration for this connection.

Are you talking about 'None' sec config?

Are those username/pswd for backend connections? did you also try reinstall the app?

Former Member
0 Kudos

Yes, I am talking about the NONE configuration. We aren't using the username/password fields on the back end so don't know for sure.

We did try to reinstall the app, both on the client side as well as on the HCPms side. Nothing has worked so far.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Were you able to make any progress on this issue?

Former Member
0 Kudos

It is fixed... was a problem of Cloud update... SAP changed behavior of auth over night.....

Former Member
0 Kudos

Yes, Jitendra. Njal and the team at Neptune helped us sort this issue out.

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

Good to hear your issue has resolved. Please close this thread.