NOTE: This is a sampling of some content we're preparing for working with SharePoint Apps and SAML authentication. More content will be coming, and once everything is packaged up and a distribution channel determined I'll post a general announcement on the Share-n-Dipity blog.
The concept of using SAML authentication with SharePoint-hosted apps was been a painful proposition when SharePoint 2013 first shipped. The big stumbling block has been that because of the way the host names are created for SharePoint-hosted apps - each application installed gets its own unique host name - it required an identity provider that supported a wildcard reply Url. At the time SharePoint shipped, we did not have such an identity provider. Fortunately, when ADFS 3.0 came out with Windows Server 2012 R2, it included this functionality. That now enables us to configure an environment in which we can use SharePoint-hosted apps on web applications that are secured with SAML authentication. What I'm going to show here is sort of a medium level overview of what needs to be done. I'm going to attach a Word document to this post that also includes pictures at each main step along the way, so download the document to get (literally) a clearer picture of how to do each of these things. Now, here are the steps to get this working:
POWERSHELL TO CREATE SPTRUSTEDIDENTITYTOKENISSUER:
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("c:\ adfs_tokensigning.cer")
New-SPTrustedRootAuthority -Name "ADFS Token Signing Certificate" -Certificate $cert
$map = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName "EmailAddress" -SameAsIncoming
$map2 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.microsoft.com/ws/2008/06/identity/claims/role" -IncomingClaimTypeDisplayName "Role" -SameAsIncoming
$map3 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn" -IncomingClaimTypeDisplayName "UPN" -SameAsIncoming
$realm = "urn:sharepoint:spsamlapps"
$ap = New-SPTrustedIdentityTokenIssuer -Name "ADFS v3" -Description "ADFS v3" -realm $realm -ImportTrustCertificate $cert -ClaimsMappings $map,$map2,$map3 -SignInUrl "https://yourAdfsFarm.yourDomain.com/adfs/ls" -IdentifierClaim "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
POWERSHELL TO HAVE SPTRUSTEDIDENTITYTOKENISSUER USE WREPLY:
$ap = get-sptrustedidentitytokenissuer -identity "ADFS v3"
$ap.UseWReplyParameter = $true
$ap.Update()
NOTE: An important distinction in the configuration for this scenario is that, unlike when you have a second content web application use an SPTrustedIdentityTokenIssuer, you do not need to add the URI for the app’s listener web application to the ProviderRealms property of the SPTrustedIdentityTokenIssuer, nor do you need to create a second relying party in ADFS.
Hi Steve, Thank you for this. I ran into a small issue with "/_trust" as I'm receiving redirect errors. I'll report back once everything starts working. Carl http://www.carlbjohnson.com
Hi Steve, thank you for the article very useful, The link for "Steps to Configure SAML for SharePoint Hosted Apps.docx" is not working, should redirect to a document, correct?
The link for the doc should just download it to your desktop. I just tried it and it works.
Hi steve, Thanks, now is working, i don't know what happened. Great article. Kind regards,
Hi Steve, do you know of any other IDPs that support a wildcard reply Url? Is that part of a specific WS-* standard that I could reference? I'm specifically wondering about CA's Federation Services. Thanks, Martin
Hi Steve, This is really great post! However, i just wanted to clarify that this approach would work with host-named site collection and host header site collections or there are different steps for that? I would greatly appreciate your response. Thank you in advance
Tao http://dichvuketoanlongbien.com/ Rủa http://dichvuketoanlongbien.com/a2-96-dich-vu-ke-toan-tron-goi.html Thằng http://dichvuketoanlongbien.com/a2-98-dich-vu-ke-toan-thue.html Cờ http://dichvuketoanlongbien.com/a2-103-dich-vu-bao-cao-tai-chinh.html Hó http://dichvuketoanlongbien.com/a2-97-dich-vu-quyet-toan-thue.html Nào http://dichvuketoanlongbien.com/a2-114-dich-vu-ke-toan-tai-29-quan-huyen.html Soi http://dichvuketoanlongbien.com/i780-dich-vu-ke-toan-thue-tron-goi-tai-bac-ninh.html Tài http://dichvuketoanlongbien.com/i779-dich-vu-ke-toan-thue-tron-goi-tai-bac-giang.html Khoản http://dichvuketoanlongbien.com/i778-dich-vu-ke-toan-thue-tron-goi-tai-phu-tho.html Và http://dichvuketoanlongbien.com/i781-dich-vu-ke-toan-thue-tron-goi-tai-hung-yen.html Link http://dichvuketoanlongbien.com/i782-dich-vu-ke-toan-thue-tron-goi-tai-vinh-phuc.html Của http://dichvuketoanlongbien.com/i783-dich-vu-ke-toan-thue-tron-goi-tai-hai-phong.html Tao. http://www.trungtamketoan.com.vn/ Chúng http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-ha-noi.html Mày http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-tp-hcm.html Đủ http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-quang-ninh.html Trình http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-hai-duong.html Thì http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-bac-giang.html Tự http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-bac-ninh.html Đi http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-hai-phong.html Mà http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-nam-dinh.html Làm. http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-thai-binh.html Việc http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-thanh-hoa.html Gì http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-vinh-phuc.html Phải http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-hung-yen.html Rẻ http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-phu-tho.html Rách http://www.trungtamketoan.com.vn/p/trung-tam-dao-tao-ke-toan-tai-binh-duong.html Như http://www.tosvn.com Thế. http://iketoan247.blogspot.com Loại http://tailieuveketoan.blogspot.com Chó http://mauhinhnendep.blogspot.com Má. http://www.tosvn.com/search/label/Hack%20CF Tao http://www.tosvn.com/search/label/Hack%20AvatarStar Rủa http://www.tosvn.com/search/label/Hack%20Warcraft-Dota2 Những http://hocketoan360.com/category/tai-lieu-ke-toan/ Thằng http://iketoan247.blogspot.com/search/label/thong-tin-kinh-te Soi http://iketoan247.blogspot.com/search/label/tin-bai-ve-thue Tao http://hoclamketoan.edu.vn/ Sẽ http://hoclamketoan.edu.vn/category/khoa-hoc-ke-toan Tan http://hoclamketoan.edu.vn/category/dich-vu-ke-toan Cửa http://hoclamketoan.edu.vn/category/hoc-lam-ke-toan Nát http://hoclamketoan.edu.vn/category/tai-lieu-ke-toan Nhà http://hocketoan360.com/ Haha http://hocketoan360.com/category/khoa-hoc-ke-toan/ http://hocketoan360.com/category/dich-vu-ke-toan/
http://www.burberryfactorys.com/ http://www.shophandbagsonline.com/ http://www.official-coachoutlet.com/ http://www.barbour-factory.com/ http://www.burberry-outlet2014.com/ http://www.gucci-factory.com/ http://www.marcjacobsonsale.com/ http://www.mcmworldwide.ca/ http://www.guccishoes-uk.com/ http://www.kate-spades.com/ http://www.louisvuittonas.com/ http://www.lv-guccishoesfactory.com/ http://www.official-mkoutlets.com/ http://www.official-pradaoutlet.com/ http://www.michael-korsusa.net/ http://www.north-facesoutlet.com/ http://www.moncler-clearance.com/ http://www.north-faceclearance.com/ http://www.clothes-mall.com/ http://www.polo-outlets.com/ http://www.ralphlauren.so/ http://www.ralphlaurentshirts.com/ http://www.ferragamos.in.net/ http://www.longchampsoutlet.com/ http://www.abercrombiee.com/ http://www.barbour-jacketsoutlet.com/ http://www.michael--korsonline.com/ http://www.thenorthface.so/ http://www.cheapuggsbootso.com/ http://www.beatsbydreoutlet.net/ http://www.tommyhilfiger.in.net/ http://www.ralphslauren.co.uk/ http://www.michaelkors.so/ http://www.oakleyssunglassoutlet.com/ http://www.warm-boots.com/ http://www.tory-burches.com/ http://www.woolrich-clearance.com/ http://www.tommy-hilfigeroutlet.com/ http://www.uggboots-factory.com/ http://www.official-northfaceoutlet.com/ http://www.nike-jordanshoes.com/ http://www.monsterbeatsbydres.net/ http://www.canada-gooser.com/ http://www.bestcustomsonline.com/ http://coach.mischristmas.com/ http://www.coach-blackfriday2014.com/ http://www.coachccoachoutlet.com/ http://www.coach-clearance.com/ http://www.coach-factories.net/ http://www.louisvuittonsas.com/ http://www.coach-factorysoutlet.com/ http://www.coachlosangeles.com/ http://www.coachoutletstates.com/ http://www.coach-pursesoutlets.com/ http://www.hermes-outletonline.com/ http://www.misblackfriday.com/ http://www.mischristmas.com/ http://www.mmoncler-outlet.com/ http://www.newoutletonlinemall.com/ http://www.ralphlaurenepolo.com/ http://www.zxcoachoutlet.com/ http://www.embereso.com/ http://www.varmoweuts.com/ http://www.bootiexew.com/ http://www.mistuesday.com/ http://www.towednesday.com/