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
111 Posts 10 Posters 8.0k Views 10 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.
    • girishG girish

      @jdaviescoates I have published a new package with groups disabled. Can you please check?

      @avatar1024 OIDC Group Sync has to be configured by the package installer just like LDAP Group Sync. Cloudron only exposes groups but does not provision the app (it's not possible for Cloudron to know what group should be what).

      @firmansi we can't support both LDAP and OIDC in the long run. But on platform level, we already decided to switch to OIDC for all apps. This is more secure and auditable. I think you can probably wait for the upgrade anyway till all the issues are ironed out. Most of the apps that support OIDC have already been switched to OIDC from LDAP.

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

      @girish said in Nextcloud OIDC integration:

      @jdaviescoates I have published a new package with groups disabled. Can you please check?

      The existing test install was still broken after the update, i.e. the groups were still there and it still removed my user from the admin group.

      A new test install works! No groups and user stays in the admin group once added.

      I use Cloudron with Gandi & Hetzner

      1 Reply Last reply
      2
      • girishG girish

        @jdaviescoates I have published a new package with groups disabled. Can you please check?

        @avatar1024 OIDC Group Sync has to be configured by the package installer just like LDAP Group Sync. Cloudron only exposes groups but does not provision the app (it's not possible for Cloudron to know what group should be what).

        @firmansi we can't support both LDAP and OIDC in the long run. But on platform level, we already decided to switch to OIDC for all apps. This is more secure and auditable. I think you can probably wait for the upgrade anyway till all the issues are ironed out. Most of the apps that support OIDC have already been switched to OIDC from LDAP.

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

        @girish said in Nextcloud OIDC integration:

        @avatar1024 OIDC Group Sync has to be configured by the package installer just like LDAP Group Sync.

        Just out of interest, how is this done?

        I use Cloudron with Gandi & Hetzner

        girishG 1 Reply Last reply
        1
        • jdaviescoatesJ jdaviescoates

          @girish said in Nextcloud OIDC integration:

          @avatar1024 OIDC Group Sync has to be configured by the package installer just like LDAP Group Sync.

          Just out of interest, how is this done?

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

          @jdaviescoates there is a checkbox in the UI to enable it . I forget the exact text but it's inside the OIDC app settings.

          jdaviescoatesJ 1 Reply Last reply
          2
          • girishG girish

            @firmansi said in Nextcloud OIDC integration:

            @girish I have updated to the latest version and nothing appears in env | grep CLOUDRON_OIDC

            So, I think you have installed nextcloud without Cloudron user management to start with. In that case, this change won't affect you at all. Just to double check: If you go into the app configuration -> Access Control, I guess you see Dashboard Visibility instead of User Management, correct?

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

            @girish I don't really get it, from the first time I set the Nextcloud, user management with Cloudron instead of the app, so when I add new user then it will have access to to Cloudron automatically.

            Well, it;s true, What I see when I click Access Control is Dashboard Visibility. Now I set the app visible only to several groups.

            nebulonN 1 Reply Last reply
            0
            • girishG girish

              @jdaviescoates there is a checkbox in the UI to enable it . I forget the exact text but it's inside the OIDC app settings.

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

              @girish Ah yes, I found it in /settings/admin/user_oidc thanks

              08c9a9e6-b87d-4367-83e2-0787f48ab426-image.png

              I use Cloudron with Gandi & Hetzner

              1 Reply Last reply
              3
              • firmansiF firmansi

                @girish I don't really get it, from the first time I set the Nextcloud, user management with Cloudron instead of the app, so when I add new user then it will have access to to Cloudron automatically.

                Well, it;s true, What I see when I click Access Control is Dashboard Visibility. Now I set the app visible only to several groups.

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #26

                @firmansi I don't think I understand what you are trying to tell us. Is the app installed with or without Cloudron usermanagement? Note that if it is installed without then the access controls become the dashboard visibility settings!

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

                  @nebulon I think it's without Cloudron User Management because What i see now is only Dashboard Visibility Setting, why I seem confused, because I have been using this Nextcloud in Cloudron for the last 1,5 years, and all this time I never create new user in Nextcloud directly, but always with Cloudron Users with LDAP

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

                    Yeah something is inconsistent then. You can just verify the LDAP extension settings as an admin within Nextcloud to see what is happening.

                    firmansiF 1 Reply Last reply
                    0
                    • nebulonN nebulon

                      Yeah something is inconsistent then. You can just verify the LDAP extension settings as an admin within Nextcloud to see what is happening.

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

                      @nebulon What do you mean to verify the LADP extension to see what is happening? Everything works just fine with the LDAP so far

                      1 Reply Last reply
                      0
                      • 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
                                            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