Login autodirect not working

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Newest AIO
  • Operating system and version (e.g., Ubuntu 24.04):
    • Docker for Windows
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • NPM
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO

Log entries

Nothing relevant

Problem

I’m trying to login to my NC instance via Authentik’s authentication automatically, i.e. without having to press a button. Authentik works just fine with NC, but the login page won’t start the process automatically, I have to press the button…

I tried:

‘oidc_login_auto_redirect’ => true,

and

‘social_login_auto_redirect’ => true,

and both don’t work. I’m using OIDC connect.

Am I missing something obvious or does it simply not work?

I don’t use the Social Login app, so I can’t give a direct answer to your question, but I’m currently playing around with OIDC as well.

On the Nextcloud side I’m using the user_oidc app instead of Social Login. It looks more “official” to me, and it’s also the app referenced in the official documentation here.

Automatic login works for me after setting the following configuration parameter via occ.

occ config:app:set --type=string --value=0 user_oidc allow_multiple_user_backends

See also here: https://github.com/nextcloud/user_oidc#disable-other-login-methods

Thanks, that actually worked

On docker for windows I used this command via Powershell instead:

docker exec -u www-data -it nextcloud-aio-nextcloud php occ config:app:set user_oidc allow_multiple_user_backends --type=string --value=0

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.