Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

FusionAuth/fusionauth-example-asp-netcore5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example ASP.NET Core web application

An ASP.NET Core web application using FusionAuth as the identity server.

You need to have dotnetcore installed to run this code.

Set up fusionauth as documented in the blog post.

To deploy and run:

  • Open up a terminal (these instructions assume a cmd window)
  • cd SampleApp
  • Update appsettings.json with the FusionAuth application ClientId
  • Export the client secret as an environment variable: set SampleApp__ClientSecret="..."
  • Publish the binary: dotnet publish -r win-x64
  • Run the application: bin\Debug\netcoreapp3.1\win-x64\publish\SampleApp.exe

Visit the local webserver at http://localhost:5000/ and sign in.

See more deployment options: https://docs.microsoft.com/en-us/dotnet/core/deploying/

See the blog post for more details about this code: Securing an ASP.NET Core Razor Pages app with OAuth

About

A .NET core5 example application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •