public BearerToken(RefreshToken token) { RefreshTokenString = token.TokenString; TimeToLive = ExpiryTime; Type = GetType().Name; ClientId = token.ClientId; UserId = token.UserId; Scopes = token.Scopes; TokenString = TokenGenerate.GenerateToken(ClientId, UserId, Type); }
public BearerToken(AutorisatieCode code, string refreshToken) { RefreshTokenString = refreshToken; TimeToLive = ExpiryTime; Type = GetType().Name; ClientId = code.ClientId; UserId = code.UserId; Scopes = code.Scopes; TokenString = TokenGenerate.GenerateToken(ClientId, UserId, Type); }
private string GenerateCode(Guid client, Guid user, string type) { return(TokenGenerate.GenerateToken(client, user, type)); }
protected override string GenerateToken(Guid client, Guid user, string type) { return(TokenGenerate.GenerateToken(client, user, type)); }