單一登錄 SAML 通訊協定

本文介紹 Microsoft Entra ID 支援的 SAML 2.0(安全斷言標記語言)認證請求與回應,用於單一登入(SSO)。

下列通訊協議圖表描述單一登錄順序。 雲端服務 (服務提供者) 會使用 HTTP 重新導向系結,將 AuthnRequest (驗證要求) 元素傳遞至 Microsoft Entra ID (識別提供者)。 Microsoft Entra ID,然後使用 HTTP post 系結將 Response 項目張貼至雲端服務。

單一 Sign-On (SSO) 工作流程的螢幕快照。

注意

本文討論如何使用 SAML 進行單一登錄。 如需其他處理單一登錄方式的詳細資訊(例如,使用 OpenID Connect 或整合式 Windows 驗證),請參閱在 Microsoft Entra ID中 單一登錄應用程式。

AuthnRequest

若要要求使用者驗證,雲端服務會將 AuthnRequest 項目傳送至Microsoft Entra ID。 範例 SAML 2.0 AuthnRequest 看起來可能像下列範例:

<samlp:AuthnRequest
  xmlns="urn:oasis:names:tc:SAML:2.0:metadata"
  ID="C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w"
  Version="2.0" IssueInstant="2013-03-18T03:28:54.1839884Z"
  xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
  <Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">https://www.contoso.com</Issuer>
</samlp:AuthnRequest>
參數 類型 描述
ID 必填 Microsoft Entra ID 會使用這個屬性填入傳回回應的 InResponseTo 屬性。 標識元不得以數字開頭,因此常見的策略是在 GUID 的字串表示前面加上字串,例如 「ID」。 例如,id6c1c178c166d486687be4aaf5e482730 是有效的標識符。
Version 必填 此參數應設定為 2.0。
IssueInstant 必填 這是具有UTC值和 來回格式 (“o”)的DateTime字串。 Microsoft Entra ID 預期此類型的 DateTime 值,但不會評估或使用該值。
AssertionConsumerServiceURL 自選 如果提供,此參數必須符合 Microsoft Entra 識別碼中的雲端服務 RedirectUri。 如果 ACS 網址存在於 SAML 請求中,Entra ID 會承認該網址。
ForceAuthn 自選 這是布爾值。 如果為 true,表示使用者將強制重新驗證,即使他們具有具有Microsoft Entra ID 的有效會話也一樣。
IsPassive 自選 這是布爾值,指定Microsoft Entra ID 是否應該以無訊息方式驗證使用者,而不需用戶互動,如果會話 Cookie 存在的話。 如果這是真的,Microsoft Entra ID 會嘗試使用會話 Cookie 驗證使用者。

所有其他 AuthnRequest 屬性,例如 Consent、Destination和 ProviderName,都會忽略。

Microsoft Entra ID 也會忽略 Conditions中的 AuthnRequest 專案。

發行

Issuer 中的 AuthnRequest 元素必須完全符合 Microsoft Entra ID 之雲端服務中的其中一個 ServicePrincipalNames。 一般而言,這會設定為應用程式註冊期間所指定的 應用程式標識碼 URI。

包含 Issuer 元素的 SAML 摘錄看起來像下列範例:

<Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">https://www.contoso.com</Issuer>

NameIDPolicy

此元素會在回應中要求特定名稱標識碼格式,而且在傳送 Microsoft至 entra ID 的 AuthnRequest 元素中是選擇性的。

NameIdPolicy 元素看起來會像下列範例:

<NameIDPolicy Format="urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"/>

如果提供 NameIDPolicy,您可以包含其選擇性 Format 屬性。 Format 屬性只能有下列其中一個值:任何其他值都會導致錯誤。

  • urn:oasis:names:tc:SAML:2.0:nameid-format:persistent:Microsoft Entra ID 會發出 NameID 宣告做為成對標識符。
  • urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress:Microsoft Entra ID 會以電子郵件地址格式發出 NameID 宣告。
  • urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified:這個值允許Microsoft Entra ID 選取宣告格式。 Microsoft Entra ID 會發出 NameID 宣告做為成對標識符。
  • urn:oasis:names:tc:SAML:2.0:nameid-format:transient: Microsoft Entra ID 會以隨機產生的值發出 NameID 理賠,且該值是目前 SSO 操作唯一的。 這表示值是暫時的,無法用來識別驗證使用者。

如果指定了 SPNameQualifier,Microsoft Entra 標識碼會在回應中包含相同的 SPNameQualifier。

Microsoft Entra ID 會忽略 AllowCreate 屬性。

RequestedAuthnContext

RequestedAuthnContext 元素會指定所需的驗證方法。 在傳送 Microsoft 至 entra ID 的 AuthnRequest 元素中,這是選擇性的。

注意

如果 SAML 要求包含 RequestedAuthnContext,則必須將 Comparison 元素設定為 exact。

Microsoft Entra ID 支援下列 AuthnContextClassRef 值。

驗證方法 驗證內容類別 URI
Kerberos urn:oasis:names:tc:SAML:2.0:ac:classes:Kerberos
用戶名稱和密碼 urn:oasis:names:tc:SAML:2.0:ac:classes:Password
PGP 公鑰基礎結構 urn:oasis:names:tc:SAML:2.0:ac:classes:PGP
安全遠端密碼 urn:oasis:names:tc:SAML:2.0:ac:classes:SecureRemotePassword
XML 數字簽名 urn:oasis:names:tc:SAML:2.0:ac:classes:XMLDSig
簡單的公鑰基礎結構 urn:oasis:names:tc:SAML:2.0:ac:classes:SPKI
智慧卡 urn:oasis:names:tc:SAML:2.0:ac:classes:Smartcard
具有封閉私鑰和 PIN 的智慧卡 urn:oasis:names:tc:SAML:2.0:ac:classes:SmartcardPKI
傳輸層安全性 (TLS) 用戶端 urn:oasis:names:tc:SAML:2.0:ac:classes:TLSClient
未指定 urn:oasis:names:tc:SAML:2.0:ac:classes:Unspecified
X.509 憑證 urn:oasis:names:tc:SAML:2.0:ac:classes:X509
整合式 Windows 驗證 urn:federation:authentication:windows

範圍

包含識別提供者清單的 Scoping 元素在傳送 Microsoft至 entra ID 的 AuthnRequest 元素中是選擇性的。

如果提供,請勿包含 ProxyCount 屬性、IDPListOption 或 RequesterID 元素,因為不支持它們。

簽名

Signature 專案中的 AuthnRequest 項目是選擇性的。 Microsoft Entra 識別碼可以設定為強制執行已簽署驗證要求的需求。 如果已啟用,則只會接受已簽署的驗證要求,否則只會回應已註冊的判斷提示取用者服務 URL 來提供要求者驗證。

主題

請勿包含 Subject 專案。 Microsoft Entra ID 不支援在 AuthnRequest 中指定主旨,如果提供主旨,則會傳回錯誤。

您可以改為將 login_hint 參數新增至單一登錄 URL 的 HTTP 要求,並將主體的 NameID 當做參數值來提供主體。

回應

當要求的登入成功完成時,Microsoft Entra ID 會張貼雲端服務的回應。 成功登入嘗試的回應如下所示:

<samlp:Response ID="_a4958bfd-e107-4e67-b06d-0d85ade2e76a" Version="2.0" IssueInstant="2013-03-18T07:38:15.144Z" Destination="https://contoso.com/identity/inboundsso.aspx" InResponseTo="C2dE3fH4iJ5kL6mN7oP8qR9sT0uV1w" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
  <Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion"> https://login.microsoftonline.com/aaaabbbb-0000-cccc-1111-dddd2222eeee/</Issuer>
  <SignatureValue xmlns:ds="https://www.w3.org/2000/09/xmldsig#">
    ...
  </SignatureValue>
  <samlp:Status>
    <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Success" />
  </samlp:Status>
  <Assertion ID="_bf9c623d-cc20-407a-9a59-c2d0aee84d12" IssueInstant="2013-03-18T07:38:15.144Z" Version="2.0" xmlns="urn:oasis:names:tc:SAML:2.0:assertion">
    <Issuer>https://login.microsoftonline.com/aaaabbbb-0000-cccc-1111-dddd2222eeee/</Issuer>
    <SignatureValue xmlns:ds="https://www.w3.org/2000/09/xmldsig#">
      ...
    </SignatureValue>
    <Subject>
      <NameID>Uz2Pqz1X7pxe4XLWxV9KJQ+n59d573SepSAkuYKSde8=</NameID>
      <SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
        <SubjectConfirmationData InResponseTo="id758d0ef385634593a77bdf7e632984b6" NotOnOrAfter="2013-03-18T07:43:15.144Z" Recipient="https://contoso.com/identity/inboundsso.aspx" />
      </SubjectConfirmation>
    </Subject>
    <Conditions NotBefore="2013-03-18T07:38:15.128Z" NotOnOrAfter="2013-03-18T08:48:15.128Z">
      <AudienceRestriction>
        <Audience>https://www.contoso.com</Audience>
      </AudienceRestriction>
    </Conditions>
    <AttributeStatement>
      <Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name">
        <AttributeValue>testuser@contoso.com</AttributeValue>
      </Attribute>
      <Attribute Name="http://schemas.microsoft.com/identity/claims/objectidentifier">
        <AttributeValue>3F2504E0-4F89-11D3-9A0C-0305E82C3301</AttributeValue>
      </Attribute>
      <Attribute Name="http://schemas.microsoft.com/claims/authnmethodsreferences">    <AttributeValue>http://schemas.microsoft.com/ws/2008/06/identity/authenticationmethod/password</AttributeValue>
        <AttributeValue>http://schemas.microsoft.com/claims/multipleauthn</AttributeValue>
      </Attribute>
      ...
    </AttributeStatement>
    <AuthnStatement AuthnInstant="2013-03-18T07:33:56.000Z" SessionIndex="_bf9c623d-cc20-407a-9a59-c2d0aee84d12">
      <AuthnContext>
        <AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</AuthnContextClassRef>
      </AuthnContext>
    </AuthnStatement>
  </Assertion>
</samlp:Response>

回應

Response 專案包含授權要求的結果。 Microsoft Entra ID 會設定 ID 專案中 Version、IssueInstant 和 Response 值。 它也會設定下列屬性:

  • Destination:當登入成功完成時,會設定為服務提供者(雲端服務)的 。RedirectUri
  • InResponseTo:這會設定為起始回應之 ID 專案的 AuthnRequest 屬性。

發行

Microsoft Entra ID 會將 Issuer 項目設定為 https://sts.windows.net/<TenantIDGUID>/,其中 <TenantIDGUID> 是 entra 租使用者的租 Microsoft用戶標識符。

例如,具有Issuer元素的回應看起來可能類似下列範例:

<Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion"> https://sts.windows.net/aaaabbbb-0000-cccc-1111-dddd2222eeee/</Issuer>

地位

Status 元素會傳達登入的成功或失敗。 它包含 StatusCode 專案,其中包含程式代碼或一組巢狀程序代碼,代表要求的狀態。 它也包含 StatusMessage 元素,其中包含登入程式期間產生的自定義錯誤訊息。

下列範例是 SAML 回應,以嘗試登入失敗。

<samlp:Response ID="_f0961a83-d071-4be5-a18c-9ae7b22987a4" Version="2.0" IssueInstant="2013-03-18T08:49:24.405Z" InResponseTo="iddce91f96e56747b5ace6d2e2aa9d4f8c" xmlns:samlp="urn:oasis:names:tc:SAML:2.0:protocol">
  <Issuer xmlns="urn:oasis:names:tc:SAML:2.0:assertion">https://sts.windows.net/aaaabbbb-0000-cccc-1111-dddd2222eeee/</Issuer>
  <samlp:Status>
    <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:Requester">
      <samlp:StatusCode Value="urn:oasis:names:tc:SAML:2.0:status:RequestUnsupported" />
    </samlp:StatusCode>
    <samlp:StatusMessage>AADSTS75006: An error occurred while processing a SAML2 Authentication request. AADSTS90011: The SAML authentication request property 'NameIdentifierPolicy/SPNameQualifier' is not supported.
    Trace ID: 0000aaaa-11bb-cccc-dd22-eeeeee333333
    Timestamp: 2013-03-18 08:49:24Z</samlp:StatusMessage>
    </samlp:Status>
</samlp:Response>

斷言

除了 ID、IssueInstant 和 Version之外,Microsoft Entra ID 也會在回應的 Assertion 元素中設定下列元素。

發行

這會設定為 https://sts.windows.net/<TenantIDGUID>/其中 <TenantIDGUID> 是 Microsoft Entra 租使用者的租用戶標識碼。

<Issuer>https://sts.windows.net/aaaabbbb-0000-cccc-1111-dddd2222eeee/</Issuer>

簽名

Microsoft Entra ID 會簽署判斷提示,以回應成功的登入。 Signature 元素包含數位簽名,雲端服務可用來驗證來源來驗證判斷提示的完整性。

若要產生此數字簽名,Microsoft Entra ID 會在其元數據檔的 IDPSSODescriptor 元素中使用簽署金鑰。

<SignatureValue xmlns:ds="https://www.w3.org/2000/09/xmldsig#">
  digital_signature_here
</SignatureValue>

主題

這會指定判斷提示中語句主體的原則。 它包含 NameID 專案,代表已驗證的使用者。 NameID 值是目標標識符,只會導向至令牌物件之服務提供者。 它是持久性的——可以撤銷,但永遠不會重新分配。 它也具有不透明性,因為它不會透露任何使用者資訊,也無法用作屬性查詢的識別碼。

Method 項目的 SubjectConfirmation 屬性一律設定為 urn:oasis:names:tc:SAML:2.0:cm:bearer。

<Subject>
  <NameID>Uz2Pqz1X7pxe4XLWxV9KJQ+n59d573SepSAkuYKSde8=</NameID>
  <SubjectConfirmation Method="urn:oasis:names:tc:SAML:2.0:cm:bearer">
    <SubjectConfirmationData InResponseTo="id758d0ef385634593a77bdf7e632984b6" NotOnOrAfter="2013-03-18T07:43:15.144Z" Recipient="https://contoso.com/identity/inboundsso.aspx" />
  </SubjectConfirmation>
</Subject>

條件

這個專案會指定條件,以定義可接受的 SAML 判斷提示用法。

<Conditions NotBefore="2013-03-18T07:38:15.128Z" NotOnOrAfter="2013-03-18T08:48:15.128Z">
  <AudienceRestriction>
    <Audience>https://www.contoso.com</Audience>
  </AudienceRestriction>
</Conditions>

NotBefore 和 NotOnOrAfter 屬性會指定判斷提示有效的間隔。

  • NotBefore 屬性值等於或稍晚(小於一秒),而不是 IssueInstant 元素的 Assertion 屬性值。 Microsoft Entra ID 不會考慮它與雲端服務(服務提供者)之間的時間差,也不會在此時間內增加任何緩衝區。
  • NotOnOrAfter 屬性值比 NotBefore 屬性值晚 70 分鐘。

觀眾

這包含可識別預定物件的 URI。 Microsoft Entra ID 會將這個專案的值設定為起始登入之 IssuerAuthnRequest 元素的值。 若要評估 Audience 值,請使用應用程式註冊期間指定的 App ID URI 值。

<AudienceRestriction>
  <Audience>https://www.contoso.com</Audience>
</AudienceRestriction>

如同 Issuer 值,Audience 值必須完全符合其中一個服務主體名稱,以Microsoft Entra ID 表示雲端服務。 然而,如果元素 Issuer 的值不是 URI 值,回應 Audience 中的值就是 Issuer 以 為前綴 spn:的值。

AttributeStatement

這包含有關主體或使用者的宣告。 下列摘錄包含範例 AttributeStatement 專案。 省略號表示元素可以包含多個屬性和屬性值。

<AttributeStatement>
  <Attribute Name="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name">
    <AttributeValue>testuser@contoso.com</AttributeValue>
  </Attribute>
  <Attribute Name="http://schemas.microsoft.com/identity/claims/objectidentifier">
    <AttributeValue>3F2504E0-4F89-11D3-9A0C-0305E82C3301</AttributeValue>
  </Attribute>
  ...
</AttributeStatement>
  • 名稱宣告 - Name 屬性 (http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name) 的值是已驗證使用者的使用者主體名稱,例如 testuser@managedtenant.com。
  • ObjectIdentifier Claim - ObjectIdentifier 屬性 (http://schemas.microsoft.com/identity/claims/objectidentifier) 的值是代表 entra ID Microsoft 中已驗證使用者的目錄物件的 ObjectId。 ObjectId 是固定、全域唯一且重複使用已驗證使用者的安全標識碼。

AuthnStatement

此元素會判斷提示主體在特定時間透過特定方式進行驗證。

  • AuthnInstant 屬性會指定使用者以 Microsoft Entra 識別碼進行驗證的時間。
  • AuthnContext 元素會指定用來驗證使用者的驗證內容。
<AuthnStatement AuthnInstant="2013-03-18T07:33:56.000Z" SessionIndex="_bf9c623d-cc20-407a-9a59-c2d0aee84d12">
  <AuthnContext>
    <AuthnContextClassRef>urn:oasis:names:tc:SAML:2.0:ac:classes:Password</AuthnContextClassRef>
  </AuthnContext>
</AuthnStatement>

該 AuthnContextClassRef 數值反映使用者用於認證的方法。 若使用者使用多種方法驗證,則最強方法會反映在 AuthnContextClassRef。 下表列出 AuthnContextClassRef Microsoft Entra ID 為每種認證方法傳送的類別名稱。 其完整值為 urn:oasis:names:tc:SAML:2.0:ac:classes:<className>。

Microsoft Entra 驗證方法 AuthnContextClassRef 級別名稱 描述
Password Password 使用者用使用者名稱和密碼進行認證。
Microsoft驗證器推送 MobileOneFactorUnregistered,或 MobileTwoFactorContract 當其他因子也完成時 在 Microsoft Authenticator 中進行推播通知核准。 當方法貢獻多重驗證時,會傳送雙因子類別。
Microsoft Authenticator TOTP TimeSyncToken 由 Microsoft Authenticator 產生的時間基礎一次性密碼(TOTP)。
硬體身份驗證 OATH 憑證 TimeSyncToken 由硬體 OATH 代幣產生的時間基礎一次性通行碼。
手機登入(無密碼驗證器) MobileTwoFactorContract Microsoft Authenticator 已批准無密碼手機登入。
SMS MobileOneFactorUnregistered,或 MobileTwoFactorContract 當其他因子也完成時 一次性密碼以簡訊傳送。
通話 Telephony,或 MobileTwoFactorContract 當其他因子也完成時 透過語音電話獲得批准。
Email MobileOneFactorUnregistered,或 MobileTwoFactorContract 當其他因子也完成時 一次性密碼以電子郵件傳送。
FIDO2 安全金鑰(抗釣魚多重身份驗證) SmartcardPKI 一組 FIDO2 安全金鑰,以智慧卡支持的憑證報告,並附有私鑰與 PIN。
通行金鑰 - 裝置綁定(抗釣魚多重認證) SmartcardPKI 一個裝置綁定的通行金鑰。
通行金鑰 - 同步(抗釣魚多重認證) SoftwarePKI 一個同步通行金鑰,報告為軟體基礎的 PKI 憑證。
Windows Hello 企業版(防釣魚多重驗證) SmartcardPKI Windows Hello 企業版。
基於憑證的認證(多因素集體行動的抗釣魚多重驗證) SmartcardPKI 作為多重影像學(MFA)使用時; X509 對於單因子 CBA 來說 基於憑證的認證(CBA)。
臨時存取密碼 (TAP) Unspecified 臨時通行證。
Windows 整合認證(Kerberos) Kerberos Windows 整合認證。
基於裝置的 X509 認證 X509 裝置上的憑證證明裝置的身份

authnmethodreferences

此元素會判斷提示主體在特定時間透過特定方式進行驗證。 此資訊可在申請聲明區提供,供應用程式使用並驗證主體是否使用密碼或更強的認證方式(如多重身份驗證或通行金鑰)進行驗證。

  • 該 authnmethodsreferences 屬性指定使用者使用 Microsoft Entra ID 進行認證的方式。
  • http://schemas.microsoft.com/ws/2008/06/identity/authenticationmethod/password理賠值會指定使用者已使用 Entra ID 進行使用者名稱與密碼驗證。
  • http://schemas.microsoft.com/claims/multipleauthn理賠值會指定使用者已輸入使用者名稱和密碼,並執行多重驗證,導致多重驗證。
  <Attribute Name="http://schemas.microsoft.com/claims/authnmethodsreferences">
              <AttributeValue>http://schemas.microsoft.com/ws/2008/06/identity/authenticationmethod/password</AttributeValue>
              <AttributeValue>http://schemas.microsoft.com/claims/multipleauthn</AttributeValue>
  </Attribute>

下表列出 authnmethodsreferences Microsoft Entra ID 對每種認證方法所傳送的數值。 每個值都以http://schemas.microsoft.com/ws/2008/06/identity/authenticationmethod/<value>命名空間為 輸出,唯獨 multipleauthn,該值以 形式輸出。http://schemas.microsoft.com/claims/multipleauthn multipleauthn該數值僅在使用者完成多重驗證(MFA)時納入。

Microsoft Entra 驗證方法 authnmethodsreferences 數值 描述
Password password 使用者用使用者名稱和密碼進行認證。
Microsoft驗證器推送 rsa,加上 multipleauthn 當MFA完成時還有其他因素 在 Microsoft Authenticator 中進行推播通知核准。
Microsoft Authenticator TOTP otp,加上 multipleauthn 當MFA完成時還有其他因素 來自 Microsoft Authenticator 的基於時間的一次性密碼(TOTP)。
硬體身份驗證 OATH 憑證 otp,加上 multipleauthn 當MFA完成時還有其他因素 一次性的 OATH 憑證密碼。
手機登入(無密碼驗證器) swk,multipleauthn 無密碼手機登入,並以軟體金鑰報告。
SMS otp,加上 multipleauthn 當MFA完成時還有其他因素 一次性密碼以簡訊傳送。
通話 otp,加上 multipleauthn 當MFA完成時還有其他因素 透過語音電話獲得批准。
Email otp,加上 multipleauthn 當MFA完成時還有其他因素 一次性密碼以電子郵件傳送。
FIDO2 安全金鑰(抗釣魚多重身份驗證) fido,multipleauthn FIDO2 安全性金鑰。
通行金鑰 - 裝置綁定(抗釣魚多重認證) fido,multipleauthn 一個裝置綁定的通行金鑰。
通行金鑰 - 同步(抗釣魚多重認證) fido,multipleauthn 一個同步通行金鑰。
Windows Hello 企業版(防釣魚多重驗證) hwk,multipleauthn Windows Hello 企業版,報告為硬體綁定金鑰。
基於憑證的認證(多因素集體行動的抗釣魚多重驗證) x509,加 multipleauthn (多因子CBA預設,或單因子CBA時MFA已完成其他因子) 基於憑證的認證。
臨時存取密碼 (TAP) otp,multipleauthn 臨時通行證。
Windows 整合認證(Kerberos) wia Windows 整合認證。
基於裝置的 X509 認證 x509 裝置上的憑證證明裝置的身份

Microsoft在索amr賠中同時包含x509單因素 Certificate-Based 認證(CBA)及基於裝置的X.509認證。 然而,僅僅存在 x509 並不符合抗釣魚多重認證(PRMFA)。 為符合 PRMFA 要求,使用者還需完成額外的多重驗證因子,該因素會在認證情境中反映於其他認證方法指標中。

注意

amr Salesforce應用程式預設會收到理賠,因此這些應用程式不需要設定變更。 對於所有其他 SAML 應用程式,應用程式管理員必須將附加屬性amr的選填include_granular_amr權利要求加入應用程式註冊,才能請求 AMR 權利要求。 multipleauthn且mfa值僅在使用者完成多重驗證(MFA)後才會發出。

注意

Microsoft Entra ID 正在推出更細緻的 AMR 值,取代 otp SAML 與 OIDC v2.0 令牌:Microsoft Authenticator TOTP 發送totp、硬體 OATH 令牌hotp、SMS 發送sms、電話發送tel、電子郵件 OTP 發送emailotp,以及臨時存取通行證 tap。