X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=security%2Fruntime%2Forg.argeo.security.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fsecurity%2Fjcr%2FOsJcrAuthenticationProvider.java;h=aa95e322d21ef8e8bfa6c05099e1f6d7b426a06b;hb=3a3d316af102ba410d1d9e6de349d0c8f7ac044f;hp=6c26d4627ec3ce291d03e7b3d1a5cb629f6f93cf;hpb=69f324f4c2e115192c08f9939d8ecb74e181a34b;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 6c26d4627..aa95e322d 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 @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007-2012 Mathieu Baudier + * Copyright (C) 2007-2012 Argeo GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -58,7 +58,8 @@ public class OsJcrAuthenticationProvider extends OsAuthenticationProvider { throws AuthenticationException { if (authentication instanceof UsernamePasswordAuthenticationToken) { // deal with remote access to internal server - // FIXME very primitive and unsecure at this stage + // FIXME very primitive and unsecure at this sSession adminSession + // =tage // consider using the keyring for username / password authentication // or certificate UsernamePasswordAuthenticationToken upat = (UsernamePasswordAuthenticationToken) authentication; @@ -90,8 +91,6 @@ public class OsJcrAuthenticationProvider extends OsAuthenticationProvider { throw new ArgeoException( "Unexpected exception when synchronizing OS and JCR security ", e); - } finally { - JcrUtils.logoutQuietly(nodeSession); } } else { throw new ArgeoException("Unsupported authentication "