SSO Users Cannot Bypass “Authentication Required” Pop-Up

Hi everyone,

we’re running a Nextcloud instance where all users log in via Single Sign-On (SSO). Generally, this works well. However, we’ve run into a major issue with the “Authentication required” popup that appears in certain situations.

Examples include:

  • Creating app passwords (e.g. for CalDAV sync)
  • Performing some admin-level actions like increasing group folder storage quotas

In these cases, Nextcloud prompts users with a modal asking them to re-enter their password. The problem: our users don’t have a Nextcloud-specific password. The password they used to log into our platform (which redirects through the SSO flow) doesn’t work here.

The only workaround we’ve found is logging out and logging in again, but even that doesn’t reliably help – for some users, the popup reappears even in a brand new session. It seems to depend on session state, but we can’t identify a clear pattern.

What we’d really like to do is disable this “Authentication required” popup altogether.

Has anyone else dealt with this or found a reliable solution?

Any advice or ideas would be much appreciated!

Thanks in advance,
Felix

What version of Nextcloud Server?
What SSO setup?

Hi, maybe something is wrong with your SSO implementation. There are protection about that use case in the code, in the backend at least. PasswordConfirmationRequired checks that the user backend may enter its password in Nextcloud.

Hi, I’m a colleague of Felix, here to chime in:

We’re currently running version Nextcloud Hub 9 (30.0.10), but the described problem has been persisting at least since Nextcloud 27.x.

We’re using the app Social Login (Version 6.0.2), using a custom OAuth2 configuration (screenshot attached), with our own Django webserver as the provider (screenshot of the OAuth userinfo endpoint output attached).

Hope this helps. Thank you for your assistance!


1 Like

Thank you, Sascha!
@smarinier @jtr do you see anything that we could change in our setup to avoid the popups?

The Social Login is missing a backend telling it can’t handle PasswordConfirmation

See by example user_oidc

=>
public function canConfirmPassword(string $uid): bool {
return false;
}