Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Nextcloud
  3. Nextcloud OIDC integration

Nextcloud OIDC integration

Scheduled Pinned Locked Moved Nextcloud
118 Posts 12 Posters 17.5k Views 11 Watching
  • 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.
  • nebulonN Offline
    nebulonN Offline
    nebulon
    Staff
    wrote on last edited by
    #30

    I meant to check if your Nextcloud is actually using Cloudron usermanagement or not, since your statements are contradicting between LDAP and dashboard visibility. You can also run env | grep LDAP in the webterminal into that nextcloud app instance. If you see LDAP related environment variables, it means you are using Cloudron usermanagement.

    1 Reply Last reply
    1
    • firmansiF Offline
      firmansiF Offline
      firmansi
      wrote on last edited by
      #31

      @nebulon i've checked with ENV | grep LDAP, and no Cloudron User Management. How can i possible switch to Nextcloud with User Management?

      1 Reply Last reply
      0
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by joseph
        #32

        This is only an installation choice, so if you have installed it without, you would have to install a fresh Nextcloud and import the data for each user. You can also try importing the current app's backup into a new installation with the import app backup feature (in the Backups view).

        1 Reply Last reply
        1
        • firmansiF Offline
          firmansiF Offline
          firmansi
          wrote on last edited by
          #33

          @nebulon thanks for the advice

          1 Reply Last reply
          0
          • firmansiF Offline
            firmansiF Offline
            firmansi
            wrote on last edited by firmansi
            #34

            Just for input, there might be some like me using Nextcloud in cloudron who don't use Cloudron User Management from the beginning, I think for the next update, still give space to those like mine because last time I did the latest update, I can't login with user credential set up in User Directory Cloudron, only with admin credential

            1 Reply Last reply
            0
            • firmansiF Offline
              firmansiF Offline
              firmansi
              wrote on last edited by firmansi
              #35

              @nebulon By the way I have tried with new fresh installation, but always said Could not update the provider: The discovery endpoint is not reachable.
              in Nextcloud. My current cofiguration for User Directory is with LDAP Server activated already

              J 1 Reply Last reply
              0
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #36

                If the app is installed without Cloudron usermanagement, and update will not touch upon the authentication settings, so there is no change for those, the package code simply does not change anything related to users in such a case. So I can't imagine how this has affected your instance.

                Also I can't quite make out what you mean with LDAP Server activated already in this context. On Cloudron the LDAP server is always active for apps, but not every app will be setup to use it.

                1 Reply Last reply
                0
                • firmansiF firmansi

                  @nebulon By the way I have tried with new fresh installation, but always said Could not update the provider: The discovery endpoint is not reachable.
                  in Nextcloud. My current cofiguration for User Directory is with LDAP Server activated already

                  J Offline
                  J Offline
                  joseph
                  Staff
                  wrote on last edited by
                  #37

                  @firmansi said in Nextcloud OIDC integration:

                  My current cofiguration for User Directory is with LDAP Server activated already

                  Note: This LDAP server is for apps external to Cloudron. This is not needed to be enabled for apps installed in Cloudron itself.

                  1 Reply Last reply
                  0
                  • firmansiF Offline
                    firmansiF Offline
                    firmansi
                    wrote on last edited by
                    #38

                    @nebulon Thanks for the info, but I also set up in the same Cloudron server, fresh Nexcloud Installation, but I experience error connecting to openID with message "Could not update the provider: The discovery endpoint is not reachable.
                    in Nextcloud" , please let me know what i need to check in the Cloudron regarding to that error message

                    jdaviescoatesJ 1 Reply Last reply
                    0
                    • firmansiF firmansi

                      @nebulon Thanks for the info, but I also set up in the same Cloudron server, fresh Nexcloud Installation, but I experience error connecting to openID with message "Could not update the provider: The discovery endpoint is not reachable.
                      in Nextcloud" , please let me know what i need to check in the Cloudron regarding to that error message

                      jdaviescoatesJ Offline
                      jdaviescoatesJ Offline
                      jdaviescoates
                      wrote on last edited by
                      #39

                      @firmansi @andreasdueren has also hit that issue, see https://forum.cloudron.io/post/100656

                      Works fine for me. Are you using Cloudflare, or on a home network or something?

                      I use Cloudron with Gandi & Hetzner

                      firmansiF 1 Reply Last reply
                      0
                      • jdaviescoatesJ jdaviescoates

                        @firmansi @andreasdueren has also hit that issue, see https://forum.cloudron.io/post/100656

                        Works fine for me. Are you using Cloudflare, or on a home network or something?

                        firmansiF Offline
                        firmansiF Offline
                        firmansi
                        wrote on last edited by
                        #40

                        @jdaviescoates No,I use AWS, and I am aware about proxy thing, as I point out that I already use this Cloudron as central user directory LDAP server for other servers outside my Cloudron

                        I take a look the discussion, and it seems it does not resolve

                        J 1 Reply Last reply
                        0
                        • jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote on last edited by jdaviescoates
                          #41

                          PS it would've been nice if when adding this you'd also updated the manifest to use the branding on the button too 😉

                          image.png

                          Like e.g. you've already done on e.g. PeerTube:

                          12cbd885-b06d-4422-a008-6f95031d0b5b-image.png

                          I use Cloudron with Gandi & Hetzner

                          girishG 1 Reply Last reply
                          1
                          • firmansiF firmansi

                            @jdaviescoates No,I use AWS, and I am aware about proxy thing, as I point out that I already use this Cloudron as central user directory LDAP server for other servers outside my Cloudron

                            I take a look the discussion, and it seems it does not resolve

                            J Offline
                            J Offline
                            joseph
                            Staff
                            wrote on last edited by
                            #42

                            @firmansi Wanted to extend my invitation in the other thread to you too. If you can reach out to support@cloudron.io and we can debug your install as to why we get this error, it will be great.

                            firmansiF 1 Reply Last reply
                            1
                            • jdaviescoatesJ jdaviescoates

                              PS it would've been nice if when adding this you'd also updated the manifest to use the branding on the button too 😉

                              image.png

                              Like e.g. you've already done on e.g. PeerTube:

                              12cbd885-b06d-4422-a008-6f95031d0b5b-image.png

                              girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote on last edited by
                              #43

                              @jdaviescoates the plugin doesn't support setting the button name unfortunately. we have to raise issues for these upstream. For example, in the OIDC settings dialog which you posted earlier, you can see that the name comes from the provider type and there is no explicit label configuration. If you open a bug report upstream, please link here.

                              jdaviescoatesJ 1 Reply Last reply
                              1
                              • J joseph

                                @firmansi Wanted to extend my invitation in the other thread to you too. If you can reach out to support@cloudron.io and we can debug your install as to why we get this error, it will be great.

                                firmansiF Offline
                                firmansiF Offline
                                firmansi
                                wrote on last edited by firmansi
                                #44

                                @joseph At this moment, this issue not really bugging us since we still able to use Nextcloud as well as User Directory in production scenario without any problem, but yes I will write email to support later on.

                                One thing that really bugging me, even I know it's possible or not, I clearly remember that the first time we set up Nextcloud then the user management is set to be managed through Cloudron, and till today, we never create new user within Nextcloud User Management.

                                If I am not mistaken, this issue happened when we upgraded from NC 7 to 8 quite a long time ago

                                1 Reply Last reply
                                0
                                • firmansiF Offline
                                  firmansiF Offline
                                  firmansi
                                  wrote on last edited by
                                  #45

                                  @joseph I have tried to test the openid server with curl https://my.domain.com/.well-known/openid-configuration from the Nextcloud terminal, and it didnt give any response I have upgraded to the latest Cloudron 8.2.3

                                  I also try to install new cloudron server with new NC just for testing, and it gives response with curl https://my.domain.com/.well-known/openid-configuration

                                  1 Reply Last reply
                                  0
                                  • girishG girish

                                    @jdaviescoates the plugin doesn't support setting the button name unfortunately. we have to raise issues for these upstream. For example, in the OIDC settings dialog which you posted earlier, you can see that the name comes from the provider type and there is no explicit label configuration. If you open a bug report upstream, please link here.

                                    jdaviescoatesJ Offline
                                    jdaviescoatesJ Offline
                                    jdaviescoates
                                    wrote on last edited by
                                    #46

                                    @girish said in Nextcloud OIDC integration:

                                    For example, in the OIDC settings dialog which you posted earlier, you can see that the name comes from the provider type and there is no explicit label configuration. If you open a bug report upstream, please link here.

                                    Aha, I see. I think I will report this upstream.

                                    Are you able to share what the missing OIDC field name/ value is actually called that e.g. the PeerTube OIDC plugin is picking up but the Nextcloud one isn't? Thanks!

                                    I use Cloudron with Gandi & Hetzner

                                    1 Reply Last reply
                                    0
                                    • andreasduerenA Offline
                                      andreasduerenA Offline
                                      andreasdueren
                                      wrote on last edited by
                                      #47

                                      Just checked the logs (they are absolutely full):

                                      LocalServerException
                                      Host "127.0.1.1" (my.tld.onl:80) violates local access rules
                                      Could not reach the provider at URL https://my.tld.onl/openid/.well-known/openid-configuration
                                      
                                      andreasduerenA 2 Replies Last reply
                                      0
                                      • andreasduerenA andreasdueren

                                        Just checked the logs (they are absolutely full):

                                        LocalServerException
                                        Host "127.0.1.1" (my.tld.onl:80) violates local access rules
                                        Could not reach the provider at URL https://my.tld.onl/openid/.well-known/openid-configuration
                                        
                                        andreasduerenA Offline
                                        andreasduerenA Offline
                                        andreasdueren
                                        wrote on last edited by
                                        #48

                                        @andreasdueren said in Nextcloud OIDC integration:

                                        https://my.tld.onl/openid/.well-known/openid-configuration

                                        From the terminal, curl https://my.tld.onl/openid/.well-known/openid-configuration works but setting up a separate openID provider (or changing the pre-setup one) will result in this error:

                                        Screenshot 2025-01-30 at 11.10.12.png

                                        andreasduerenA 1 Reply Last reply
                                        0
                                        • andreasduerenA andreasdueren

                                          @andreasdueren said in Nextcloud OIDC integration:

                                          https://my.tld.onl/openid/.well-known/openid-configuration

                                          From the terminal, curl https://my.tld.onl/openid/.well-known/openid-configuration works but setting up a separate openID provider (or changing the pre-setup one) will result in this error:

                                          Screenshot 2025-01-30 at 11.10.12.png

                                          andreasduerenA Offline
                                          andreasduerenA Offline
                                          andreasdueren
                                          wrote on last edited by
                                          #49

                                          @andreasdueren Not that adding 127.0.1.1 to the proxies did the trick but rebooting the app will reset this section in the config file.

                                          J 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search