intersimone999 / silos-apps

26 stars 8 forks source link

Not all office365 apps have correct scope #16

Open mirek186 opened 1 year ago

mirek186 commented 1 year ago

When using office365 I've noticed when I switched from Outlook app to SharePoint, I couldn't come back to it with silo://outlook.office.com/mail/ URL opening in my browser. I figured it out that you get "silo://" URL if you go outside the scope, and it sure thing when checked /usr/share/silos-apps/apps/office365.qtws, Microsoft added a few extra domains which were not in the scope.

So a quick fix for all 365 apps was to update the scope to something like this:

        "scope": ["https?:\\/\\/.*\\.office\\.com\\/.*", "https?:\\/\\/teams\\.microsoft\\.com\\/.*", "https?:\\/\\/.*\\.microsoft365\\.com\\/.*", "https?:\\/\\/.*\\.microsoftonline\\.com\\/.*", "https?:\\/\\/.*\\.sharepoint\\.com\\/.*", "https?:\\/\\/.*\\.onenote\\.com\\/.*", "https?:\\/\\/1drv\\.ms\\/.*", "https?:\\/\\/onedrive\\.live\\.com\\/.*"],