简体   繁体   English

使用谷歌工作区验证 Azure SAML 的域

[英]Verify domain for Azure SAML with google workspace

I am trying to provision users into Azure AD from Google Workspace, and let my users log into Azure Portal using their company google account.我正在尝试从 Google Workspace 将用户配置到 Azure AD,并让我的用户使用他们公司的谷歌帐户登录到 Azure 门户。 I have added my custom domain to Azure AD, and configured integration on Google side.我已将我的自定义域添加到 Azure AD,并在 Google 端配置了集成。 However while provisioning is working, when a user tries to log into Azure, they need to enter a password instead of being redirected to google to use their workspace account.然而,当配置工作时,当用户尝试登录 Azure 时,他们需要输入密码,而不是被重定向到谷歌以使用他们的工作区帐户。

Reading through the documentation, I have set TXT record to use the SSO url indicated by google as DirectFedAuthUrl attribute.通读文档,我已将 TXT 记录设置为使用 google 指示的 SSO url 作为DirectFedAuthUrl属性。 I have verified via a different tool that indeed it is set to https://accounts.google.com/o/saml2/idp?idpid=xxxx .我已经通过不同的工具验证它确实设置为https://accounts.google.com/o/saml2/idp?idpid=xxxx Now, what I try to set up SAML in Azure AD using my custom domain it returns an error that direct federation policy does not pass some requirements, and directs me to the documentation.现在,我尝试使用我的自定义域在 Azure AD 中设置 SAML,它返回直接联合策略未通过某些要求的错误,并将我引导至文档。 What am I doing wrong?我究竟做错了什么?

How can I verify my custom domain so it works with Azure SAML?如何验证我的自定义域以便它与 Azure SAML 一起使用?

• Please check whether the authentication URL entered for sending users to authenticate and receive a token from google matches that with the google's target domain such that when the users try to access the application in azure, they are redirected correctly to google IdP. • 请检查用于发送用户进行身份验证并从google 接收令牌的身份验证URL 是否与google 的目标域相匹配,以便当用户尝试访问azure 中的应用程序时,他们会被正确重定向到google IdP。

• Also, please check if your added custom domain is verified in Azure AD and your domain is not managed through Azure AD because if this is the case then Azure blocks SAML/WS-Fed IdP federation for Azure AD verified domains in favor of native Azure AD managed domain capabilities. • 此外,请检查您添加的自定义域是否在 Azure AD 中得到验证,并且您的域未通过 Azure AD 进行管理,因为如果是这种情况,则 Azure 会阻止 Azure AD 验证域支持本机 Azure 的 SAML/WS-Fed IdP 联合AD 托管域功能。

• Ensure that your unique custom domain is registered with one tenant only in Azure AD as currently federation with multiple domains through the same tenant is not supported. • 确保您的唯一自定义域仅在公元 Azure 年向一个租户注册,因为当前不支持通过同一租户与多个域联合。 Also, check whether the DNS TXT records that you have updated for the custom domain used in Azure AD while setting up federation is correctly setup, ie, the TXT records should be updated for the domain that you have setup in google suite and if it is different than the custom domain used in Azure AD, please set the TXT records as below: -此外,检查您在设置联盟时为 Azure AD 中使用的自定义域更新的 DNS TXT 记录是否正确设置,即,应为您在 google 套件中设置的域更新 TXT 记录,如果它是与Azure AD中使用的自定义域不同,请设置TXT记录如下: -

' fabrikam.com. ' fabrikam.com。 IN TXT DirectFedAuthUrl=https://fabrikamconglomerate.com/adfs '在 TXT DirectFedAuthUrl=https://fabrikamconglomerate.com/adfs '

In this case, 'fabrikam.com' is the registered domain name but the domain in the authentication URL does not match the registered domain name, so you will need to update the TXT records as above in your public DNS registry.在这种情况下,'fabrikam.com' 是注册域名,但身份验证 URL 中的域与注册域名不匹配,因此您需要在公共 DNS 注册表中更新 TXT 记录,如上所示。 Also, Microsoft has stated in its official documentation that there is a known issue with the above step and they are actively working on resolving it at the earliest as adding a DNS text record to the federating IdP's domain won't unblock authentication.此外,Microsoft 已在其官方文档中声明上述步骤存在一个已知问题,他们正在积极努力尽早解决该问题,因为将 DNS 文本记录添加到联合 IdP 的域不会取消身份验证。

Please find the below link for more information: -请找到以下链接以获取更多信息:-

https://learn.microsoft.com/en-us/azure/active-directory/external-identities/direct-federation https://learn.microsoft.com/en-us/azure/active-directory/external-identities/direct-federation

This is not an answer but more of a tip: try using powershell to get more diagnostic information about why the SAML setup is not working.这不是答案,而是更多的提示:尝试使用 powershell 获取有关 SAML 设置为何不起作用的更多诊断信息。 Some sample powershell in the MS Doc. MS Doc 中的一些示例 powershell。

https://learn.microsoft.com/en-us/azure/active-directory/external-identities/direct-federation#to-configure-samlws-fed-idp-federation-in-azure-ad-using-powershell https://learn.microsoft.com/en-us/azure/active-directory/external-identities/direct-federation#to-configure-samlws-fed-idp-federation-in-azure-ad-using-powershell

So for example in the below, I got a much better message than in the portal.因此,例如在下面,我收到了比在门户中更好的消息。 Portal just said "Failed to add provider" or similar.门户刚刚说“无法添加提供商”或类似内容。

PS C:\WINDOWS\system32> New-AzureADExternalDomainFederation -ExternalDomainName $domainName  -FederationSettings $federationSettings -verbose
New-AzureADExternalDomainFederation : Error occurred while executing NewExternalDomainFederation
Code: Request_BadRequest
Message: PassiveLogOnUri is not supported as it does not match the external domain: MYTESTDOMAIN.com or it is not from one of the supported third party identity providers. To verify the PassiveLogOnUri, please add the PassiveLogOnUri in the DNS TXT record like this
    DirectFedAuthUrl=https://MYTESTB2CTENANT.b2clogin.com/MYTESTB2CTENANT.onmicrosoft.com/B2C_1A_SAMLIdPsignup_signin/samlp/sso/login. 

paramName: passiveLogOnUri, paramValue:
    https://MYTESTB2CTENANT.b2clogin.com/MYTESTB2CTENANT.onmicrosoft.com/B2C_1A_SAMLIdPsignup_signin/samlp/sso/login, objectType: System.String
    RequestId: <some guid>
    DateTimeStamp: Wed, 06 Oct 2021 05:21:27 GMT
    Details: PropertyName  - passiveLogOnUri, PropertyErrorCode  - PassiveLogOnUriNotSupported
    HttpStatusCode: BadRequest
    HttpStatusDescription: Bad Request
    HttpResponseStatus: Completed
    At line:1 char:1
    + New-AzureADExternalDomainFederation -ExternalDomainName $domainName   ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (:) [New-AzureADExternalDomainFederation], ApiException
        + FullyQualifiedErrorId : Microsoft.Open.AzureADBeta.Client.ApiException,Microsoft.Open.AzureADBeta.PowerShell.NewExternalDomainFederation

Thanks to the error message, I was guided to update the DNS records as indicated however, and that did allow me to register the SAML IDP (in my case Azure B2C).多亏了错误消息,我被引导更新 DNS 记录,但确实允许我注册 SAML IDP(在我的例子中是 Azure B2C)。

A side note: Despite now being able to register successfully, B2C as a SAML IDP is not actually working for me yet, I think my issue is probably this:旁注:尽管现在能够成功注册,但 B2C 作为 SAML IDP 实际上还没有为我工作,我认为我的问题可能是这样的:

在此处输入图像描述

I guess my next option to try is this:我想我的下一个选择是:

If the authentication URL is https://fabrikam.com or https://sts.fabrikam.com/adfs (a host in the same domain), no DNS changes are needed.如果认证URL为https://fabrikam.comhttps://sts.fabrikam.com/adfs (同域主机),则无需DNS更改。

But that requires an Azure Front Door and I don't fancy setting that up just now https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-custom-policy但这需要一个 Azure 前门,我现在不想设置它https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-custom-政策

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否可以使用 Google Workspace(以前称为 G Suite)作为使用 SAML 2.0 的 AWS WorkSpaces 的身份提供商? - Is it possible to use Google Workspace (formerly G Suite) as Identity Provider for AWS WorkSpaces using SAML 2.0? 工作区域用户无法访问 Google 云存储桶 - Google cloud storage bucket not accessible by workspace domain users 绕过 Azure AD SAML - Bypass Azure AD SAML azure.microsoft.com 域已被 Google Chrome 屏蔽 - The azure.microsoft.com domain is blocked for Google Chrome SonarQube Azure AD SAML认证 - SonarQube Azure AD SAML authentication 重定向不适用于 SAML 登录,带有 Azure Active Directory 的 php-saml - Redirect not working for SAML login, php-saml with Azure Active Directory Azure Log Analytics 工作区和 GDPR - Azure Log Analytics Workspace and GDPR SAML - IDP 发起的示例(Azure AD SAML 工具包)? - SAML - IDP Initiated Example (Azure AD SAML Toolkit)? 通过 API 更改 Azure Databricks 工作区设置 - Changing Azure Databricks Workspace Settings via API Google 工作区中没有 Gmail 应用程序选项 - No Gmail application option in Google workspace
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM