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. Rocket.Chat
  3. RocketChat oauth issue

RocketChat oauth issue

Scheduled Pinned Locked Moved Solved Rocket.Chat
rocket.chat
4 Posts 2 Posters 1.4k 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.
    • S Offline
      S Offline
      saglagla
      wrote on last edited by girish
      #1

      Hello,

      I'm trying to install on rocket chat an oauth login but i'm improoving issues :
      Exception while invoking method 'login' Error: Failed to fetch identity from cloudron at https://my.DOMAIN.ch/api/v1/session/login. Unexpected token < in JSON at position 0 at CustomOAuth.getIdentity (/app/code/bundle/programs/server/packages/rocketchat_custom-oauth.js:201:21) at Object.OAuth.registerService.query [as handleOauthRequest] (/app/code/bundle/programs/server/packages/rocketchat_custom-oauth.js:213:27) at OAuth._requestHandlers.(anonymous function) (packages/oauth2.js:27:31) at middleware (packages/oauth.js:194:5) at /app/code/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40 '

      What is the best config to do ? I've followed https://cloudron.io/developer/addons/#oauth but it's not working 😕

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

        For using Cloudron auth, the package is already setup to do LDAP. This can be enabled in the rocket.chat settings. Is that not sufficient for your use-case? Also note that Rocket.chat supports multiple auth backends enabled at the same time.

        S 1 Reply Last reply
        0
        • nebulonN nebulon

          For using Cloudron auth, the package is already setup to do LDAP. This can be enabled in the rocket.chat settings. Is that not sufficient for your use-case? Also note that Rocket.chat supports multiple auth backends enabled at the same time.

          S Offline
          S Offline
          saglagla
          wrote on last edited by
          #3

          @nebulon said in RocketChat oauth issue:

          For using Cloudron auth, the package is already setup to do LDAP. This can be enabled in the rocket.chat settings. Is that not sufficient for your use-case? Also note that Rocket.chat supports multiple auth backends enabled at the same time.

          Yeah, that can be enough but the oauth is really usefull when you're using multiple domain, big password and to avoid to get X entry in your keepass with X apps and X URL.

          I just want to try it, and eventually replace it (why not ask during app install the auth backend to use ?)

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

            I understand the upsides of OAuth and initially we attempted to use OAuth in more apps, however more users prefered using ldap for tighter integration, as ldap usually gives a better user experience inside the app not leaving the app first for the redirect. Also the auto login mechanism in OAuth was sometimes confusing. We won't put up the effort at the moment to support multiple auth backends directly in the app installation/configuration out of the box as that increases the testing amount to ensure proper updates.

            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