Login as superadmin when Azure oauth is enabled

I am evaluating Xwiki and I have installed it through docker. I have enabled Azure Oauth for authentication using OpenID Connect Authenticator. I have enabled superadmin user in the xwiki configuration. Now, I want to login as a superadmin. When I login, I am presented with the Microsoft login screen. I have also tried hitting http://username:password@localhost:8080/xwiki/bin/view/Main/WebHome?basicauth=1, which did not work, probably because basic authentication is not enabled.

How do I login as super user?

In theory you should be able to login with the user superadmin and the password indicated by the xwiki.superadminpassword configuration parameter.
The documentation is at https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Security#HSuperadminaccount

I don’t see a way to login as superadmin. I can only login through Microsoft user id. I cannot enter other user names

Not really sure what you mean here. Which extension are you talking about exactly ?

OpenID Connect Authenticator

You might want to take a look at https://extensions.xwiki.org/xwiki/bin/view/Extension/OpenID%20Connect/OpenID%20Connect%20Authenticator/#HBypassOpenIDConnect.

1 Like

Thanks @tmortagne

Have you solve this problem GaneshKumar?

OK, found it. Just add “/?oidc.skipped=true”