Class ValidateCredentialTokenHandler
This function takes a client ID (cId) and credential token (token) from the query string and validates the token, first by ensuring it is encrypted properly and then by using the decrypted token to connect to the indicated site. A valid client configuration is required.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:AzureFunctionsForSharePoint.Functions
Assembly:AzureFunctionsForSharePoint.Functions.dll
Syntax
public class ValidateCredentialTokenHandler : FunctionBase
Remarks
This class inherits FunctionBase for its simple logging notification event.
Constructors
| Improve this Doc View SourceValidateCredentialTokenHandler(HttpRequestMessage)
Initializes the handler for a given HttpRequestMessage received from the function trigger
Declaration
public ValidateCredentialTokenHandler(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpRequestMessage | request | The current request |
Methods
| Improve this Doc View SourceExecute(ValidateCredentialTokenFunctionArgs)
Validates the current request
Declaration
public HttpResponseMessage Execute(ValidateCredentialTokenFunctionArgs args)
Parameters
Type | Name | Description |
---|---|---|
ValidateCredentialTokenFunctionArgs | args | An ValidateCredentialTokenFunctionArgs instance specifying the location of the client configuration in Azure storage. |
Returns
Type | Description |
---|---|
System.Net.Http.HttpResponseMessage | OK with json '{"valid": true || false}' |