Move ApiKeyAuthenticationHandler and associated files to Authentication folder

This commit is contained in:
Robert Marshall 2021-05-08 09:25:33 +01:00
parent 3f1ab3eb12
commit 3331775a0b
4 changed files with 4 additions and 4 deletions

View file

@ -0,0 +1,10 @@
using Microsoft.AspNetCore.Authentication;
using System;
namespace Robware.Api.Auth.Authentication {
public static class AuthenticationBuilderExtensions {
public static AuthenticationBuilder AddApiKeySupport(this AuthenticationBuilder authenticationBuilder, Action<ApiKeyAuthenticationOptions> options) {
return authenticationBuilder.AddScheme<ApiKeyAuthenticationOptions, ApiKeyAuthenticationHandler>(ApiKeyAuthenticationOptions.DefaultScheme, options);
}
}
}