From 95fb40de978f2e45f7053233a52fbe2a457b6a04 Mon Sep 17 00:00:00 2001 From: nheron Date: Thu, 3 Jan 2013 16:59:31 +0100 Subject: [PATCH 1/5] SEAMSECURITY-98 --- .../jboss/seam/security/jaas/JaasAuthenticator.java | 2 ++ pom.xml | 11 ++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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/ + + From c6d8b3d1c9e1225356743743b8f3aafdf80a094c Mon Sep 17 00:00:00 2001 From: nheron Date: Fri, 4 Jan 2013 09:56:54 +0100 Subject: [PATCH 2/5] Add Distribution repo --- pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pom.xml b/pom.xml index 403f7d8..9b8746c 100644 --- a/pom.xml +++ b/pom.xml @@ -96,4 +96,16 @@ http://repository.jboss.org/nexus/content/groups/public/ + + + chtijbug-release + chtijbug repo release + http://openesb-dev.org:8081/nexus/content/repositories/chtijbug-release/ + + + chtijbug-snapshot + chtijbug repo release + http://nexus.openesb-dev.org:8081/nexus/content/repositories/chtijbug-snapshot/ + + From 6f80c5884b8c2636d4d5a52e62a79d7a5f833e56 Mon Sep 17 00:00:00 2001 From: nheron Date: Fri, 4 Jan 2013 10:22:30 +0100 Subject: [PATCH 3/5] create chtijbug version --- api/pom.xml | 2 +- external/pom.xml | 6 +++--- impl/pom.xml | 2 +- pom.xml | 2 +- testsuite/pom.xml | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/api/pom.xml b/api/pom.xml index 2e9d196..d68629f 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -4,7 +4,7 @@ org.jboss.seam.security seam-security-parent - 3.2.0-SNAPSHOT + 3.2.0.chtijbug-SNAPSHOT ../pom.xml diff --git a/external/pom.xml b/external/pom.xml index 807995d..1fd53ef 100644 --- a/external/pom.xml +++ b/external/pom.xml @@ -4,7 +4,7 @@ org.jboss.seam.security seam-security-parent - 3.2.0-SNAPSHOT + 3.2.0.chtijbug-SNAPSHOT ../pom.xml @@ -195,14 +195,14 @@ org.jboss.seam.social seam-social - ${project.version} + 3.2.0-SNAPSHOT provided org.jboss.seam.social seam-social-api - ${project.version} + 3.2.0-SNAPSHOT provided diff --git a/impl/pom.xml b/impl/pom.xml index bc0e2d2..472bc3d 100644 --- a/impl/pom.xml +++ b/impl/pom.xml @@ -4,7 +4,7 @@ org.jboss.seam.security seam-security-parent - 3.2.0-SNAPSHOT + 3.2.0.chtijbug-SNAPSHOT ../pom.xml diff --git a/pom.xml b/pom.xml index 9b8746c..5bde553 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.jboss.seam.security seam-security-parent pom - 3.2.0-SNAPSHOT + 3.2.0.chtijbug-SNAPSHOT Seam Security Parent http://www.seamframework.org/Seam3/SecurityModule diff --git a/testsuite/pom.xml b/testsuite/pom.xml index e3e3c6a..82eab2b 100644 --- a/testsuite/pom.xml +++ b/testsuite/pom.xml @@ -4,7 +4,7 @@ org.jboss.seam.security seam-security-parent - 3.2.0-SNAPSHOT + 3.2.0.chtijbug-SNAPSHOT ../pom.xml From c7693c62a706b71579a74154c3012ad02673ccca Mon Sep 17 00:00:00 2001 From: nheron Date: Fri, 4 Jan 2013 16:08:41 +0100 Subject: [PATCH 4/5] https://issues.jboss.org/browse/SEAMSECURITY-98 --- api/pom.xml | 2 +- external/pom.xml | 2 +- impl/pom.xml | 2 +- pom.xml | 14 +------------- testsuite/pom.xml | 2 +- 5 files changed, 5 insertions(+), 17 deletions(-) diff --git a/api/pom.xml b/api/pom.xml index d68629f..2e9d196 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -4,7 +4,7 @@ org.jboss.seam.security seam-security-parent - 3.2.0.chtijbug-SNAPSHOT + 3.2.0-SNAPSHOT ../pom.xml diff --git a/external/pom.xml b/external/pom.xml index 1fd53ef..70c89e9 100644 --- a/external/pom.xml +++ b/external/pom.xml @@ -4,7 +4,7 @@ org.jboss.seam.security seam-security-parent - 3.2.0.chtijbug-SNAPSHOT + 3.2.0-SNAPSHOT ../pom.xml diff --git a/impl/pom.xml b/impl/pom.xml index 472bc3d..bc0e2d2 100644 --- a/impl/pom.xml +++ b/impl/pom.xml @@ -4,7 +4,7 @@ org.jboss.seam.security seam-security-parent - 3.2.0.chtijbug-SNAPSHOT + 3.2.0-SNAPSHOT ../pom.xml diff --git a/pom.xml b/pom.xml index 5bde553..403f7d8 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ org.jboss.seam.security seam-security-parent pom - 3.2.0.chtijbug-SNAPSHOT + 3.2.0-SNAPSHOT Seam Security Parent http://www.seamframework.org/Seam3/SecurityModule @@ -96,16 +96,4 @@ http://repository.jboss.org/nexus/content/groups/public/ - - - chtijbug-release - chtijbug repo release - http://openesb-dev.org:8081/nexus/content/repositories/chtijbug-release/ - - - chtijbug-snapshot - chtijbug repo release - http://nexus.openesb-dev.org:8081/nexus/content/repositories/chtijbug-snapshot/ - - diff --git a/testsuite/pom.xml b/testsuite/pom.xml index 82eab2b..e3e3c6a 100644 --- a/testsuite/pom.xml +++ b/testsuite/pom.xml @@ -4,7 +4,7 @@ org.jboss.seam.security seam-security-parent - 3.2.0.chtijbug-SNAPSHOT + 3.2.0-SNAPSHOT ../pom.xml From 1ba38a49fb341b11640155970de7ab14db3aa94a Mon Sep 17 00:00:00 2001 From: nheron Date: Fri, 4 Jan 2013 19:26:36 +0100 Subject: [PATCH 5/5] https://issues.jboss.org/browse/SEAMSECURITY-98 --- external/pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/external/pom.xml b/external/pom.xml index 70c89e9..807995d 100644 --- a/external/pom.xml +++ b/external/pom.xml @@ -195,14 +195,14 @@ org.jboss.seam.social seam-social - 3.2.0-SNAPSHOT + ${project.version} provided org.jboss.seam.social seam-social-api - 3.2.0-SNAPSHOT + ${project.version} provided