Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    FunctionBase
    ValidateCredentialTokenHandler
    Inherited Members
    FunctionBase.FunctionNotify
    FunctionBase.Log(String)
    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 Source

    ValidateCredentialTokenHandler(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 Source

    Execute(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}'

    • Improve this Doc
    • View Source
    Back to top Copyright © 2016 InstantQuick
    View project on Github