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. BookStack
  3. Cannot login anymore after switch to OIDC in latest update

Cannot login anymore after switch to OIDC in latest update

Scheduled Pinned Locked Moved Solved BookStack
46 Posts 6 Posters 3.8k Views 6 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
    #10

    We are working on a fix for that problem.

    1 Reply Last reply
    1
    • nebulonN nebulon

      Your issue seems to be related to networking actually. With OpenID the apps have to be able to reach the OpenID provider, which is running on the dashboard domain.
      Can you maybe check from a webterminal inside the app if the following works (after the rollback):

      curl -v https://my.<your cloudron domain>/.well-known/openid-configuration
      
      B Offline
      B Offline
      buesching
      wrote on last edited by
      #11

      @nebulon said in Cannot login anymore after switch to OIDC in latest update:

      curl -v https://my.<your cloudron domain>/.well-known/openid-configuration

      I cannot reach this URL. Not from bookstack and not from any other sytem.
      Do I have to configure something under Domain & Certs before?
      4ee1a0f3-1929-4bd4-b21c-1b3b02216977-image.png

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

        With OpenID the apps backends have to be able to reach the OpenID provider, which on Cloudron is running on the dashboard domain. So any app with OpenID will fail if your system can't call the Cloudron APIs from within its app containers.

        For a start, can you resolve the dashboard domain from the webterminal of an app?
        host my.domain.com

        If this is a system hosted behind a router (like a homesetup) make sure hairpinning is supported.

        B 1 Reply Last reply
        0
        • nebulonN nebulon

          With OpenID the apps backends have to be able to reach the OpenID provider, which on Cloudron is running on the dashboard domain. So any app with OpenID will fail if your system can't call the Cloudron APIs from within its app containers.

          For a start, can you resolve the dashboard domain from the webterminal of an app?
          host my.domain.com

          If this is a system hosted behind a router (like a homesetup) make sure hairpinning is supported.

          B Offline
          B Offline
          buesching
          wrote on last edited by
          #13

          @nebulon It returns the public IP address. The system is behind a reverse proxy. The webinterface is reachable over the internet. Should I be able to open https://my.<your cloudron domain>/.well-known/openid-configuration from a browser?
          I only get a server error.
          2023-09-14_13h25_27.png

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

            Yes that should be publicly reachable. Can you check the server side logs at /home/yellowtent/platformdata/logs/box.log about any errors?

            B 1 Reply Last reply
            0
            • nebulonN nebulon

              Yes that should be publicly reachable. Can you check the server side logs at /home/yellowtent/platformdata/logs/box.log about any errors?

              B Offline
              B Offline
              buesching
              wrote on last edited by buesching
              #15

              @nebulon It isnt even reachable from a local system, which uses the local address for my.<your cloudron domain>. The webinterface is still reachable. Do I have to set the well known location as I asked before?

              1 Reply Last reply
              0
              • B Offline
                B Offline
                buesching
                wrote on last edited by
                #16

                Where can I change the dns settings? I would like to resolve the local address for my.<your cloudron domain>. I want to bypass my firewall. Maybe it should work then.

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

                  If the local systems can resolve the public IP then this seems fine.
                  What kind of reverse proxy setup is this, maybe it interferes with the requests? Can you maybe disable that and expose the system directly just to see if it works as expected then?

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    buesching
                    wrote on last edited by
                    #18

                    We are using an Securepoint firewall with integrated reverse proxy. I will talk to the support.

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      buesching
                      wrote on last edited by
                      #19

                      Hello, we solved the problem. It was a wrong configuration in our firewall.

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

                        Thanks for sharing and glad it worked out in the end.

                        1 Reply Last reply
                        0
                        • nebulonN nebulon has marked this topic as solved on
                        • A Offline
                          A Offline
                          abuyuy
                          wrote on last edited by
                          #21

                          @nebulon Have you marked the topic as solved because you found a way to migrate users in old setup to OIDC properly, or because the issue that hijacked the original topic of the thread solved itself (see posts above)? 😉

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

                            The package contains a user migration script https://git.cloudron.io/cloudron/bookstack-app/-/blob/master/migrateUsers.js?ref_type=heads
                            By now this should have been applied and it will be removed again from the start.sh

                            1 Reply Last reply
                            1
                            • A Offline
                              A Offline
                              abuyuy
                              wrote on last edited by
                              #23

                              Thank you for the quick support!

                              1 Reply Last reply
                              0
                              • B Offline
                                B Offline
                                buesching
                                wrote on last edited by
                                #24

                                Hello,

                                Now, I have the same problem at a customer. Cloudron and bookstack are not accessible from the internet. It is used only internal. I created a custom.conf for the unbound dns. But it is still not working. How do I have to configure the dns setting that OpenID Connect is working? We use a wildcard certificate.

                                girishG 1 Reply Last reply
                                0
                                • B buesching

                                  Hello,

                                  Now, I have the same problem at a customer. Cloudron and bookstack are not accessible from the internet. It is used only internal. I created a custom.conf for the unbound dns. But it is still not working. How do I have to configure the dns setting that OpenID Connect is working? We use a wildcard certificate.

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

                                  @buesching said in Cannot login anymore after switch to OIDC in latest update:

                                  But it is still not working

                                  Can you tell us what is not working?

                                  a) Can users reach the cloudron dashboard?
                                  b) Is the app not able to reach the cloudron oidc api? Like maybe nothing appears after you click oidc button in browser?
                                  c) Is that wildcard certificate self signed?

                                  If c) is the issue then fixing unbound won't help here. Most apps do not accept self signed certs for oidc. I recommend simply using a proper wildcard cert. You can either switch to one of the Cloudron supported DNS providers OR purchase a wildcard cert (it's only 45usd at https://www.garrisonhost.com/ssl-certificates/alphassl). In either case, you can keep your setup completely private as now.

                                  B 1 Reply Last reply
                                  0
                                  • girishG girish

                                    @buesching said in Cannot login anymore after switch to OIDC in latest update:

                                    But it is still not working

                                    Can you tell us what is not working?

                                    a) Can users reach the cloudron dashboard?
                                    b) Is the app not able to reach the cloudron oidc api? Like maybe nothing appears after you click oidc button in browser?
                                    c) Is that wildcard certificate self signed?

                                    If c) is the issue then fixing unbound won't help here. Most apps do not accept self signed certs for oidc. I recommend simply using a proper wildcard cert. You can either switch to one of the Cloudron supported DNS providers OR purchase a wildcard cert (it's only 45usd at https://www.garrisonhost.com/ssl-certificates/alphassl). In either case, you can keep your setup completely private as now.

                                    B Offline
                                    B Offline
                                    buesching
                                    wrote on last edited by buesching
                                    #26

                                    @girish
                                    a) yes
                                    b) same error as in the 4th post. See above.
                                    c) it is not self signed. Its from geotrust.

                                    We had the same problem in our environment. It was an misconfiguration of our reverse proxy (from the firewall).
                                    In the environment of the customer the dashboards are note accessible from the internet. In that case the traffic does not run over the reverse proxy. The connection is established locally.

                                    1 Reply Last reply
                                    0
                                    • girishG Offline
                                      girishG Offline
                                      girish
                                      Staff
                                      wrote on last edited by
                                      #27

                                      @buesching Ah, all right. So, your issue looks like bookstack cannot contact cloudron dashboard because of the reverseproxy not looping back http requests. Is this sorted out now? Or are you still looking for assistance?

                                      B 1 Reply Last reply
                                      0
                                      • girishG Offline
                                        girishG Offline
                                        girish
                                        Staff
                                        wrote on last edited by girish
                                        #28

                                        If you are looking for some DNS solution to avoid the reverse proxy, you have to add something like this to unbound custom config:

                                        server:
                                        
                                        local-zone: example.com typetransparent
                                        local-data: "my.example.com A 172.18.0.1"
                                        

                                        example.com is your dashboard domain . 172.18.0.1 is the internal oidc server for the app can reach.

                                        B 1 Reply Last reply
                                        0
                                        • girishG girish

                                          @buesching Ah, all right. So, your issue looks like bookstack cannot contact cloudron dashboard because of the reverseproxy not looping back http requests. Is this sorted out now? Or are you still looking for assistance?

                                          B Offline
                                          B Offline
                                          buesching
                                          wrote on last edited by
                                          #29

                                          @girish In our environment everything ist working fine now.

                                          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