An ASP.NET Core (v2.1) Web API project to quickly bootstrap new projects. Includes Identity, JWT authentication w/ refresh tokens.
Web.Api.Infrastructure>dotnet ef database update --context AppDbContext
Web.Api.Infrastructure>dotnet ef database update --context AppIdentityDbContext
Open the solution file AspNetCoreApiStarter.sln
and build/run.
Open the src
folder and F5
to build/run.
To explore and test the available APIs simply run the project and use the Swagger UI.
The available APIs include:
/api/accounts
- Creates a new user./api/auth/login
- Authenticates a user./api/auth/refreshtoken
- Refreshes expired access tokens./api/protected
- Protected controller for testing role-based authorization.mark@fullstackmark.com