This content has been marked as final.
Show 1 reply
-
1. Re: Custom Authentication
smolin Jun 1, 2006 7:52 AM (in response to dhill)that's the same I want to get working in my app as well.
any help really appreciated. I found how to login using JASS, but after that my web session is still unathenticated!!!!
see:
UsernamePasswordHandler handler = null;
handler = new UsernamePasswordHandler(getUserName(), getUserPassword());
try {
LoginContext lc = new LoginContext("webshop", handler);
lc.login();
System.out.println("user: " + FacesContext.getCurrentInstance().getExternalContext().getRemoteUser());
} catch (LoginException e) {
e.printStackTrace();
}