コード例 #1
0
 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)));
 }
コード例 #2
0
 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)));
 }