Move ApiKeyAuthenticationHandler and associated files to Authentication folder
This commit is contained in:
parent
3f1ab3eb12
commit
3331775a0b
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue