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
  • Brite
  • 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. LibreChat
  3. Librechat - openid login

Librechat - openid login

Scheduled Pinned Locked Moved LibreChat
4 Posts 2 Posters 17 Views 2 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.
  • Y Offline
    Y Offline
    Youssef
    wrote last edited by
    #1

    Hello,
    I recently migrated my LibreChat deployment from Azure to Cloudron. The OpenID login button is visible and clickable, but after clicking I’m redirected to:

    https://<my-domain>/oauth/openid
    

    The page shows: “An unknown error occurred.”

    In the application logs I see:

    error: ErrorController => error Unknown authentication strategy "openid"
    

    This was working on my previous Azure setup. I’m using the same OpenID environment variables as in the documentation.

    Could you help me identify why the OpenID strategy isn’t being registered on Cloudron?

    Thanks!

    • LibreChat version: v0.8.0

    • Relevant env (redacted):

      • OPENID_ENABLED=true
      • OPENID_ISSUER=<...>
      • OPENID_DISCOVERY_URL=<...>
      • OPENID_CLIENT_ID=<...>
      • OPENID_CLIENT_SECRET=<redacted>
      • OPENID_CALLBACK_URL=https://<my-domain>/api/auth/openid/callback
    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote last edited by
      #2

      Have you migrated your installation into a Cloudron app install where you disabled the Cloudron usermanagement? If not then Cloudron will overwrite your settings on app start and configures it to use your Cloudron as the OpenID provider.

      1 Reply Last reply
      1
      • nebulonN nebulon marked this topic as a question
      • Y Offline
        Y Offline
        Youssef
        wrote last edited by
        #3

        Thank's for your quick reply, on install i select the "Leave user management to the app" option... i don't know if we talk about the same thing ?

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

          Yes that is correct then. So Cloudron would not touch the env variables for OpenID which you have set.

          One maybe easy to forget step ist, you have to restart the app in order for it to pick up the new environment.

          Otherwise can't see why setting the same values like Cloudron does would cause it to not even know about that auth strategy.

          Just for reference this is how the Cloudron startup script would put them (if cloudron usermanagement would be enbled): https://git.cloudron.io/packages/librechat-app/-/blob/main/start.sh?ref_type=heads#L92

          1 Reply Last reply
          1
          • J joseph marked this topic as a regular topic
          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