Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom-INetworkModule-and-Network-Tracing sample now supports an axios HttpClient as well as requests running on an express server. #5658

Merged
merged 4 commits into from
Feb 7, 2023

Conversation

Robbie-Microsoft
Copy link
Collaborator

This sample has been updated to help debug issues in GitHub Issue 4879 - one user is having difficulties with ConfidentialClient in conjunction with an express server. There are two ways to run the sample now: one is as-is, the other via an express server.

Additionally, in order to prepare for potentially adding axios functionality back to msal-node's HttpClient in the case where the developer isn't using a proxyUrl, a HttpClientAxios was added to this sample to give the developer the option to use as a networkClient instead of the current functionality. The developer now has the option to use either networkClient (or neither) in this sample.

…ient. Additionally, it now supports requests running on an express server.
@github-actions github-actions bot added documentation Related to documentation. samples Related to the samples apps for the library. labels Feb 7, 2023
@@ -53,7 +53,17 @@ class NetworkUtils {
/**
* This class implements the API for network requests.
*/
export class HttpClient implements INetworkModule {
export class HttpClientCurrent implements INetworkModule {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naming? Maybe AxiosHttpClient ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe HttpClientNative would be more apt?

Copy link
Contributor

@derisen derisen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -thanks @Robbie-Microsoft

@Robbie-Microsoft Robbie-Microsoft merged commit f4678bf into dev Feb 7, 2023
@Robbie-Microsoft Robbie-Microsoft deleted the custom-inetworkmodule-update branch February 7, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation. samples Related to the samples apps for the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants