Skip to content

Commit

Permalink
https://issues.jboss.org/browse/SEAMSECURITY-98
Browse files Browse the repository at this point in the history
  • Loading branch information
nheron committed Jan 7, 2013
1 parent ed1b1c2 commit 73900fc
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -21,7 +21,7 @@
import org.jboss.seam.security.Credentials;
import org.jboss.seam.security.Identity;
import org.picketlink.idm.impl.api.PasswordCredential;

import org.picketlink.idm.impl.api.model.SimpleUser;
/**
* An authenticator for authenticating with JAAS. The jaasConfigName property
* _must_ be configured to point to a valid JAAS configuration name, typically
Expand Down Expand Up @@ -58,6 +58,7 @@ public void authenticate() {
try {
getLoginContext().login();
setStatus(AuthenticationStatus.SUCCESS);
setUser(new SimpleUser(credentials.getUsername())); //SEAMSECURITY-98
} catch (LoginException e) {
setStatus(AuthenticationStatus.FAILURE);
log.error("JAAS authentication failed", e);
Expand Down

0 comments on commit 73900fc

Please sign in to comment.