Skip to content

.Net Core project example with basic authentication between Razor Web Project and WebApi Project using different roles and permissions.

Notifications You must be signed in to change notification settings

Leanwit/AuthExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AuthExample

.Net Core project example with basic authentication between Razor Web Project and WebApi Project using different roles and permissions.

Build status

Getting Started

All commands described in this section will be executed in root project after cloning the repository.

Prerequisites

.Net Core 2.2

Installing

dotnet build

How to run

WebApi
dotnet run --project src/WebApi/WebApi.csproj

WebApi run in https://localhost:5001 by default.

Web
dotnet run --project src/Web/Web.csproj

Web run in https://localhost:1000 by default.

To log in, you can see all users and password created by default in src/WebApi/Infrastructure/Persistence/Seed/UserDataGenerator.cs.

Examples:

  • admin:admin
  • pageone:pageone

Running tests

dotnet test

It is also possible to execute tests per project.

dotnet test test/WebApi.Test
dotnet test test/Web.Test

Get coverage value using msbuild.

dotnet test /p:CollectCoverage=true /p:Exclude="[xunit.*]*

or you can check the last build here.

Next steps

Issue List

About

.Net Core project example with basic authentication between Razor Web Project and WebApi Project using different roles and permissions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages