Click or drag to resize
RESTSecurityInvoker Class
Security handler over the REST requests
Inheritance Hierarchy
SystemObject
  SystemAttribute
    CMS.WebServicesRESTSecurityInvoker

Namespace: CMS.WebServices
Assembly: CMS.WebServices (in CMS.WebServices.dll) Version: 11.0.0
Syntax
C#
public class RESTSecurityInvoker : Attribute, 
	IOperationBehavior, IOperationInvoker

The RESTSecurityInvoker type exposes the following members.

Constructors
  NameDescription
Public methodRESTSecurityInvoker
Top
Fields
  NameDescription
Public fieldStatic memberBASIC_AUTHENTICATION_TYPE
Basic authentication
Public fieldStatic memberHASH_AUTHENTICATED_USERNAME
Constant to identify the hash authentication requirement
Top
Properties
  NameDescription
Public propertyDocumentAccessReadOnly
Indicates whether the access to the documents is read-only. If true, only GET requests are allowed.
Public propertyIsSynchronous
Always true - we need synchronous behavior for authentication.
Public propertyIsTranslation
Indicates whether the query is translation query.
Public propertyObjectAccessReadOnly
Indicates whether the access to the objects is read-only. If true, only GET requests are allowed.
Public propertyRESTServiceEnabled
Indicates whether the REST service is enabled (in settings).
Public propertyServiceTypeEnabled
Gets the type of the service which is enabled (0 = Everything, 1 = Only objects, 2 = Only documents).
Top
Methods
  NameDescription
Public methodAddBindingParameters
Not needed, remains empty, does nothing.
Public methodAllocateInputs
Calls AllocateInputs on the invoker.
Public methodApplyClientBehavior
Not needed, remains empty, does nothing.
Public methodApplyDispatchBehavior
Initializes the invoker.
Public methodAuthenticateUser
Authenticates the user according to authentication type setting.
Public methodStatic memberAuthenticateUserBasic
Authenticates the user using basic authentication.
Public methodStatic memberCheckHash
Checks hash parameter. Returns true if the parameter matches the requested URL. For request different from GET returns always false.
Public methodStatic memberGetUserName
Returns username of authenticated user.
Public methodStatic memberHandleRESTAuthentication
Handles necessary actions to provide proper REST authentication response
Public methodInvoke
Invokes the operation only when authentication went well.
Public methodInvokeBegin
Not implemented method.
Public methodInvokeEnd
Not implemented method.
Public methodStatic memberIsHashAuthenticated
Returns true if the request is GET and the hash parameter is present and matches the requested URL.
Public methodValidate
Not needed, remains empty, does nothing.
Top
See Also