mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Fixes to store the authentication token in the client information object so it's picked up for the virtual circuit.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5040 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1167,7 +1167,9 @@ public class EnterpriseCifsAuthenticator extends CifsAuthenticator implements Ca
|
|||||||
|
|
||||||
// Setup the Acegi authenticated user
|
// Setup the Acegi authenticated user
|
||||||
|
|
||||||
m_authComponent.setCurrentUser( mapUserNameToPerson(krbDetails.getUserName()));
|
// Set the current user to be authenticated, save the authentication token
|
||||||
|
|
||||||
|
client.setAuthenticationToken( m_authComponent.setCurrentUser( mapUserNameToPerson(krbDetails.getUserName())));
|
||||||
|
|
||||||
// Store the full user name in the client information, indicate that this is not a guest logon
|
// Store the full user name in the client information, indicate that this is not a guest logon
|
||||||
|
|
||||||
@@ -1297,7 +1299,7 @@ public class EnterpriseCifsAuthenticator extends CifsAuthenticator implements Ca
|
|||||||
|
|
||||||
// Setup the Acegi authenticated user
|
// Setup the Acegi authenticated user
|
||||||
|
|
||||||
m_authComponent.setCurrentUser( mapUserNameToPerson(userName));
|
client.setAuthenticationToken( m_authComponent.setCurrentUser( mapUserNameToPerson(userName)));
|
||||||
|
|
||||||
// Store the full user name in the client information, indicate that this is not a guest logon
|
// Store the full user name in the client information, indicate that this is not a guest logon
|
||||||
|
|
||||||
@@ -1433,7 +1435,7 @@ public class EnterpriseCifsAuthenticator extends CifsAuthenticator implements Ca
|
|||||||
|
|
||||||
// Setup the Acegi authenticated user
|
// Setup the Acegi authenticated user
|
||||||
|
|
||||||
m_authComponent.setCurrentUser( mapUserNameToPerson( client.getUserName()));
|
client.setAuthenticationToken( m_authComponent.setCurrentUser( mapUserNameToPerson( client.getUserName())));
|
||||||
|
|
||||||
// Store the full user name in the client information, indicate that this is not a guest logon
|
// Store the full user name in the client information, indicate that this is not a guest logon
|
||||||
|
|
||||||
@@ -1548,7 +1550,7 @@ public class EnterpriseCifsAuthenticator extends CifsAuthenticator implements Ca
|
|||||||
|
|
||||||
// Setup the Acegi authenticated user
|
// Setup the Acegi authenticated user
|
||||||
|
|
||||||
m_authComponent.setCurrentUser( mapUserNameToPerson( userName));
|
client.setAuthenticationToken( m_authComponent.setCurrentUser( mapUserNameToPerson( userName)));
|
||||||
|
|
||||||
// Store the full user name in the client information, indicate that this is not a guest logon
|
// Store the full user name in the client information, indicate that this is not a guest logon
|
||||||
|
|
||||||
@@ -1675,7 +1677,7 @@ public class EnterpriseCifsAuthenticator extends CifsAuthenticator implements Ca
|
|||||||
|
|
||||||
// Setup the Acegi authenticated user
|
// Setup the Acegi authenticated user
|
||||||
|
|
||||||
m_authComponent.setCurrentUser( mapUserNameToPerson( client.getUserName()));
|
client.setAuthenticationToken( m_authComponent.setCurrentUser( mapUserNameToPerson( client.getUserName())));
|
||||||
|
|
||||||
// Store the full user name in the client information, indicate that this is not a guest logon
|
// Store the full user name in the client information, indicate that this is not a guest logon
|
||||||
|
|
||||||
@@ -1842,7 +1844,7 @@ public class EnterpriseCifsAuthenticator extends CifsAuthenticator implements Ca
|
|||||||
|
|
||||||
// Setup the Acegi authenticated user
|
// Setup the Acegi authenticated user
|
||||||
|
|
||||||
m_authComponent.setCurrentUser( mapUserNameToPerson( userName));
|
client.setAuthenticationToken( m_authComponent.setCurrentUser( mapUserNameToPerson( userName)));
|
||||||
|
|
||||||
// Store the full user name in the client information, indicate that this is not a guest logon
|
// Store the full user name in the client information, indicate that this is not a guest logon
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user