在本文中,您將瞭解如何整合 SAP Business Technology Platform 與 Microsoft Entra ID。 您可以將 SAP Business Technology Platform 與 Microsoft Entra ID 整合時。
- 在 Microsoft Entra 識別符中控制可存取 SAP Business Technology Platform 的人員。
- 讓使用者使用其Microsoft Entra 帳戶自動登入 SAP Business Technology Platform。
- 在一個中央位置管理您的帳戶。
- 將 Microsoft Entra 中的使用者指派給 SAP Business 技術平臺角色。
先決條件
本文中所述的案例假設您已經具備下列必要條件:
- 具有有效訂閱的 Microsoft Entra 用戶帳戶。 若尚未有帳戶,可以免費建立帳戶。
- 下列其中一個角色:
- 支援單一登錄(SSO)的 SAP Business Technology Platform 訂閱。
重要
您必須部署自己的應用程式,或訂閱 SAP Business Technology Platform 帳戶上的應用程式,以測試單一登錄。 在本文中,應用程式會部署在帳戶中。
案例描述
在本文中,您會在測試環境中設定及測試Microsoft Entra 單一登錄。
- SAP Business Technology Platform 支援由 SP 發起的 SSO。
從圖庫新增 SAP Business Technology Platform
若要設定將 SAP Business Technology Platform 整合到 Microsoft Entra ID 中,您需要從資源庫將 SAP Business Technology Platform 新增到受控 SaaS 應用程式清單。
- 以至少 雲端應用程式管理員身分登入 Microsoft Entra 系統管理中心。
- 請流覽至 Entra ID>企業應用程式>新增應用程式。
- 在 [從圖庫 新增] 區段中,於搜尋方塊中輸入 SAP Business Technology Platform。
- 從結果面板選取 [SAP Business Technology Platform],然後新增應用程式。 正在將應用程式新增至您的租戶,請稍候幾秒鐘。
或者,您也可以使用 企業應用程式設定精靈。 在此精靈中,您可以將應用程式新增至租戶,將使用者或群組新增至應用程式,指派角色,以及完成 SSO 設定。 深入瞭解Microsoft 365 精靈。
設定及測試 Microsoft Entra SSO for SAP Business Technology Platform
使用名為 B.Simon 的測試用戶,配置並測試 Microsoft Entra SSO 與 SAP Business Technology Platform 的整合。 若要讓 SSO 能夠運作,您必須建立 Microsoft Entra 使用者與 SAP Business Technology Platform 中相關使用者之間的連結關聯性。
若要設定及測試 Microsoft Entra SSO 與 SAP Business Technology Platform,請執行下列步驟:
-
設定 Microsoft Entra SSO - 讓用戶能夠使用此功能。
- 建立 Microsoft Entra 測試使用者 - 使用 Britta Simon 測試Microsoft Entra 單一登錄。
- 指派Microsoft Entra 測試使用者 - 讓 Britta Simon 能夠使用 Microsoft Entra 單一登錄。
-
設定 SAP Business Technology Platform SSO - 在應用程式端設定單一 Sign-On 設定。
- 建立 SAP Business Technology Platform 測試使用者 - 以便在 SAP Business Technology Platform 中擁有與 Britta Simon 對應的使用者,並將其連結到 Microsoft Entra 中的使用者表示。
- 測試 SSO - 確認組態是否正常運作。
設定 Microsoft Entra SSO
請遵循下列步驟來啟用 Microsoft Entra SSO。
以至少 雲端應用程式管理員身分登入 Microsoft Entra 系統管理中心。
流覽至 Entra ID>Enterprise 應用程式>SAP Business Technology Platform>單一登入。
在 [選取單一登錄方法] 頁面上,選取 [SAML]。
在 [設定使用 SAML 單一登入] 頁面上,選取 [基本 SAML 組態] 的鉛筆圖示來編輯設定。
在 [基本 SAML 組態] 區段上,輸入下列欄位的值:
一個。 在「標識符」文本框中,您可以按照下列其中一種模式,輸入 SAP Business Technology Platform 的 URL:
識別碼 https://hanatrial.ondemand.com/<instancename>
https://hana.ondemand.com/<instancename>
https://us1.hana.ondemand.com/<instancename>
https://ap1.hana.ondemand.com/<instancename>
b。 在 [回應 URL] 文本框中,輸入符合以下其中一種模式的 URL:
回復 URL https://<subdomain>.hanatrial.ondemand.com/<instancename>
https://<subdomain>.hana.ondemand.com/<instancename>
https://<subdomain>.us1.hana.ondemand.com/<instancename>
https://<subdomain>.dispatcher.us1.hana.ondemand.com/<instancename>
https://<subdomain>.ap1.hana.ondemand.com/<instancename>
https://<subdomain>.dispatcher.ap1.hana.ondemand.com/<instancename>
https://<subdomain>.dispatcher.hana.ondemand.com/<instancename>
丙. 在 [登入 URL] 文本框中,輸入使用者用來 登入 SAP Business Technology Platform 應用程式的 URL。 這是 SAP Business Technology Platform 應用程式中受保護資源的帳戶特定 URL。 URL 是以下列模式為基礎:
https://<applicationName><accountName>.<landscape host>.ondemand.com/<path_to_protected_resource>
注意
這是 SAP Business Technology Platform 應用程式中需要使用者驗證的 URL。
登入 URL https://<subdomain>.hanatrial.ondemand.com/<instancename>
https://<subdomain>.hana.ondemand.com/<instancename>
注意
這些數值不是真實的。 使用實際的標識碼、回復 URL 和登入 URL 來更新這些值。 請連絡 SAP Business Technology Platform 用戶端支援小組 以取得 Sign-On URL 和標識符。 您可以從信任管理一節取得的回復 URL,本文稍後會加以說明。
在設定 SAML 單一登入頁面上的SAML 簽署憑證區段中,選取下載,從指定選項下載聯邦中繼資料 XML,並根據需要將其儲存於您的電腦上。
建立並指派Microsoft Entra 測試使用者
請遵循 建立並指派用戶帳戶 快速入門中的指導方針,以建立名為 B.Simon 的測試用戶帳戶。
設定 SAP Business Technology Platform SSO
在不同的網頁瀏覽器視窗中,於
https://account.<landscape host>.ondemand.com/cockpit
登入 SAP Business Technology Platform Cockpit(例如:https://account.hanatrial.ondemand.com/cockpit)。選取 [信任] 索引標籤。
在 [信任管理] 區段下,於 [本機服務提供者] 中,執行下列步驟:
一個。 請選取 ,再編輯。
b。 在 組態類型中,選取 [自定義]。
丙. 本機提供者名稱,保留為預設值。 複製此值,並將其貼到 SAP Business Technology Platform Microsoft Entra 設定中的 [標識符] 字段中。
d。 若要產生 簽署金鑰 和 簽署憑證 金鑰組,請選擇 產生金鑰組。
e。 如 主體傳遞,請選擇 停用。
f。 強制驗證,請選取 [停用] 。
g。 選取 [儲存]。
儲存 本機服務提供者 設定之後,請執行下列動作以取得回復 URL:
一個。 選取 [取得元數據]以下載 SAP Business Technology Platform 元數據檔案。
b。 開啟下載的 SAP Business Technology Platform 元數據 XML 檔案,然後找出 ns3:AssertionConsumerService 標記。
丙. 複製 Location 屬性的值,然後將它貼到 SAP Business Technology Platform Microsoft Entra 設定中的 [回復 URL] 字段。
選擇 [信任識別提供者] 索引標籤,然後選取 [[新增受信任的識別提供者]。
注意
若要管理受信任的識別提供者清單,您必須在 [本機服務提供者] 區段中選擇 [自定義組態類型]。 針對 [預設組態類型],您對於 SAP ID Service 具有不可編輯和隱含的信任。 對於『無』,您沒有任何信任設定。
選取 [一般] 分頁,然後選取 [瀏覽] 以上傳下載的元數據檔案。
注意
上傳元數據檔案之後,會自動填入 單一登錄 URL、單一註銷 URL,以及自動填入 簽署憑證 的值。
選取 [屬性] 索引標籤。
在 [屬性] 索引標籤上,執行下列步驟:
一個。 選取 新增 Assertion-Based 屬性,然後新增下列基於斷言的屬性:
斷言屬性 主要屬性 http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname
名字 http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname
姓氏 http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress
電子郵件 注意
屬性的配置取決於 SCP 上應用程式的開發方式,即它們在 SAML 回應中所預期的屬性,以及它們在程式碼中以何名稱(主屬性)存取這些屬性。
b。 螢幕快照中的 預設屬性 僅供說明之用。 不需要使情境運作。
丙. 螢幕快照中顯示的 主體屬性的名稱和值 取決於應用程式的開發方式。 您的應用程式可能需要不同的對應。
斷言型群組
作為一個可選步驟,您可以設置基於斷言的 Microsoft Entra 識別提供者群組。
在 SAP Business Technology Platform 上使用群組可讓您以動態方式將一或多個使用者指派給 SAP Business Technology Platform 應用程式中的一或多個角色,由 SAML 2.0 判斷提示中的屬性值所決定。
例如,如果判斷提示包含屬性 「contract=temporary」,您可能想要將所有受影響的使用者新增至群組 「TEMPORARY」。。 群組「TEMPORARY」可能包含一或多個角色,來自 SAP Business Technology Platform 帳戶中部署的一或多個應用程式。
當您想要同時將許多使用者指派給 SAP Business Technology Platform 帳戶中的一或多個應用程式角色時,請使用判斷提示型群組。 如果您想要只將單一或少數使用者指派給特定角色,建議您直接在 SAP Business Technology Platform 駕駛艙的 [授權] 索引標籤中指派使用者。
建立 SAP Business Technology Platform 測試使用者
若要讓Microsoft Entra 用戶能夠登入 SAP Business Technology Platform,您必須將 SAP Business Technology Platform 中的角色指派給他們。
若要將角色指派給使用者,請執行下列步驟:
登入您的 SAP Business Technology Platform 駕駛艙。
執行下列動作:
一個。 選取 [授權]。
b。 選擇使用者索引標籤。
丙. 在 [使用者] 文字框中,輸入使用者的電子郵件位址。
d。 按一下 指派,將使用者指派到角色。
e。 選取 [儲存]。
測試 SSO
在本節中,您會使用下列選項來測試Microsoft Entra 單一登錄設定。
選取 測試此應用程式,該選項會重新導向至 SAP Business Technology Platform 登入 URL,您可以在此處啟動登入流程。
直接移至 SAP Business Technology Platform 登入 URL,然後從該處起始登入流程。
您可以使用Microsoft我的應用程式。 當您在 [我的應用程式] 中選取 [SAP Business Technology Platform] 圖格時,應該會自動登入您已設定 SSO 的 SAP Business Technology Platform。 如需 My Apps 的詳細資訊,請參閱 My Apps簡介。
建立 SAP Business Technology Platform 應用程式角色的群組,並將群組指派給 Business Technology Platform 角色集合
您可以建立Microsoft Entra 安全組,並將這些群組標識符對應至應用程式角色。 如需詳細資訊,請參閱 管理 SAP BTP的存取權。
相關內容
- 設定 SAP Business Technology Platform 後,您可以強制執行會話控件,以即時防止組織的敏感數據遭到外洩和滲透。 會話控制擴展自條件式存取。 瞭解如何使用適用於 Cloud Apps 的 Microsoft Defender強制執行會話控制。