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

PoP Support for Node when brokered #7360

Merged
merged 10 commits into from
Oct 8, 2024
Merged

Conversation

tnorling
Copy link
Collaborator

@tnorling tnorling commented Oct 4, 2024

Fixes PoP support for Node when using the native broker

@github-actions github-actions bot added documentation Related to documentation. msal-node Related to msal-node package extensions Related to extensions for the base libraries labels Oct 4, 2024
Copy link
Contributor

@peterzenz peterzenz left a comment

Choose a reason for hiding this comment

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

Nothing we need to commit in this PR but some future considerations.

@@ -1030,6 +1161,7 @@ if (process.platform === "win32") {
const result: AuthResult = {
idToken: "",
accessToken: "",
authorizationHeader: "",
Copy link
Contributor

Choose a reason for hiding this comment

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

Tons of duplicate code in this PR, can we do anything to eliminate the duplication?

| Name | Description | Required |
|-------------------------| ----------------------------------------------------------- | -------- |
| `authenticationScheme` | Indicates whether MSAL should acquire a `Bearer` or `PoP` token. Default is `Bearer`. | **Required** |
| `resourceRequestMethod` | The all-caps name of the HTTP method of the request that will use the signed token (`GET`, `POST`, `PUT`, etc.) | **Required** |
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd generally suggest we uppercase the incoming value rather than asking for all-caps input.

@tnorling tnorling merged commit 34c3970 into dev Oct 8, 2024
4 of 7 checks passed
@tnorling tnorling deleted the pop-support-in-node-brokered branch October 8, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation. extensions Related to extensions for the base libraries msal-node Related to msal-node package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants