/// <summary>
        /// Sets API Key authentication. Use this overload for most operations, unless specifically testing Authentication or Authorization.
        /// </summary>
        public static RootOptions UseApiKey(this RootOptions options, string algorithmName, Guid subject, out string token)
        {
            string     subjectStr = subject.ToString("D");
            Claim      audClaim   = new Claim(AuthConstants.ClaimAudienceStr, AuthConstants.ApiKeyJwtAudience);
            Claim      issClaim   = new Claim(AuthConstants.ClaimIssuerStr, AuthConstants.ApiKeyJwtInternalIssuer);
            Claim      subClaim   = new Claim(AuthConstants.ClaimSubjectStr, subjectStr);
            JwtPayload newPayload = new JwtPayload(new Claim[] { audClaim, issClaim, subClaim });

            return(options.UseApiKey(algorithmName, subjectStr, newPayload, out token));
        }
 public static RootOptions UseApiKey(this RootOptions options, string algorithmName, string subject, JwtPayload customPayload, out string token)
 {
     return(options.UseApiKey(algorithmName, subject, customPayload, out token, out SecurityKey _));
 }