Skip to content

butterngo/CSharpJWT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description:

The library helps you manage users, tenants. Besides, managing the lifetime of "access_token and refresh_token, revoke "access_token", sharing token between applications. Support "Authorization" attribute easily to validate "Audiences, Issuer, Roles...". CSharp.JWT Server Nuget CSharp.JWT Client Nuget

Configuration:

  1. Generate Secret key you can use putty to do that or any application you knew.
  2. Open "OAuthServer" appsettings replace your config,
    • "CSharpJWT": {
    • "Issuer": "http://localhost:5000", ==> Replace any of the hosts
    • "SecurityKey": "Your secret key", ==> The file use generates "IssuerSigningKey".
    • "ValidateClient": true ==> Default always validation "client" if set by false the system will ignore that, the option often use for "multiple tenants" pattern if one should be set it by false
  • },
  • "ConnectionStrings": {
    • "CSharpJWT": your connectionstring,
    • "DistCache_ConnectionString":This link will help you understanding it.
  • },
  1. Created DistCache through command "dotnet sql-cache create "Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=DistCache;Integrated Security=True;" dbo TestCache". Remind: Make sure your machine was installed dotnet sql-cache.
  2. Open terminal or command line and execute update-database

Note:

If you want to get more understanding about that, you can access the website c-sharp.vn.

About

Multi-Tenancy With Full-Stack JWT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages