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. HedgeDoc
  3. oauth2 login in config.json overwritten by oidc of cloudron?

oauth2 login in config.json overwritten by oidc of cloudron?

Scheduled Pinned Locked Moved Solved HedgeDoc
8 Posts 3 Posters 578 Views 3 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.
    • N Offline
      N Offline
      nebel
      wrote on last edited by
      #1

      Hi,
      my hedgedoc is configured with oauth2 in config.json. I had to stop updating hedgedoc, because login is broken since cloudron switched hedgedoc to oidc. I could login via OAuth2 or LDAP before. Now I only have one option called "Cloud". It throws an Error 500 in the callback.
      The callback URL contains the domain name of my cloudron server instead of the external oauth2 service.
      Any ideas?

      girishG 1 Reply Last reply
      1
      • N nebel

        Hi,
        my hedgedoc is configured with oauth2 in config.json. I had to stop updating hedgedoc, because login is broken since cloudron switched hedgedoc to oidc. I could login via OAuth2 or LDAP before. Now I only have one option called "Cloud". It throws an Error 500 in the callback.
        The callback URL contains the domain name of my cloudron server instead of the external oauth2 service.
        Any ideas?

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

        @nebel Did I understand correctly that you want to use Hedgedoc but with another OIDC provider (i.e not cloudron's OIDC) ?

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nebel
          wrote on last edited by
          #3

          Yes, that's the way I am using it already. But I had to block updating the app to keep the last 'ldap-version', which is no solution for the long run.

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

            We have to update the package to support optionalSso so your custom auth provider is not overwritten on restart.

            1 Reply Last reply
            0
            • nebulonN nebulon marked this topic as a question on
            • N Offline
              N Offline
              nebel
              wrote on last edited by
              #5

              Sounds perfect.

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

                @nebel I have pushed optionalSso support. You have to do something like this:

                • Backup your current app. Download the backup configuration
                • Install the latest packages of HedgeDoc . When installing, install with no sso
                • Import your backup from step 1. Backups -> Import
                • Email login is enabled by default. So maybe you want to disable that and enable your sso provider.
                1 Reply Last reply
                1
                • N Offline
                  N Offline
                  nebel
                  wrote on last edited by
                  #7

                  Thanks a lot! This did solve my problem.
                  I wonder, if there is anyone, who had oidc and cloudron users before. I think he would lose users in this case. Is it a special case with hedgedoc or is it a problem for all apps?
                  Anyway, I am happy that my problem is solved.

                  girishG 1 Reply Last reply
                  1
                  • N nebel

                    Thanks a lot! This did solve my problem.
                    I wonder, if there is anyone, who had oidc and cloudron users before. I think he would lose users in this case. Is it a special case with hedgedoc or is it a problem for all apps?
                    Anyway, I am happy that my problem is solved.

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

                    @nebel said in oauth2 login in config.json overwritten by oidc of cloudron?:

                    I wonder, if there is anyone, who had oidc and cloudron users before. I think he would lose users in this case. Is it a special case with hedgedoc or is it a problem for all apps?

                    Right, this depends on the app. Some apps can only have one authentication provider active at a time. Others can have multiple authentication providers. I think HedgeDoc supports multiple auth providers be active at a time but only one OIDC provider at a time, looks like. But generally, most of our users do not mix "private" authentication and "public" instance with external users.

                    1 Reply Last reply
                    0
                    • girishG girish has marked this topic as solved on
                    • G gh0stface referenced this topic on
                    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