public async Task AuthenticateCoreState(Action <OpenIdConnectOptions> action, OpenIdConnectMessage message) { var handler = new OpenIdConnectHandlerForTestingAuthenticate(); var server = CreateServer(action, UrlEncoder.Default, handler); await server.CreateClient().PostAsync("http://localhost", new FormUrlEncodedContent(message.Parameters.Where(pair => pair.Value != null))); }
public async Task AuthenticateCoreState(Action<OpenIdConnectOptions> action, OpenIdConnectMessage message) { var handler = new OpenIdConnectHandlerForTestingAuthenticate(); var server = CreateServer(action, UrlEncoder.Default, handler); await server.CreateClient().PostAsync("http://localhost", new FormUrlEncodedContent(message.Parameters.Where(pair => pair.Value != null))); }