public TokenResponseExtensionsTests() { // Freeze time at 2015/01/01 00:00:00 SystemTime.Freeze(new DateTime(2015, 1, 1, 0, 0, 0)); var response = new TokenResponse("{access_token:123,refresh_token:456,expires_in:3600}"); identity = response.GenerateUserIdentity("TEST"); }
public static ClaimsIdentity GenerateUserIdentity(this TokenResponse response) { return(response.GenerateUserIdentity(Constants.WeeeAuthType)); }