UDT-002: Logout + Refresh Token con rotación y chain revocation #3

Merged
dmolinari merged 36 commits from feature/UDT-002 into main 2026-04-14 17:37:47 +00:00
Showing only changes of commit d326dd87e0 - Show all commits

View File

@@ -0,0 +1,17 @@
using System.Security.Cryptography;
using SIGCM2.Application.Abstractions.Security;
namespace SIGCM2.Infrastructure.Security;
public sealed class RefreshTokenGenerator : IRefreshTokenGenerator
{
public string Generate()
{
Span<byte> bytes = stackalloc byte[32];
RandomNumberGenerator.Fill(bytes);
return Convert.ToBase64String(bytes)
.TrimEnd('=')
.Replace('+', '-')
.Replace('/', '_');
}
}