Skip to content

REST API written in C# for authenticating users with JWT.

Notifications You must be signed in to change notification settings

ricardoo-cavalheiro/JwtStore

Repository files navigation

JwtStore.WebApi

1 - Environment Variables

This project uses dotnet user-secrets to store some env variables. The following is the list of env varibles you should set using dotnet user-secrets:

SendGrid:ApiKey *
Secrets:PasswordSaltKey
Secrets:JwtPrivateKey
Secrets:ApiKey
Email:DefaultFromName
Email:DefaultFromEmail
DatabaseParams:Password
DatabaseParams:DataSource **

* You don't actually need a valid SendGrid ApiKey to run this project. Any value will suffice.
** If using Docker to host SQL Server, set it to localhost,<port>; ex: localhost,1433.

2 - Apply Database Migrations

Enter the JwtStore.WebApi and apply the migrations:

cd JwtStore.WebApi
dotnet ef database update

About

REST API written in C# for authenticating users with JWT.

Topics

Resources

Stars

Watchers

Forks