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. Vikunja
  3. Vikunja - OIDC enabled reset after restart

Vikunja - OIDC enabled reset after restart

Scheduled Pinned Locked Moved Vikunja
7 Posts 3 Posters 69 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.
  • JUVOJustinJ Offline
    JUVOJustinJ Offline
    JUVOJustin
    wrote last edited by james
    #1

    I would like to use vikunja with our cloudflare access openid. I installed the app with "leave user management to app" setting. Config works as it i supposed to, but the auth.openid.enabled is reset to false with every restart.

    I assume this is a bug isn´t it?

    Need help or just chat about something interesting:

    1 Reply Last reply
    0
    • JUVOJustinJ Offline
      JUVOJustinJ Offline
      JUVOJustin
      wrote last edited by
      #2

      Crosspost: https://forum.cloudron.io/topic/14055/oidc-enabled-reset-after-restart

      Sorry for crosspost. I am afraid else the thread would not be seen. Feel free to close one if needed.

      Need help or just chat about something interesting:

      1 Reply Last reply
      0
      • JUVOJustinJ JUVOJustin referenced this topic
      • jamesJ Offline
        jamesJ Offline
        james
        Staff
        wrote last edited by
        #3

        Hello @JUVOJustin
        From the package code: https://git.cloudron.io/packages/vikunja-app/-/blob/master/start.sh?ref_type=heads#L65-L76

        # OIDC config
        if [[ -n "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
          yq e ".auth.openid.enabled=true" -i /app/data/config.yml
          yq e ".auth.openid.redirecturl=\"${CLOUDRON_APP_ORIGIN}/auth/openid/\"" -i /app/data/config.yml
          yq e ".auth.openid.providers=[]" -i /app/data/config.yml
          yq e ".auth.openid.providers[0].name=\"Cloudron\"" -i /app/data/config.yml
          yq e ".auth.openid.providers[0].authurl=\"${CLOUDRON_OIDC_ISSUER}\"" -i /app/data/config.yml
          yq e ".auth.openid.providers[0].clientid=\"${CLOUDRON_OIDC_CLIENT_ID}\"" -i /app/data/config.yml
          yq e ".auth.openid.providers[0].clientsecret=\"${CLOUDRON_OIDC_CLIENT_SECRET}\"" -i /app/data/config.yml
        else
          yq e ".auth.openid.enabled=false" -i /app/data/config.yml
        fi
        

        With your described issue, it would be best to remove the else part so it is not reset on restart.
        I will inform the team.

        1 Reply Last reply
        0
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #4

          I have merged the double-post into one.

          1 Reply Last reply
          1
          • BrutalBirdieB Offline
            BrutalBirdieB Offline
            BrutalBirdie
            Partner
            wrote last edited by
            #5

            PR created, pipeline is running:
            https://git.cloudron.io/packages/vikunja-app/-/merge_requests/15

            Like my work? Consider donating a drink. Cheers!

            1 Reply Last reply
            2
            • jamesJ Offline
              jamesJ Offline
              james
              Staff
              wrote last edited by
              #6

              App update will be available soon:
              https://forum.cloudron.io/post/110041

              1 Reply Last reply
              0
              • JUVOJustinJ Offline
                JUVOJustinJ Offline
                JUVOJustin
                wrote last edited by
                #7

                Love it! Solved for me

                Need help or just chat about something interesting:

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