在哪种情况下我应该使用 Web App Azure 门户中的身份验证 link,在哪种情况下我必须使用 MSAL 库
In which scenario I should use Authentication link from Web App Azure Portal and in which scenario I have to use MSAL Library
我想使用 Azure AD 对用户进行身份验证。
我在 Azure AD 中注册了应用程序,一切都已设置,我正在使用 Azure 门户 Web 应用程序设置部分的身份验证 link。
根据 Microsoft dcoumentation 建议使用 MSAL 库
何时使用 MSAL 库以及何时使用 Azure 门户身份验证
Azure 门户 => 设置 => 身份验证。
来自 Web 应用程序 Azure 门户的身份验证 link 是 Easy Auth。
与是否使用MSAL没有冲突。
你可以看看Why use the built-in authentication?。
一个重要的原因是:
The built-in authentication feature for App Service and Azure
Functions can save you time and effort by providing out-of-the-box
authentication with federated identity providers, allowing you to
focus on the rest of your application.
当您启用 Easy Auth 时,Azure 将创建一个代表您的 Web 应用程序的应用程序注册。任何访问您的 Web 应用程序的尝试都需要使用您的 Azure AD 帐户登录。
您还可以使用 Azure 为您创建的应用程序注册(或在不启用 Easy Auth 的情况下创建您自己的应用程序注册)来配置 MSAL。 MSAL 是一个成熟的框架,您可以找到以下好处 here。
Easy Auth 使用 Implicit Flow by default to sign in. If your web app requires other auth flows (eg. auth code flow, client credentials flow),使用 MSAL 是更好的选择。
我想使用 Azure AD 对用户进行身份验证。 我在 Azure AD 中注册了应用程序,一切都已设置,我正在使用 Azure 门户 Web 应用程序设置部分的身份验证 link。 根据 Microsoft dcoumentation 建议使用 MSAL 库 何时使用 MSAL 库以及何时使用 Azure 门户身份验证 Azure 门户 => 设置 => 身份验证。
来自 Web 应用程序 Azure 门户的身份验证 link 是 Easy Auth。
与是否使用MSAL没有冲突。
你可以看看Why use the built-in authentication?。
一个重要的原因是:
The built-in authentication feature for App Service and Azure Functions can save you time and effort by providing out-of-the-box authentication with federated identity providers, allowing you to focus on the rest of your application.
当您启用 Easy Auth 时,Azure 将创建一个代表您的 Web 应用程序的应用程序注册。任何访问您的 Web 应用程序的尝试都需要使用您的 Azure AD 帐户登录。
您还可以使用 Azure 为您创建的应用程序注册(或在不启用 Easy Auth 的情况下创建您自己的应用程序注册)来配置 MSAL。 MSAL 是一个成熟的框架,您可以找到以下好处 here。
Easy Auth 使用 Implicit Flow by default to sign in. If your web app requires other auth flows (eg. auth code flow, client credentials flow),使用 MSAL 是更好的选择。