An open API service indexing awesome lists of open source software.

https://github.com/adshan/dotnet-refresh-token-redis

Refresh Token with JWT authentication using Redis as a cache repository.
https://github.com/adshan/dotnet-refresh-token-redis

authentication-token dotnet jwt net5 redis refresh-token

Last synced: 2 months ago
JSON representation

Refresh Token with JWT authentication using Redis as a cache repository.

Awesome Lists containing this project

README

          

# core-jwt-refresh-token-redis

Aplicação .Net Core 5.0 Web API desenvolvida com o objetivo de demonstrar uma rotina de login com geração de Token JWT e Refresh Token. Caso o Token esteja expirado é possível enviar o Refresh Token a fim de obter um novo token de autenticação. O Refresh Token é salvo através de cache baseado em Redis (Microsoft.Extensions.Caching.Redis).

# Este projeto contém:

- JWT (Bearer);
- Redis como mecanismo de cache;
- Identity;

# Como executar:
- Clonar / baixar o repositório em seu workplace.
- Baixar o .Net Core SDK e o Visual Studio / Code mais recentes.
- Intalar o Redis local ou em container.
- Ajustar a conexão do Redis no projeto.
- Nas configurações da API, ajustar o PATH do XML do Swagger.

# Sobre
Este projeto foi desenvolvido por Anderson Hansen sob [MIT license](LICENSE).