Exemple #1
0
        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");
        }
Exemple #2
0
 public static ClaimsIdentity GenerateUserIdentity(this TokenResponse response)
 {
     return(response.GenerateUserIdentity(Constants.WeeeAuthType));
 }