Link Search Menu Expand Document XAuth
文档
使用指南 集成应用 开发者 Menu
Office365
market-intro
1
在XAuth中添加SAML应用
新建SAML应用
2
配置Office365与XAuth
配置Office365参数
3
在XAuth中为用户授权
将应用授权至 用户、用户组
4
体验登录
使用XAuth登录Office365

配置Office365与XAuth

Office365的配置主要通过AzureAD来进行, 通过配置与AzureAD的联邦认证实现Office365的单点登录

Office365 可通过标准的SAML协议来进行对接,以下为配置过程

参考:https://learn.microsoft.com/zh-cn/azure/active-directory/hybrid/how-to-connect-fed-saml-idp

AzureAD配置自定义域名

使用管理员登录 https://portal.azure.com/

添加自定义域名,添加后需要通过DNS解析进行验证,验证通过后可继续下一步操作

  1. 配置AuzureAD的联邦认证

条件:Window操作系统,安装Powershell

Install-Module -Name MSOnline

Connect-MsolService

输入该命令后,会弹出登录框,输入管理员用户名密码

$ dom = "cipherchina.cn"
$ BrandName = "XAuth SAML 2.0 IDP"
$ LogOnUrl = "https://cipherchina007.xauth.cloud/saml/login/e1a08d96ca244600937ca77771010c55/sso" 
$ LogOffUrl = "https://cipherchina007.xauth.cloud/saml/login/e1a08d96ca244600937ca77771010c55/logout" 
$ MyURI = "https://cipherchina007.xauth.cloud/saml/login/e1a08d96ca244600937ca77771010c55" 
$ MySigningCert = "**MIIDbD略.....V0w==**"
$ Protocol = "SAMLP" 
Set-MsolDomainAuthentication -DomainName $dom -FederationBrandName $BrandName
-Authentication Federated -PassiveLogOnUri $LogOnUrl -SigningCertificate $MySigningCert 
-IssuerUri $MyURI -LogOffUri $LogOffUrl -PreferredAuthenticationProtocol $Protocol
 Get-MsolDomainFederationSettings -DomainName cipherchina.cn
Set-MsolDomainAuthentication -DomainName  cipherchina.cn -Authentication Managed
New-MsolUser -UserPrincipalName demo@cipherchina.cn -ImmutableId 13900012345 -DisplayName "demo"

创建一个用户,用于测试单点登录,其中ImmutableId为唯一标识,这里设置为手机号。

如果是手机号,则需要在XAuth中,配置相应的映射关系。

返回列表
上一步下一步