diff --git a/impl/src/main/java/org/jboss/seam/security/jaas/JaasAuthenticator.java b/impl/src/main/java/org/jboss/seam/security/jaas/JaasAuthenticator.java
index 84c87c0..f0a53de 100644
--- a/impl/src/main/java/org/jboss/seam/security/jaas/JaasAuthenticator.java
+++ b/impl/src/main/java/org/jboss/seam/security/jaas/JaasAuthenticator.java
@@ -21,6 +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
@@ -58,6 +59,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);
diff --git a/pom.xml b/pom.xml
index b363e0a..403f7d8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,5 +86,14 @@
scm:git:git@github.com:seam/security.git
http://github.com/seam/security
-
+
+
+ java.net
+ https://maven.java.net/content/repositories/public/
+
+
+ JBoss repository
+ http://repository.jboss.org/nexus/content/groups/public/
+
+