jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tri...@apache.org
Subject svn commit: r1575125 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenLoginModule.java
Date Fri, 07 Mar 2014 02:25:51 GMT
Author: tripod
Date: Fri Mar  7 02:25:51 2014
New Revision: 1575125

URL: http://svn.apache.org/r1575125
Log:
@trivial token login module must refresh in case another login module just created the user

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenLoginModule.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenLoginModule.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenLoginModule.java?rev=1575125&r1=1575124&r2=1575125&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenLoginModule.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/security/authentication/token/TokenLoginModule.java
Fri Mar  7 02:25:51 2014
@@ -159,6 +159,7 @@ public final class TokenLoginModule exte
         if (tokenProvider != null && sharedState.containsKey(SHARED_KEY_CREDENTIALS))
{
             Credentials shared = getSharedCredentials();
             if (shared != null && tokenProvider.doCreateToken(shared)) {
+                getRoot().refresh(); // refresh root, in case the external login module created
users
                 TokenInfo ti = tokenProvider.createToken(shared);
                 if (ti != null) {
                     TokenCredentials tc = new TokenCredentials(ti.getToken());



Mime
View raw message