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. Outline
  3. OIDC Override Post Installation

OIDC Override Post Installation

Scheduled Pinned Locked Moved Solved Outline
6 Posts 4 Posters 1.1k Views 4 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.
  • J Offline
    J Offline
    JLX89
    wrote on last edited by JLX89
    #1

    Hello,
    Is it possible to override the Cloudron OIDC configuration post installation? I understand when you setup Outline, it requires OAuth or some sort of authentication when deploying. We are utilizing an external OAuth configuration. I've attempted adding the configuration using the env.sh file, got past a few errors, but now it seems that the option isn't even showing up.

    We have everything added from the env example provided by Outline. I changed the OIDC_SCOPE from openid profile email to openid as a test, and got past a few generic errors. Cloudron is still listed in Settings > Sign In and I'm not seeing "OpenID Connect" (MyProject Auth).

    # To configure generic OIDC auth, you'll need some kind of identity provider.
    # See documentation for whichever IdP you use to acquire the following info:
    # Redirect URI is https://<URL>/auth/oidc.callback
    export OIDC_CLIENT_ID=
    export OIDC_CLIENT_SECRET=
    export OIDC_AUTH_URI=
    export OIDC_TOKEN_URI=
    export OIDC_USERINFO_URI=
    
    # Specify which claims to derive user information from
    # Supports any valid JSON path with the JWT payload
    export OIDC_USERNAME_CLAIM=preferred_username
    
    # Display name for OIDC authentication
    export OIDC_DISPLAY_NAME=OpenID Connect
    
    # Space separated auth scopes.
    export OIDC_SCOPES=openid profile email
    

    Thank you!

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

      This will always be overwritten by the package code on app startup. To avoid this, we have to add optionalSso flag to the package to leave the user management to the app, which also means other auth providers can be configured.

      We will look into this and if this can be supported with outline.

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

        @JLX89 I have added the optionalSso flag. Please re-install and try settings OIDC variables. Please note https://docs.cloudron.io/apps/outline/#without-cloudron-directory

        1 Reply Last reply
        2
        • J Offline
          J Offline
          JLX89
          wrote on last edited by
          #4

          Thank you so much, I will give this a shot again!

          1 Reply Last reply
          0
          • J Offline
            J Offline
            JLX89
            wrote on last edited by
            #5

            @nebulon @girish Thank you so much for making this change -- just confirmed it's working on my side!

            1 Reply Last reply
            2
            • nebulonN nebulon marked this topic as a question on
            • nebulonN nebulon has marked this topic as solved on
            • S Offline
              S Offline
              sparkwise
              wrote on last edited by
              #6

              Wanted to note that the optionalSso change here allowed me to fix my Google Login issue, too! https://forum.cloudron.io/post/77654

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