xwikisas / application-office365

Office365 integration
2 stars 2 forks source link

Accessing a page with a office365 macro will cause a login redirect #22

Open oanalavinia opened 1 year ago

oanalavinia commented 1 year ago

Steps to reproduce while logged in with an admin user:

  1. Go a page, let's say Sandbox.TestPage1
  2. Edit it, add a {{office365/}} macro call and save it
  3. Access the page in view mode

Expected result: The macro works or an error message is displayed in case of problems. Actual result: The page is redirected to the microsoft login page

I tested on XWiki 11.10 and 14.4.7, with Office365 1.10 and Microsoft Azure Active Directory Single Sign-On 1.5.7

oanalavinia commented 1 year ago

In case the office365 macro call is actually added on the home page Main, it will cause problems to the XWiki login. After you click on the login button, a redirect is done automatically to the home page and this will now cause another redirect to the microsoft login page. An workaround for this is to try to access a different page and only then to try the login, since the redirect will be done to this page instead of the home page.