|
|
|
@ -10,7 +10,7 @@ namespace Infrastructure.Security;
|
|
|
|
|
|
|
|
|
|
public interface ITokenBuilder
|
|
|
|
|
{
|
|
|
|
|
IList<Claim> GetClaimsByUserContext(IUserContext userContext);
|
|
|
|
|
IList<Claim> GetClaimsFromUserContext(IUserContext userContext);
|
|
|
|
|
|
|
|
|
|
void SetUserContext(TokenValidatedContext context);
|
|
|
|
|
|
|
|
|
@ -23,7 +23,7 @@ public class TokenBuilder(
|
|
|
|
|
IEncryptionService encryptionService)
|
|
|
|
|
: ITokenBuilder
|
|
|
|
|
{
|
|
|
|
|
public IList<Claim> GetClaimsByUserContext(IUserContext userContext)
|
|
|
|
|
public IList<Claim> GetClaimsFromUserContext(IUserContext userContext)
|
|
|
|
|
{
|
|
|
|
|
var claims = new List<Claim>()
|
|
|
|
|
{
|
|
|
|
|