MonoCloud Authentication SDK
    Preparing search index...

    Options for customizing how access tokens and client certificates are extracted from incoming requests.

    interface ProtectApiRequestOptions<T> {
        certificateResolver?: ClientCertificateResolver<T>;
        tokenResolver?: TokenResolver<T>;
    }

    Type Parameters

    • T

      Type of the request

    Index
    certificateResolver?: ClientCertificateResolver<T>

    Custom callback to resolve the PEM-encoded client certificate from the request.

    tokenResolver?: TokenResolver<T>

    Custom callback to extract the access token from the request. When provided, overrides the default Authorization: Bearer header extraction.