Skip to content

A simple dotnet core razor application that uses basic cookie authentication.

Notifications You must be signed in to change notification settings

kevinkeyt/DotnetCoreSimpleAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DotnetCoreSimpleAuth

A simple dotnet core razor application that uses basic cookie authentication.

This application adds the needed framework and files to use basic cookie and login information to your dotnet core application. It's meant to be used for small sites where you might have just one user needing to login to view secure information.

You can setup the needed AppSettings using user secrets in core using the following commands.

dotnet user-secrets set AppSettings:LoginEmail "[email protected]"
dotnet user-secrets set AppSettings:LoginPassword "Passw0rd"
dotnet user-secrets set AppSettings:FullName "Joe Tester"

If you would like a full description of the code you can view a post on my blog that goes into more detail here. (http://kevinkeyt.com/post/cookie-auth-with-dotnet-core)

About

A simple dotnet core razor application that uses basic cookie authentication.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published