X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=security%2Fruntime%2Forg.argeo.security.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fjcr%2FOsJcrAuthenticationProvider.java;fp=security%2Fruntime%2Forg.argeo.security.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fjcr%2FOsJcrAuthenticationProvider.java;h=d304dc36571d8e41da2dec883179be220bcdd57b;hb=2c4852dcd20d4cde88776c527ae935f242ae1e77;hp=917733dbcb5a059c5389445908fc4ee27e3885da;hpb=2db44820173b572bdc486ea243caefda400d2fdd;p=lgpl%2Fargeo-commons.git diff --git a/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/OsJcrAuthenticationProvider.java b/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/OsJcrAuthenticationProvider.java index 917733dbc..d304dc365 100644 --- a/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/OsJcrAuthenticationProvider.java +++ b/security/runtime/org.argeo.security.core/src/main/java/org/argeo/security/jcr/OsJcrAuthenticationProvider.java @@ -22,6 +22,7 @@ import javax.jcr.Session; import org.argeo.ArgeoException; import org.argeo.jcr.JcrUtils; +import org.argeo.jcr.security.SecurityJcrUtils; import org.argeo.security.OsAuthenticationToken; import org.argeo.security.core.OsAuthenticationProvider; import org.springframework.security.Authentication; @@ -76,13 +77,13 @@ public class OsJcrAuthenticationProvider extends OsAuthenticationProvider { // WARNING: at this stage we assume that the java properties // will have the same value String username = System.getProperty("user.name"); - Node userProfile = JcrUtils.createUserProfileIfNeeded( + Node userProfile = SecurityJcrUtils.createUserProfileIfNeeded( securitySession, username); JcrUserDetails.checkAccountStatus(userProfile); // each user should have a writable area in the default // workspace of the node - JcrUtils.createUserHomeIfNeeded(nodeSession, username); + SecurityJcrUtils.createUserHomeIfNeeded(nodeSession, username); userDetails = new JcrUserDetails(userProfile, authen .getCredentials().toString(), getBaseAuthorities()); authen.setDetails(userDetails);