Skip to content

Commit

Permalink
- Add embeddedClientId to native request.
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantin-msft committed Oct 3, 2024
1 parent 63eb4d7 commit e66460d
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions lib/msal-browser/src/interaction_client/NativeInteractionClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,24 +1064,17 @@ export class NativeInteractionClient extends BaseInteractionClient {
const child_redirect_uri = request.redirectUri;

if (request.embeddedClientId) {
request.extraParameters = {
[AADServerParamKeys.BROKER_CLIENT_ID]:
this.config.auth.clientId,
[AADServerParamKeys.BROKER_REDIRECT_URI]:
this.config.auth.redirectUri,
child_client_id,
child_redirect_uri,
};
request.redirectUri = this.config.auth.redirectUri;
} else if (hasExtraBrokerParams) {
const brk_redirect_uri =
request.redirectUri =
request.extraParameters[AADServerParamKeys.BROKER_REDIRECT_URI];
request.extraParameters = {
child_client_id,
child_redirect_uri,
};
request.redirectUri = brk_redirect_uri;
}

request.extraParameters = {
child_client_id,
child_redirect_uri,
};

this.performanceClient?.addFields(
{
embeddedClientId: child_client_id,
Expand Down

0 comments on commit e66460d

Please sign in to comment.