Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forget Subwiki login, always redirect login to Main Wiki only #15

Open
michaelcharleswood opened this issue Aug 26, 2022 · 3 comments
Open
Assignees

Comments

@michaelcharleswood
Copy link

Setting assigned getting the Sub Wiki login to work, knowing that the Main Wiki login is great, can I make a suggestion to put a simple setting in, say in the Main Wiki Admin Console or in the xwiki.cfg to say something like:

XWiki.LoginPage=MainWikiOnly
XWiki.LoginPage=MainAndSubWikis

This would be so great, until the Sub Wiki login simple works with Azure AD atleast we can get people signed in, even if they simple land at the Main Wiki login and land at the home page there. I honestly could not careless if this happens rather then they land at the direct link they are trying to go to.

@lucaa
Copy link

lucaa commented Oct 12, 2022

@michaelcharleswood so, if I understand correctly, what you would need (as a functional result) is the following:

  • install azure AD authentication only one time
  • enable azure login & configure the authentication parameters only one time (on the main wiki)
  • when a user arrives on a page of a subwiki and they need to login, they get the azure login option and they can go through with the authentication using their Azure AD credentials.

Is this correct?

(let's forget about how it could be implemented for now, let's just agree that this is what you would need to happen, with a stress on the second point and the need to only configure authentication params once, on the main wiki)

@slauriere
Copy link

In case it can be helpful, the following setting worked for me (with XWiki 14.4.5 and Azure AD SSO 1.5.5):

  • Install extension at farm level, configure tenant / client / secret on main wiki only
  • Leave Azure AD redirect URL blank in main wiki and subwikis

When accessing a subwiki and logging in via Azure AD, I get redirected to the subwiki home page, as wanted.

@snazare snazare self-assigned this Feb 4, 2023
@slauriere
Copy link

When accessing a subwiki and logging in via Azure AD, I get redirected to the subwiki home page, as wanted.

This behaviour was the one I was acutally aiming at but not what this issue is about so please discard my comment above. Also I was referring to page subwiki:Main.WebHome, not to the actual subwiki home page, if configured differently. Thanks @snazare for pointing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants