Nextcloud OAauth Authentik Ssl issue

The Basics

  • Nextcloud Server version:
    • 31
  • Operating system and version :
    • Ubuntu 24.04
  • Web server and version:
    • Apache integrated into docker image
  • Reverse proxy and version:
    • nginx proxy manager

Summary:

I installed nextcloud using the docker compose yaml provided on the github.
I want to use OAuth with Authentik using the OpenID Connect user backend app.
Adding Authentik following the guide by Authentik is no issue.
When clicking on log in with authentik it shows:
You must access Nextcloud with HTTPS to use OpenID Connect.

I have proxied nextcloud behind a nginx proxy manager with http to https redirect and a letsencrypt certificate.
Accesing the site via my domain and https shown in the browser still throws that error.

  • Please check Administrating settings->Overview for any errors or warnings
  • Please check your browser console for similar regarding http/https

We can’t be more helpful without logs and configs as requested in the support template.

Hello @Quantum_Triple,

welcome to the Nextcloud community! :handshake:

Github expamles are plain http and you should place a reverseproxy in front of the application to add https. https is a requirement for oauth2 and openidconnect

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