Hi there, does anybody know how to do a programmatic login? I searched and researched for a long while and didnt'd find a way to imitate a j_security_check. A "real" login is needed because i want to use the request.getPrincipal() method.
I am using a custom jaas login module with Jboss Portal. First I tried to call j_security_check in a backing bean via HttpURLConnection and an URL like: url = "http://localhost:8080/portal/j_security_check?jsessionid=0000" + sessionId() + ":-1&j_username=" + getLoginName() + "&j_password=" + getPassword()"; This called the loginModule but the principal isn't populated in the request. Then I tryed to authenticate via loginContext but i didn't find a way to set the principal into the request. Maybe I canuse the Servers realm but I didn't know enough about this stuff.. Thanks in advance Daniel View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951877#3951877 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951877 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
