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.
- Host: GitHub
- URL: https://github.com/adshan/dotnet-refresh-token-redis
- Owner: AdsHan
- License: mit
- Created: 2021-06-30T23:02:41.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-09T11:50:12.000Z (almost 5 years ago)
- Last Synced: 2025-10-09T00:27:51.547Z (9 months ago)
- Topics: authentication-token, dotnet, jwt, net5, redis, refresh-token
- Language: C#
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).