You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-3Lines changed: 24 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,26 @@
1
1
# Mihir.AspNetCore.Authentication.Basic
2
2
Basic Scheme Authentication Implementation for ASP.NET Core 2.0
3
3
4
+
## Installing
5
+
This library is published on NuGet. So the NuGet package can be installed directly to your project if you wish to use it with making any custom changes to the code.
6
+
7
+
Download directly from [Mihir.AspNetCore.Authentication.Basic](https://www.nuget.org/packages/Mihir.AspNetCore.Authentication.Basic).
Setting it up is quite simple. You will need basic working knowledge of ASP.NET Core 2.0 to get started using this code.
5
18
19
+
On Startup.cs, as shown below, add 2 lines in ConfigureServices method `services.AddAuthentication(BasicDefaults.AuthenticationScheme).AddBasic<BasicUserValidationService>(options => { options.Realm = "My App"; });`. And a line `app.UseAuthentication();` in Configure method.
20
+
21
+
Also add an implementation of IBasicUserValidationService as shown below in BasicUserValidationService.cs
0 commit comments