Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Nextcloud and Keycloak

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 550 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sensewolf
      last edited by

      Hi,

      I am running Nextcloud behind pfSense/haproxy and this is working fine.

      Now I am trying to integrate Nextcloud with Keycloak. I have set up a realm, a client and a test user. I have configured Nextcloud to redirect to Keycloak for login and Keycloak to re-redirect afterwards back to Nextcloud.

      However, it only works up to the redirection to Keycloak where I can authenticate as the test user. Then it tries to re-redirect back to Nextcloud but I keep getting a "504 Gateway Timeout".

      So for some reason the re-redirection fails.

      And I am suspecting my settings for Nextcloud and/or Keycloak as backends to be the culprit.

      Does anyone here have a similar configuration and could give me a pointer?

      Many thanks.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.