英文:
How can I troubleshoot the AADSTS650057 error when setting up VPN client connection with Azure AD?
问题
需要帮助解决 VPN 客户端错误,尽管已正确配置权限 (AADSTS650057)
我一直在尝试设置使用 Azure Active Directory (Azure AD) 进行身份验证的 VPN 客户端连接到我的 Azure 虚拟网络 (VNet)。然而,我一直遇到一个错误 (AADSTS650057),指出客户端请求访问一个未在客户端应用程序注册中请求的权限中列出的资源。以下是我所做的一些步骤:
配置 API 权限:我已选择了适当的 API 权限,包括 Azure 服务管理中的 "user_impersonation",并已授予管理员同意。我已按照文档的说明确保权限已正确设置。
Azure AD 应用程序注册:我已在 Azure AD 中注册了一个客户端应用程序,并配置了必要的权限和重定向 URI。我已确保应用程序注册与 VPN 客户端配置中请求的权限匹配。
检查 Azure AD 配置:我已验证 Azure AD 配置,包括租户 ID 和 AAD 发行者,在 VPN 客户端中已准确配置,并且与我 Azure AD 租户中的设置匹配。
尽管采取了这些步骤,我仍然遇到 AADSTS650057 错误,该错误表明所请求的资源未列在已授予客户端应用程序注册的权限中。
是否有其他人遇到了使用 Azure AD 身份验证的 VPN 客户端连接的类似问题?我可以采取哪些附加的故障排除步骤来解决这个错误并建立成功的 VPN 连接?
非常感谢您提前的帮助!
英文:
Need help with VPN client error despite configuring permissions correctly (AADSTS650057)
I have been trying to set up a VPN client connection to my Azure Virtual Network (VNet) using Azure Active Directory (Azure AD) for authentication. However, I keep encountering an error (AADSTS650057) stating that the client requested access to a resource which is not listed on the requested permissions in the client app registration. Here's a breakdown of what I have done:
Configured API permissions: I have selected the appropriate API permissions, including "user_impersonation" for Azure Service Management, and granted admin consent. I have followed the documentation and made sure the permissions are properly set up.
Azure AD app registration: I have registered a client application in Azure AD and configured it with the necessary permissions and redirect URIs. I have ensured that the app registration matches the permissions requested in the VPN client configuration.
Checked Azure AD configuration: I have verified that the Azure AD configuration, including the tenant ID and AAD Issuer, is accurately configured in the VPN client and matches the settings in my Azure AD tenant.
Despite these steps, I am still encountering the AADSTS650057 error, which indicates that the requested resource is not listed in the permissions granted to the client app registration.
Has anyone else faced a similar issue with VPN client connectivity using Azure AD authentication? What additional troubleshooting steps can I take to resolve this error and establish a successful VPN connection?
Any insights, suggestions, or guidance would be greatly appreciated. Thank you in advance for your help!
答案1
得分: 2
我在我的环境中尝试了相同的操作,选择了Azure Service Management的API权限user_impersonation,并像下面这样授予了管理员同意:
要使用Azure Active Directory (Azure AD) 进行身份验证,设置VPN客户端连接到我的Azure虚拟网络 (VNet),创建虚拟网络网关,如下所示:
租户:https://login.microsoftonline.com/{AzureAD TenantID}
受众:41b23e61-6c1e-4545-b367-cd054e0ed4b4
发行方:https://sts.windows.net/{AzureADTenantID}/
然后,保存并下载VPN客户端文件。
要授权该应用程序,请在浏览器中使用以下URL登录全局访问帐户并为您的组织授予管理员同意。这允许Azure VPN应用程序登录并读取用户配置文件。
https://login.microsoftonline.com/common/oauth2/authorize?client_id=41b23e61-6c1e-4545-b367-cd054e0ed4b4&response_type=code&redirect_uri=https://portal.azure.com&nonce=1234&prompt=admin_consent
安装Azure VPN客户端,解压下载的ZIP文件,导入azurevpnconfig.xml文件,VPN客户端将成功连接,如下所示:
如果仍然出现错误,请检查您是否提供了有效的Audience和URL。
英文:
I tried the same in my environment, selected API permissions user_impersonation for Azure Service Management, and granted admin consent like below:
To set up a VPN client connection to my Azure Virtual Network (VNet) using Azure Active Directory (Azure AD) for authentication created virtual network gateway like below:
Tenant: https://login.microsoftonline.com/{AzureAD TenantID}
Audience: 41b23e61-6c1e-4545-b367-cd054e0ed4b4
Issuer: https://sts.windows.net/{AzureADTenantID}/
Then, Save and download VPN client file.
To Authorize the application, use this URL in browser login with global access account and grant admin consent for your organization. It allows the Azure VPN application to log in and read user profiles.
https://login.microsoftonline.com/common/oauth2/authorize?client_id=41b23e61-6c1e-4545-b367-cd054e0ed4b4&response_type=code&redirect_uri=https://portal.azure.com&nonce=1234&prompt=admin_consent
Install Azure VPN client Extract the downloaded zip file import the azurevpnconfig.xml file and VPN client is connected successfully like below:
If still the error occurs, check that you have provided valid Audience and URL.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论