private async Task <AuthorizationCodeResponseUrl> GetResponseFromListener(LimitedLocalhostHttpServer server, CancellationToken ct) { var queryParams = await server.GetQueryParamsAsync(ct).ConfigureAwait(false); // Create a new response URL with a dictionary that contains all the response query parameters. return(new AuthorizationCodeResponseUrl(queryParams)); }
internal LimitedLocalhostHttpServer StartListener() { try { return(LimitedLocalhostHttpServer.Start(RedirectUri, _closePageResponse)); } catch { CallbackUriChooser.Default.ReportFailure(_callbackUriTemplate); throw; } }
private async Task <AuthorizationCodeResponseUrl> GetResponseFromListener(LimitedLocalhostHttpServer server, CancellationToken ct) { Dictionary <string, string> queryParams; try { queryParams = await server.GetQueryParamsAsync(ct).ConfigureAwait(false); CallbackUriChooser.Default.ReportSuccess(_callbackUriTemplate); } catch { CallbackUriChooser.Default.ReportFailure(_callbackUriTemplate); throw; } // Create a new response URL with a dictionary that contains all the response query parameters. return(new AuthorizationCodeResponseUrl(queryParams)); }
private LimitedLocalhostHttpServer StartListener() => LimitedLocalhostHttpServer.Start(RedirectUri);
internal LimitedLocalhostHttpServer StartListener() => LimitedLocalhostHttpServer.Start(RedirectUri, _closePageResponse);