on 09-02-2015 8:18 PM
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
Discussion successfully moved from SAP HANA Cloud Platform Developer Center to SMP Developer Center
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.