on 06-29-2012 1:24 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.