public static T Get <T>(this IdentityServerHost host, string path) { var result = host.Get(path); result.IsSuccessStatusCode.Should().BeTrue(); return(result.Content.ReadAsAsync <T>().Result); }
public static HttpResponseMessage GetLoginPage(this IdentityServerHost host, SignInMessage msg = null) { msg = msg ?? new SignInMessage() { ReturnUrl = host.Url.EnsureTrailingSlash() }; var signInId = host.WriteMessageToCookie(msg); return(host.Get(host.GetLoginUrl(signInId))); }