Skip to content

Commit

Permalink
Update AuthenticationService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ramizsha authored Oct 1, 2024
1 parent bbc453b commit 505c4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Backend/src/Services/AuthenticationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public async Task<string> GetAccessTokenOnBehalfOf(AuthorizationContext authoriz
{
result = await _confidentialClientApplication
.AcquireTokenOnBehalfOf(scopes, userAssertion)
.WithTenantId(authorizationContext.TenantObjectId.ToString())
.WithTenantId(authorizationContext.TenantObjectId.ToString()) // This is needed to support B2B scenarios
.ExecuteAsync();
}
catch (MsalUiRequiredException ex)
Expand Down

0 comments on commit 505c4e6

Please sign in to comment.