Forum Discussion
robby_o365
Jul 11, 2019Copper Contributor
How to add SharePoint Pages in a static tab with authentication?
Hello, I have a huge problem. My client is using Teams as their central communication tool. There are no SharePoint structures. But integrate some public information like training, news etc. we w...
chengjie
Mar 04, 2021Copper Contributor
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.
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!