WCF SecurityService Documentation
This article provides all the needed information to learn and understand the WCF SecurityService documentation.
This WCF web service handles all the security related operations. The following methods are available:
ConnectWithToken(string securityToken)
Syntax |
|
Description | Updates an existing security token with the current session ID |
Parameters |
|
Return Value | The
|
Login(string sessionId, Guid clientId, string userName, string password, bool isDomainUser, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Tries to perform a user login against WEBfactory 2010 server or ActiveDirectory. The login will be done in one single operation. If login fails, an exception will be thrown. |
Parameters |
|
Return Value | A security token which can be used in all subsequent secured operations or an error code if the operation fails. The following error codes can be returned in case of login failure:
|
Logout(string sessionId, Guid clientId, int millisecondsTimeOut)
Syntax |
|
Description | Logs out the currently logged in user |
Parameters |
|
Return Value | A true or false depending on the success of the logout operation |
LogoutByToken(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Logs out the currently logged in user using the security token |
Parameters |
|
Return Value | A true or false depending on the success of the logout operation |
IsUserLoggedIn(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Checks if the current user is still logged in |
Parameters |
|
Return Value | True if the current user (identified by the security token) is still logged in; otherwise, false. |
GetCurrentLoggedInUser(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets the username of the user that is logged in |
Parameters |
|
Return Value | The UserDTO object, containing:
|
GetCurrentUserAuthorizations(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets an object which contains all authorizations (both system and project authorizations) for the currently logged in user |
Parameters |
|
Return Value | The
|
GetUserSystemAuthorizations(string securityToken)
Syntax |
|
Description | Gets an object which contains all system authorizations for the currently logged in user |
Parameters |
|
Return Value | A list of SystemAuthorizationDTO objects, each containing:
|
CheckSystemAuthorizations(string securityToken, string[] systemAuthorizations, int millisecondsTimeOut)
Syntax |
|
Description | Checks if the current user has some specific system authorizations |
Parameters |
|
Return Value | A dictionary which has for each requested authorization a flag which indicates if the user has (or not) that authorization |
GetAllSystemAuthorization(string sessionId, string clientId, string userName, bool isDomainUser, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Gets all system authorizations for a specific user, based on the provided parameters |
Parameters |
|
Return Value | A list of SystemAuthorizationDTO objects, each containing:
|
GetAllSystemAuthorizationByToken(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets all system authorizations for a specific user, based on the provided token |
Parameters |
|
Return Value | A list of SystemAuthorizationDTO objects, each containing:
|
GetUserProjectAuthorizations(string securityToken)
Syntax |
|
Description | Gets an object which contains all project authorizations for the currently logged in user |
Parameters |
|
Return Value | A list of
|
CheckProjectAuthorizations(string securityToken, string[] projectAuthorizations, int millisecondsTimeOut)
Syntax |
|
Description | Checks if the current user has some specific project authorizations |
Parameters |
|
Return Value | A dictionary which has for each requested authorization a flag which indicates if the user has (or not) that authorization |
GetAllProjectAuthorization(string sessionId, string clientId, string userName, bool isDomainUser, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Gets all project authorizations based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllProjectAuthorizationByToken(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets all project authorizations based on the provided token |
Parameters |
|
Return Value | A list of
|
InsertProjectAuthorization(string sessionId, string clientId, string userName, bool isDomainUser, ProjectAuthorizationDTO model, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Adds a new project authorization using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
InsertProjectAuthorizationByToken(string securityToken, ProjectAuthorizationDTO model, int millisecondsTimeOut)
Syntax |
|
Description | Adds a new project authorization using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
UpdateProjectAuthorization(string sessionId, string clientId, string userName, bool isDomainUser, ProjectAuthorizationDTO model, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Updates an existing project authorization using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
UpdateProjectAuthorizationByToken(string securityToken, ProjectAuthorizationDTO model, int millisecondsTimeOut)
Syntax |
|
Description | Updates an existing project authorization using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
DeleteProjectAuthorization(string sessionId, string clientId, string userName, bool isDomainUser, Guid id, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Deletes an existing project authorization using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
DeleteProjectAuthorizationByToken(string securityToken, Guid id, int millisecondsTimeOut)
Syntax |
|
Description | Deletes an existing project authorization using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
GetAllAccessAuthorization(string sessionId, string clientId, string userName, bool isDomainUser, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Gets all access authorizations based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAccessAuthorizationByToken(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets all access authorizations based on the provided token |
Parameters |
|
Return Value | A list of
|
InsertAccessAuthorization(string sessionId, string clientId, string userName, bool isDomainUser, AccessAuthorizationDTO model, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Adds a new access authorization using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
InsertAccessAuthorizationByToken(string securityToken, AccessAuthorizationDTO model, int millisecondsTimeOut)
Syntax |
|
Description | Adds a new access authorization using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
UpdateAccessAuthorization(string sessionId, string clientId, string userName, bool isDomainUser, AccessAuthorizationDTO model, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Updates an existing access authorization using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
UpdateAccessAuthorizationByToken(string securityToken, AccessAuthorizationDTO model, int millisecondsTimeOut)
Syntax |
|
Description | Updates an existing access authorization using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
DeleteAccessAuthorization(string sessionId, string clientId, string userName, bool isDomainUser, Guid id, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Deletes an existing access authorization using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
DeleteAccessAuthorizationByToken(string securityToken, Guid id, int millisecondsTimeOut)
Syntax |
|
Description | Deletes an existing access authorization using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
GetAllAccessGroup(string sessionId, string clientId, string userName, bool isDomainUser, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Gets all access groups based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAccessGroupByToken(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets all access groups based on the provided token |
Parameters |
|
Return Value | A list of
|
GetAllAccessGroupDetails(string sessionId, string clientId, string userName, bool isDomainUser, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Gets all access groups details based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAccessGroupDetailsByToken(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets all access groups details based on the provided token |
Parameters |
|
Return Value | A list of
|
InsertAccessGroup(string sessionId, string clientId, string userName, bool isDomainUser, AccessGroupDTO model, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Adds a new access group using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
InsertAccessGroupByToken(string securityToken, AccessGroupDTO model, int millisecondsTimeOut)
Syntax |
|
Description | Adds a new access group using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
UpdateAccessGroup(string sessionId, string clientId, string userName, bool isDomainUser, AccessGroupDTO model, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Updates an existing access group using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
UpdateAccessGroupByToken(string securityToken, AccessGroupDTO model, int millisecondsTimeOut)
Syntax |
|
Description | Updates an existing access group using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
DeleteAccessGroup(string sessionId, string clientId, string userName, bool isDomainUser, Guid id, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Deletes an existing access group using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
DeleteAccessGroupByToken(string securityToken, Guid id, int millisecondsTimeOut)
Syntax |
|
Description | Deletes an existing access group using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
GetUserAuthorizationGroups(string securityToken)
Syntax |
|
Description | Gets the authorization groups for the currently logged in user, based on the provided security token |
Parameters |
|
Return Value | A list of
|
GetAllAuthorizationGroup(string sessionId, string clientId, string userName, bool isDomainUser, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Gets all authorization groups based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAuthorizationGroupByToken(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets all authorization groups based on the provided token |
Parameters |
|
Return Value | A list of
|
GetAllAuthorizationGroupDetails(string sessionId, string clientId, string userName, bool isDomainUser, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Gets all authorization groups details based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAuthorizationGroupDetailsByToken(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets all authorization groups details based on the provided token |
Parameters |
|
Return Value | A list of
|
InsertAuthorizationGroup(string sessionId, string clientId, string userName, bool isDomainUser, AuthorizationGroupDTO model, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Adds a new authorization group using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
InsertAuthorizationGroupByToken(string securityToken, AuthorizationGroupDTO model, int millisecondsTimeOut)
Syntax |
|
Description | Adds a new authorization group using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
UpdateAuthorizationGroup(string sessionId, string clientId, string userName, bool isDomainUser, AuthorizationGroupDTO model, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Updates an existing authorization group using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
UpdateAuthorizationGroupByToken(string securityToken, AuthorizationGroupDTO model, int millisecondsTimeOut)
Syntax |
|
Description | Updates an existing authorization group using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
DeleteAuthorizationGroup(string sessionId, string clientId, string userName, bool isDomainUser, Guid id, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Deletes an existing authorization group using the provided parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
DeleteAuthorizationGroupByToken(string securityToken, Guid id, int millisecondsTimeOut)
Syntax |
|
Description | Deletes an existing authorization group using the provided security token and parameters |
Parameters |
|
Return Value | Returns true if the operation succeeded or false if the operation failed |
GetAllSchedulerLocation(string sessionId, string clientId, string userName, bool isDomainUser, int millisecondsTimeOut)
This method follows the WEBfactory 2010 Security Protocol.
Syntax |
|
Description | Gets all scheduler locations based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllSchedulerLocationByToken(string securityToken, int millisecondsTimeOut)
Syntax |
|
Description | Gets all scheduler locations based on the provided token |
Parameters |
|
Return Value | A list of
|