Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Autentication error in Web Service after Login Module

Former Member
0 Kudos

Hi Experts,

I am getting a failed autentication when i try to access a web service. This is my scenario:

I have developed my own login module using JAAS. When i call a web service, the login module is executed, then it validate the credencials and make the authetication true. After that the web service is called. The web Service is mark as user/password authetication. But i always get this error:

Authentication for web service UtilityService, configuration UtilityService using security policy BASIC___ws failed: Login failed.. (See SAP Note 880896 for further info).

Just for you know, the credentials taht i use in login modulo isn't the user of UME. I use user store in another user store. I fthe credential is correct pass to the Principal an user of UME. To login stack is right when pass to login module:

LOGIN.OK
User: tecbmmab
IP Address: 192.168.14.48
Authentication Stack: tridmen.com.br/pegasus~ear*pegasus

Login Module                                                               Flag        Initialize  Login      Commit     Abort      Details
1. com.sap.engine.services.security.server.jaas.BasicPasswordLoginModule   SUFFICIENT  ok          false      false                 
2. br.com.tridmen.login.ERPCEHeaderLoginModule                             REQUISITE   ok          true       true                  
        #1 Client = 800
        #2 Destination_reference = CUSTOM_DEST
        #3 SysId = DE1
        #4 SysNum = 00
        #5 TargetHost = tecs220
        #6 TrATicket = TRATICKETCTRL
Central Checks                                                                                true

After this, the error mention above, of web service happen.

As my knowledge, when i call the web service i already have the session autenticate with login module. But this is not happen.

Could someone help with this question?

Best regards

Marcos Brandã

1 REPLY 1

martin_voros
Active Contributor
0 Kudos

Hi,

in what order did you specify your login modules? In that error message it looks like it's in wrong order. Your custom module should be first with SUFFICIENT and then standard user name/password with REQUISITE.

Cheers