Home

How to add SharePoint Pages in a static tab with authentication?

%3CLINGO-SUB%20id%3D%22lingo-sub-750152%22%20slang%3D%22en-US%22%3EHow%20to%20add%20SharePoint%20Pages%20in%20a%20static%20tab%20with%20authentication%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-750152%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20huge%20problem.%20My%20client%20is%20using%20Teams%20as%20their%20central%20communication%20tool.%20There%20are%20no%20SharePoint%20structures.%20But%20integrate%20some%20public%20information%20like%20training%2C%20news%20etc.%20we%20want%20to%20integrate%20some%20SharePoint%20Pages%20in%20a%20static%20tab%20(personal%20app).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20would%20be%20the%20perfect%20solution%20to%20place%20an%20icon%20in%20the%20left%20pane%20in%20teams%20that%20leads%20to%20all%20the%20important%20resources.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20is%2C%20that%20Teams%20don't%20forward%20your%20authentication%20when%20you%20call%20a%20page%20from%20a%20tab.%20If%20the%20user%20already%20has%20a%20cookie%20it%20works.%20This%20renders%20the%20solution%20useless.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20anyone%20with%20the%20same%20problem%20or%20someone%20having%20a%20solution%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20create%20a%20hosted%20web%20page%20that%20authenticates%20the%20user%20and%20redirect%20to%20desired%20page%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20help%20on%20this%20topic%20is%20appreciated.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-750152%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-752061%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20add%20SharePoint%20Pages%20in%20a%20static%20tab%20with%20authentication%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-752061%22%20slang%3D%22en-US%22%3E%3CP%3EPlease%20refer%20these%20doc%20for%20adding%20sharepoint%20pages%20to%20teams%20tabs%20%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20title%3D%22Using%20a%20Microsoft%20Teams%20tab%20as%20a%20SharePoint%20Framework%20web%20part%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Ftabs%2Ftabs-in-sharepoint%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EUsing%20a%20Microsoft%20Teams%20tab%20as%20a%20SharePoint%20Framework%20web%20part%3C%2FA%3E%26nbsp%3Bfor%20Authentcation%20in%20Tabs%20please%20refer%20this%20doc%20here%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Fauthentication%2Fauth-flow-tab%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMicrosoft%20Teams%26nbsp%3B%20authentication%20flow%20for%20Bots%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-752177%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20add%20SharePoint%20Pages%20in%20a%20static%20tab%20with%20authentication%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-752177%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F373982%22%20target%3D%22_blank%22%3E%40robby_o365%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheck%20out%20the%20article%20for%20requirements%20for%20tab%20pages%20in%20Microsoft%20Teams.%20This%20might%20point%20you%20in%20the%20right%20direction.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Ftabs%2Ftabs-requirements%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Ftabs%2Ftabs-requirements%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20want%20to%20assume%20anything%2C%20so%20here%20is%20the%20link%20to%20Static%20Tabs%20and%20SharePoint%20webparts%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Ftabs%2Ftabs-static%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Ftabs%2Ftabs-static%3C%2FA%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Ftabs%2Ftabs-in-sharepoint%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fconcepts%2Ftabs%2Ftabs-in-sharepoint%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-753668%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20add%20SharePoint%20Pages%20in%20a%20static%20tab%20with%20authentication%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-753668%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F373982%22%20target%3D%22_blank%22%3E%40robby_o365%3C%2FA%3E%26nbsp%3BAs%20far%20as%20I%20know%2C%20there%20currently%20is%20no%20solution%20for%20this.%20If%20the%20user%20isn't%20authenticated%20in%20SharePoint%2C%20the%20personal%2Fstatic%20tab%20should%20redirect%20to%20the%20login%20screen%20and%20then%20redirect%20you%20back%20to%20your%20SharePoint%20page%20after%20login.%20Is%20this%20the%20behavior%20you%20are%20experiencing%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAll%20the%20links%2C%20while%20helpful%20when%20actually%20developing%20a%20custom%20web%20application%2C%20won't%20help%20you%20with%20pages%20that%20come%20from%20SharePoint.%20It's%20a%20known%20scenario%20but%20no%20solution%20is%20available%2C%20and%20I'm%20not%20sure%20if%20it's%20in%20the%20works.%3C%2FP%3E%3C%2FLINGO-BODY%3E
robby_o365
New Contributor

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 want to integrate some SharePoint Pages in a static tab (personal app).

 

This would be the perfect solution to place an icon in the left pane in teams that leads to all the important resources.

 

The problem is, that Teams don't forward your authentication when you call a page from a tab. If the user already has a cookie it works. This renders the solution useless.

 

Is there anyone with the same problem or someone having a solution?

 

Is it possible to create a hosted web page that authenticates the user and redirect to desired page?

 

Any help on this topic is appreciated.

3 Replies

Please refer these doc for adding sharepoint pages to teams tabs : 

Using a Microsoft Teams tab as a SharePoint Framework web part for Authentcation in Tabs please refer this doc here Microsoft Teams  authentication flow for Bots.

@robby_o365 

Check out the article for requirements for tab pages in Microsoft Teams. This might point you in the right direction. 


https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/tabs/tabs-requirements

 

I don't want to assume anything, so here is the link to Static Tabs and SharePoint webparts:

 

https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/tabs/tabs-static
https://docs.microsoft.com/en-us/microsoftteams/platform/concepts/tabs/tabs-in-sharepoint

 

@robby_o365 As far as I know, there currently is no solution for this. If the user isn't authenticated in SharePoint, the personal/static tab should redirect to the login screen and then redirect you back to your SharePoint page after login. Is this the behavior you are experiencing?

 

All the links, while helpful when actually developing a custom web application, won't help you with pages that come from SharePoint. It's a known scenario but no solution is available, and I'm not sure if it's in the works.

Related Conversations