예제 #1
0
 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);
 }
예제 #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);
 }
예제 #3
0
 private string GenerateCode(Guid client, Guid user, string type)
 {
     return(TokenGenerate.GenerateToken(client, user, type));
 }
예제 #4
0
 protected override string GenerateToken(Guid client, Guid user, string type)
 {
     return(TokenGenerate.GenerateToken(client, user, type));
 }