cancel
Showing results for 
Search instead for 
Did you mean: 

Authentication failed for user null - Logon Plugin

Former Member
0 Kudos

Hey,

I've created a Kapsel App out of my Fiori App.

When I register on SMP Server with the Logon Plugin everythin is fine and the App gets started.

But when I execute the App a second time, the SMP Server doesnt make the request with the right credentials. I always get the error message: Authentication failed for user null, in my SMP Server Logs.

Configuration:

- SMP 3.0 SP11

- HTTP/HTTPS Authentication

- Basic SSO Mechanism

Does anyone has experience to fix this problem?

Thank you very much for your help.

Best regards,

David

Accepted Solutions (0)

Answers (1)

Answers (1)

nageshcaparthy
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi David,

I had a similar issue, but not sure if the same applies for you.

Quick check, un-register the app, add the following parameters to your HTTP/HTTPs Auth as below:

Do a new registrations and see if this works.

Regards,

Nagesh

Former Member
0 Kudos

I think you have forgot to add a screenshot?

nageshcaparthy
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sorry, Here it is.

Former Member
0 Kudos

I added the values, but now I'm not able to register anymore at the Server. Always getting the error to check my connection data.

Can you help me?

nageshcaparthy
Product and Topic Expert
Product and Topic Expert
0 Kudos

Is this SP11 or HCPms? may need some more details, like are trying with any proxy or directly connected to SMP Server? try to fetch the client log if possible and see if that helps.

Regards.

Nagesh

Former Member
0 Kudos

It is SP11 and the SMP server is running on my local machine.

I already looked into client log, there I get the following error (when running with your parameters):

startRegistration Utils.js:5

registration failed Utils.js:5

{"errorCode":"0","errorMessage":"","errorDomain":"MAFLogonCoreErrorDomain"} Utils.js:5

"LogonController.getRegistrationErrorText: {\"errorCode\":\"0\",\"errorMessage\":\"\",\"errorDomain\":\"MAFLogonCoreErrorDomain\"}"


Regards

David


nageshcaparthy
Product and Topic Expert
Product and Topic Expert
0 Kudos

Looping in

rakshit_doshi
Active Contributor
0 Kudos

Hi,

Can you quickly answer the below questions

  1. What is your backend system?
  2. Can you share the http/https authentication settings screenshot from management cockpit
  3. Also can you share the application settings screenshot for the destination tab that you have added when you created the appplication on management cockpit.

Thanks,

Rakshit Doshi

Former Member
0 Kudos

1. Backend system is a SAP Gateway Hub

2. http/https Screenshot:

3. Backend Screenshot:

Thanks for your help,

Regards,

David

rakshit_doshi
Active Contributor
0 Kudos

Hi David,

Thanks for the screenshots. It helps.

I believe you have added a destination on the OdataServices Tab. Can you show me a screenshot of that as well.

What i believe is you added a destination and then added the service in the services tab from that destination by searching it.

Also the destination url that you are using is of SAP Management Cockpit exposed url which you can see when you click on Open Service Document hyperlink on the services tab or is it the backend url of SAP Gateway Hub.

Thanks,

Rakshit Doshi

Former Member
0 Kudos

Hey Rakshit,

I didn't add any destination in the ODataServices Tab. Do I have to?

Thanks for your help,

David

nageshcaparthy
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi David,

Can you change the Control Flag from Optional to Required in the HTTP/HTTPs and give it a try once.

Regards,

Nagesh

rakshit_doshi
Active Contributor
0 Kudos

Nopes its not necessary, Its required if your destination url is based on SAP Gateway Cockpit.

Can you try the below settings,

In the http/https authentication screen,

from the screenshots that you provided,

try giving the url as

http://sapserverip:sapserverport/sap/iwbep?sap-client=client no

Add the client no only if the same sap ip has multiple clients

Check this url first in the browser and see if it prompts you for username and password.

Clear out the client http values to send and send client http values as fields and in the

SSO Cookie Name add value MYSAPSSO2.

And in the Application endpoint settings,

Add the SSO Mechanish SSO2 and Basic and move the SSO2 above Basic.

Try with these settings and check if it works. Try a fresh run, delete the app from device and management cockpit and check if this works fine.

Thanks,

Rakshit Doshi

Former Member
0 Kudos

Tested but didn't worked...

When I look into my logs, the server always make a request with user null when I start the app a second time...

Former Member
0 Kudos

Tried, but it also doesnt worked...

Regards,

David

rakshit_doshi
Active Contributor
0 Kudos

Hi,

Can you share your login code.

Thanks,

Rakshit Doshi

Former Member
0 Kudos

I've created the App out of the SAP Web IDE with the functionality "Enable as Hybrid Mobile App". The source code gets created automatically and I have nothing changed in it.

Thanks for your help,

Regards,


David