Exemple #1
0
 public RefreshToken(AutorisatieCode code)
 {
     Type        = GetType().Name;
     ClientId    = code.ClientId;
     UserId      = code.UserId;
     Scopes      = code.Scopes;
     TokenString = GenerateToken(ClientId, UserId, Type);
 }
Exemple #2
0
 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);
 }