Forum Discussion
How does the Sharepoint phone App handle redirects?
Hey Pilen!
I totally get where you're coming from with this issue, it’s one of those classic "works everywhere except in the app" situations. I’ve pulled together some resources that should help you dive deeper into how the SharePoint app handles redirects, cookies, and how SAML flows work with F5 and Entra ID. Hopefully, these give you some more insight into what’s going wrong.
Helpful Resources to Check Out:
F5 Bug Tracker – SAML Issues with SharePoint
There’s an issue documented where SAML redirects fail when SharePoint is accessed through F5’s portal. It sounds like it could be pretty relevant to your setup:
→ https://cdn.f5.com/product/bugtracker/ID551225.html
Stack Overflow Discussion: Redirects and Cookies in WebView
This thread talks about WebViews (the thing SharePoint’s mobile app uses) and how they sometimes fail to handle 302 redirects and cookies properly. Could be exactly why the redirect isn’t working in your case:
→ https://stackoverflow.com/questions/44576468/when-redirect-with-code-302-wkwebview-cannot-set-cookie
Hope this helps!
- pilenApr 14, 2025Copper Contributor
Hello Ebol19
Thank you so much for your reply.
First off the BugID I'm afraid does not match. We are using a newer version and this is when you open SharePoint through F5 itself. In our case the sharepoint app is simply redirecting us to an external resource that happens to be behind an F5 device with a SAML Auth Agent with Microsoft EntraID as the IdP.
The other link was kind of interesting though. It led me to some new thoughts and resources that might be able to handle this. With the help of ChatGPT it suggested that it might a problem handling a 302 and a 303 might be better. So perhaps I can send that back instead or I can perhaps trigger the Sharepoint app to open the resource in local browser instead.
Is that something I can do on the Sharepoint side? Create links that opens "outside" of the app by the default browser? Because I believe that would be an acceptable solution for the customer and they just need to swap back to the app when they are done using that application.
I have a few alternatives to select from on the F5 but having native support from the app would be a safer bet.
Thanks again so far for the assistance!