Skip to content

Commit

Permalink
Allow pop params for brokered flows (#7335)
Browse files Browse the repository at this point in the history
Adds POP params in request types to allow acquisition of POP tokens from
MSAL Runtime brokered flows
  • Loading branch information
tnorling authored Oct 1, 2024
1 parent 68d29bb commit 704a8de
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "Allow POP Params for brokered requests",
"packageName": "@azure/msal-node",
"email": "thomas.norling@microsoft.com",
"dependentChangeType": "patch"
}
4 changes: 2 additions & 2 deletions lib/msal-node/apiReview/msal-node.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export { InteractionRequiredAuthErrorCodes }
export { InteractionRequiredAuthErrorMessage }

// @public
export type InteractiveRequest = Pick<AuthorizationUrlRequest, "authority" | "correlationId" | "claims" | "azureCloudOptions" | "account" | "extraQueryParameters" | "tokenQueryParameters" | "extraScopesToConsent" | "loginHint" | "prompt"> & {
export type InteractiveRequest = Partial<Omit<CommonAuthorizationUrlRequest, "scopes" | "redirectUri" | "requestedClaimsHash" | "storeInCache">> & {
openBrowser: (url: string) => Promise<void>;
scopes?: Array<string>;
successTemplate?: string;
Expand Down Expand Up @@ -692,7 +692,7 @@ export type SignOutRequest = {
};

// @public
export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "resourceRequestMethod" | "resourceRequestUri" | "requestedClaimsHash" | "storeInCache">> & {
export type SilentFlowRequest = Partial<Omit<CommonSilentFlowRequest, "account" | "scopes" | "requestedClaimsHash" | "storeInCache">> & {
account: AccountInfo;
scopes: Array<string>;
};
Expand Down
19 changes: 6 additions & 13 deletions lib/msal-node/src/request/InteractiveRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Licensed under the MIT License.
*/

import { CommonAuthorizationUrlRequest } from "@azure/msal-common/node";
import { ILoopbackClient } from "../network/ILoopbackClient.js";
import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest.js";

/**
* Request object passed by user to configure acquireTokenInteractive API
Expand All @@ -17,18 +17,11 @@ import { AuthorizationUrlRequest } from "./AuthorizationUrlRequest.js";
* - loopbackClient - Custom implementation for a loopback server to listen for authorization code response.
* @public
*/
export type InteractiveRequest = Pick<
AuthorizationUrlRequest,
| "authority"
| "correlationId"
| "claims"
| "azureCloudOptions"
| "account"
| "extraQueryParameters"
| "tokenQueryParameters"
| "extraScopesToConsent"
| "loginHint"
| "prompt"
export type InteractiveRequest = Partial<
Omit<
CommonAuthorizationUrlRequest,
"scopes" | "redirectUri" | "requestedClaimsHash" | "storeInCache"
>
> & {
openBrowser: (url: string) => Promise<void>;
scopes?: Array<string>;
Expand Down
7 changes: 1 addition & 6 deletions lib/msal-node/src/request/SilentFlowRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ import { AccountInfo, CommonSilentFlowRequest } from "@azure/msal-common/node";
export type SilentFlowRequest = Partial<
Omit<
CommonSilentFlowRequest,
| "account"
| "scopes"
| "resourceRequestMethod"
| "resourceRequestUri"
| "requestedClaimsHash"
| "storeInCache"
"account" | "scopes" | "requestedClaimsHash" | "storeInCache"
>
> & {
account: AccountInfo;
Expand Down

0 comments on commit 704a8de

Please sign in to comment.