Forum Discussion
How to add SharePoint Pages in a static tab with authentication?
Stijn Brouwers I knew about this workaround at the time I replied, but was asked (by Microsoft) not to share it. At the time, I flagged this thread with them to let them know it is a valid use case.
This was shared with MVP's for internal testing, as this was not considered stable nor supported. Haven't heard that this has changed. Wajeed-MSFT is from MS, so I guess we can use it now...
Maybe Jethro Seghers / Jethro SEGHERS can share more?
YannickReekmans Hi, I have the similar problem to authenticate a user when opening a SharePoint Page in a static tab. In my specific scenario, I trying to build a multi-tenant app that can lead user to the SharePoint Page of their tenant, that means user from different tenant will be led to different SharePoint Page of their own tenant.
https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/creating-team-manifest-manually-for-webpart but it won't work in my case, because the URL of the SharePoint Page might differ from different tenant users.
Do you have any idea to solve this problem?
- Mar 04, 2021@chengji If you check the example manifest on the page you link to, they use the {teamSiteDomain} and {teamSitePath} tokens. While the docs aren't clear about this, you can leave them as is in your manifest and they will be translated automatically when your app is run in Teams.
By using these tokens you can make your app multi tenant.- chengjieMar 05, 2021Copper ContributorThanks! It works!
I just leave the "webApplicationInfo" as is in my App Manifest file, and SSO will work silently when user open an SharePoint Page in a tab.
// manifest.json
{
...
"webApplicationInfo": {
"resource": "https://{teamSiteDomain}",
"id": "00000003-0000-0ff1-ce00-000000000000"
}
}- Mar 05, 2021Great to hear that, and thanks for letting me know!