示例#1
0
 public TokenStore(IdentityModel.Client.TokenResponse result)
 {
     this.AccessToken  = result.AccessToken;
     this.TokenType    = result.TokenType;
     this.RefreshToken = result.RefreshToken;
     this.ExpiresOn    = DateTime.Now.AddSeconds(result.ExpiresIn - 60);
 }
 public TokenResponse(IdentityModel.Client.TokenResponse tokenResponse)
 {
     AccessToken  = tokenResponse.AccessToken;
     RefreshToken = tokenResponse.RefreshToken;
     TokenType    = tokenResponse.TokenType;
     Error        = tokenResponse.Error;
     ExpiresIn    = tokenResponse.ExpiresIn;
 }