cancel
Showing results for 
Search instead for 
Did you mean: 

EAR application Authentication method

Former Member
0 Kudos

Hi i made a simple web module, an ear application with a simple jsp. I'm deplying it on a SAP WAS 7.02 without EP, and  when I execute the application via URL is executed without asking user/password, I need to ask for user and password.

So I change the web.xml

<login-config>

     <auth-method>BASIC</auth-method>

     <realm-name>MyRealm</realm-name>

<login-config>

But still do not asking for user/password.

Any clues?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello...

Finally, I dont know why, but the change on the XML files didnt work.... but adding this code, the application works perfectly.

IUser user = UMFactory.getAuthenticator().getLoggedInUser(request, response);  if (null == user) {                 UMFactory.getAuthenticator().forceLoggedInUser(request, response);

}

Regards

Answers (0)