Skip to content

Commit

Permalink
Merge pull request #46 from nheron/seam-security98
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Jan 7, 2013
2 parents ed1b1c2 + 73900fc commit 7aa7961
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 7aa7961

Please sign in to comment.