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 12.8k 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.
  • girishG Offline
    girishG Offline
    girish
    Staff
    wrote on last edited by
    #15

    @jdaviescoates thanks for the detailed investigation! Right, this is a bug that the package is enabling OIDC groups. New package coming with it disabled.

    1 Reply Last reply
    2
    • avatar1024A Offline
      avatar1024A Offline
      avatar1024
      wrote on last edited by
      #16

      @girish But syncing Cloudron group might be super useful in other cases, at least that is certainly the case with the organisation I work with and it was a relief when it started to work with LDAP.

      How it should be implemented I'm not sure. I understand the concerns of @jdaviescoates when the way app access work is that, apps have access to everything unless you restrict it and give access to only specific users/groups. So following that logic it seems like the behaviour of all groups being synced (as described by @jdaviescoates) is normal (as it does for users) and that if an app should only see some groups/users, then the Cloudron admin should make sure only those groups are granted access (and then the OIDC plugin should only sync those groups and not others).

      The Nextcloud admin group however should be independent of OIDC syncing and Nextcloud admins should be able to manage it independently.

      1 Reply Last reply
      2
      • firmansiF Online
        firmansiF Online
        firmansi
        wrote on last edited by
        #17

        @girish I am quite hesitate to do this in my production server as it is now, and actually with current LDAP scenario, I am satisfied. If I may suggest, will it be doable in next update, the Cloudron team can make the OIDC as optional instead of seemingly compulsory configuration? Or at least until this scenario is already proven to work seamless without any hassle.

        1 Reply Last reply
        2
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by girish
          #18

          @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 avatar1024A O 4 Replies Last reply
          3
          • girishG girish

            @firmansi OIDC should be automatically automatic configured. Can you restart the app and check the logs? In the log you should see ==> Disabling LDAP and then ==> Ensure OIDC settings . Do you see these messages?

            Can you also open a web terminal and run env | grep CLOUDRON_OIDC ? Do you see a bunch of variables?

            firmansiF Online
            firmansiF Online
            firmansi
            wrote on last edited by firmansi
            #19

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

            Now, I install manually OpenID Connect Login, but I don;t know how and where to set

            Do we have to install manually first then update the package maybe? I see in this forum the scenario works fine with fresh installation, but not the old one

            girishG 1 Reply Last reply
            0
            • firmansiF firmansi

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

              Now, I install manually OpenID Connect Login, but I don;t know how and where to set

              Do we have to install manually first then update the package maybe? I see in this forum the scenario works fine with fresh installation, but not the old one

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

              @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 1 Reply Last reply
              3
              • 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 Online
                      firmansiF Online
                      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 Online
                            firmansiF Online
                            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 Online
                                firmansiF Online
                                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 Online
                                    firmansiF Online
                                    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 Online
                                        firmansiF Online
                                        firmansi
                                        wrote on last edited by
                                        #33

                                        @nebulon thanks for the advice

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