public static IAppBuilder UseApiKeyAuthentication(this IAppBuilder app, ApiKeyAuthenticationOptions options = null) { if (app == null) { throw new ArgumentNullException(nameof(app)); } if (options == null) { options = new ApiKeyAuthenticationOptions(); } app.Use <ApiKeyAuthenticationMiddleware>(app, options); app.UseStageMarker(PipelineStage.Authenticate); return(app); }
public ApiKeyValidateIdentityContext(IOwinContext context, ApiKeyAuthenticationOptions options, String apiKey, String host) { Options = options; ApiKey = apiKey; Host = host; }