You are developing a C# desktop application using MSAL.NET that will run on Windows 11 client machines. The application must authenticate users against Microsoft Entra ID and support Single Sign-On (SSO) using the native Windows Web Account Manager (WAM) broker. You need to configure the Microsoft Entra ID application registration and the C# initialization code. Which two configuration steps should you perform? Select two.
- In the Microsoft Entra ID application registration, configure a Redirect URI using the format ms-appx-web://microsoft.aad.brokerplugin/{ClientId}.Cevap
- Initialize the client application using PublicClientApplicationBuilder and call the WithBroker method with Windows broker options enabled.Cevap
- CInitialize the client application using ConfidentialClientApplicationBuilder and configure the client secret to authenticate via WAM.
- DIn the Microsoft Entra ID application registration, configure a Redirect URI using the default native client URI: https://login.microsoftonline.com/common/oauth2/nativeclient.
- EInitialize the client application using PublicClientApplicationBuilder and call the WithSystemWebViewOptions method to delegate authentication to WAM.
Cevap
Configure a Redirect URI in Microsoft Entra ID using the format ms-appx-web://microsoft.aad.brokerplugin/{ClientId}, and initialize the application using PublicClientApplicationBuilder while calling WithBroker with Windows broker options enabled.
To configure Windows Web Account Manager (WAM) broker authentication, you must register a Redirect URI matching the 'ms-appx-web://microsoft.aad.brokerplugin/{ClientId}' pattern in Entra ID and call the 'WithBroker' method with Windows options on the 'PublicClientApplicationBuilder'. This allows the application to utilize WAM for native Single Sign-On.
Adım Adım Çözüm
Anahtar Kavram
Configuring Single Sign-On (SSO) with Web Account Manager (WAM) broker authentication in MSAL.NET and Microsoft Entra ID.
Tahmini Süre:2m 0s