This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to Visual Studio 2019 format
Now only targets netstandard2.0
- Loading branch information
1 parent
a02deef
commit a79f71c
Showing
397 changed files
with
34,907 additions
and
47,054 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
AutomaticSharp.Auth/AutomaticAuthenticationBuilderExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using Microsoft.AspNetCore.Authentication; | ||
using Microsoft.Extensions.DependencyInjection; | ||
|
||
namespace AutomaticSharp.Auth | ||
{ | ||
public static class AutomaticAuthenticationBuilderExtensions | ||
{ | ||
public static AuthenticationBuilder AddAutomaticAuthentication(this AuthenticationBuilder builder) | ||
=> builder.AddAutomaticAuthentication(AutomaticDefaults.AuthenticationScheme, _ => { }); | ||
|
||
public static AuthenticationBuilder AddAutomaticAuthentication(this AuthenticationBuilder builder, Action<AutomaticOptions> configureOptions) | ||
=> builder.AddAutomaticAuthentication(AutomaticDefaults.AuthenticationScheme, configureOptions); | ||
|
||
public static AuthenticationBuilder AddAutomaticAuthentication(this AuthenticationBuilder builder, string authenticationScheme, Action<AutomaticOptions> configureOptions) | ||
=> builder.AddAutomaticAuthentication(authenticationScheme, AutomaticDefaults.DisplayName, configureOptions); | ||
|
||
public static AuthenticationBuilder AddAutomaticAuthentication(this AuthenticationBuilder builder, string authenticationScheme, string displayName, Action<AutomaticOptions> configureOptions) | ||
=> builder.AddOAuth<AutomaticOptions, AutomaticHandler>(authenticationScheme, displayName, configureOptions); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.