WCF Security Service Documentation
The WCF Security Service handles all the security related operations. This article describes all the available methods.
This WCF web service handles all the security related operations. The following methods are available:
ConnectWithToken
Syntax |
|
Description | Updates an existing security token with the current session ID |
Parameters |
|
Return Value | The
|
Login
This method follows the WEBfactory i4scada Security Protocol.
Syntax |
|
Description | Tries to perform a user login against 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
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
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
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
Syntax |
|
Description | Gets the username of the user that is logged in |
Parameters |
|
Return Value | The UserDTO object, containing:
|
GetCurrentUserAuthorizations
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
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
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
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
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
Syntax |
|
Description | Gets an object which contains all project authorizations for the currently logged in user |
Parameters |
|
Return Value | A list of
|
CheckProjectAuthorizations
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 |
GetAllProjectAuthorizationByToken
Syntax |
|
Description | Gets all project authorizations based on the provided token |
Parameters |
|
Return Value | A list of
|
InsertProjectAuthorization
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada Security Protocol.
Syntax |
|
Description | Gets all access authorizations based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAccessAuthorizationByToken
Syntax |
|
Description | Gets all access authorizations based on the provided token |
Parameters |
|
Return Value | A list of
|
InsertAccessAuthorization
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada Security Protocol.
Syntax |
|
Description | Gets all access groups based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAccessGroupByToken
Syntax |
|
Description | Gets all access groups based on the provided token |
Parameters |
|
Return Value | A list of
|
GetAllAccessGroupDetails
This method follows the WEBfactory i4scada Security Protocol.
Syntax |
|
Description | Gets all access groups details based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAccessGroupDetailsByToken
Syntax |
|
Description | Gets all access groups details based on the provided token |
Parameters |
|
Return Value | A list of
|
InsertAccessGroup
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada 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
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
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
This method follows the WEBfactory i4scada Security Protocol.
Syntax |
|
Description | Gets all authorization groups based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAuthorizationGroupByToken
Syntax |
|
Description | Gets all authorization groups based on the provided token |
Parameters |
|
Return Value | A list of
|
GetAllAuthorizationGroupDetails
This method follows the WEBfactory i4scada Security Protocol.
Syntax |
|
Description | Gets all authorization groups details based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllAuthorizationGroupDetailsByToken
Syntax |
|
Description | Gets all authorization groups details based on the provided token |
Parameters |
|
Return Value | A list of
|
InsertAuthorizationGroup
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada 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
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
This method follows the WEBfactory i4scada Security Protocol.
Syntax |
|
Description | Gets all scheduler locations based on the provided parameters |
Parameters |
|
Return Value | A list of
|
GetAllSchedulerLocationByToken
Syntax |
|
Description | Gets all scheduler locations based on the provided token |
Parameters |
|
Return Value | A list of
|