/*
- * 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.
throws AuthenticationException {
if (authentication instanceof UsernamePasswordAuthenticationToken) {
// deal with remote access to internal server
- // FIXME very primitive and unsecure at this sSession adminSession =tage
+ // FIXME very primitive and unsecure at this sSession adminSession
+ // =tage
// consider using the keyring for username / password authentication
// or certificate
UsernamePasswordAuthenticationToken upat = (UsernamePasswordAuthenticationToken) authentication;
throw new ArgeoException(
"Unexpected exception when synchronizing OS and JCR security ",
e);
- } finally {
- JcrUtils.logoutQuietly(nodeSession);
}
} else {
throw new ArgeoException("Unsupported authentication "