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
- Generate Secret key you can use putty to do that or any application you knew.
- 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.
- },
- 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.
- Open terminal or command line and execute update-database
If you want to get more understanding about that, you can access the website c-sharp.vn.