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. Guacamole
  3. Guacamole use OpenID as default login

Guacamole use OpenID as default login

Scheduled Pinned Locked Moved Guacamole
9 Posts 4 Posters 172 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.
  • P Offline
    P Offline
    phsc
    wrote last edited by phsc
    #1

    I have 2 Cloudron instances which are synced with on-premise AD servers. I have the Guacamole app installed with the location set to use the bare domain. Prior to Guacamole V2.0 package update, users would browse to the Cloudron domain, login with their AD credentials at the login page shown, and were taken straight to Guacamole. From V2.0 package update onwards, the new OIDC login feature requires users to click a tiny link in the bottom corner of the initial login page, which takes them to another login page (OpenID Login page), to then log in with their AD credentials. (To clarify for those that aren't aware, using AD credentials at the first login page no longer works).
    Not sure if I am missing something - but is it possible to set the default login page for Guacamole as the OpenID login page? Or is it possible to set the default login page to use the OpenID credentials? I've had a look through the GUI settings, checked the forums and google, but come up empty. Any help is appreciated.

    1 Reply Last reply
    1
    • jamesJ james marked this topic as a regular topic
    • jamesJ james moved this topic from Support
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Hello @phsc
      Unfortunately I am not aware of a simple way to make OIDC login as the default.
      Maybe you could create a custom branding and change the login page HTML to reflect what you would like to have.
      To have something like this:
      47f98041-bd71-4b23-a73c-de0a7e79a03b-image.png
      I just edited the HTML in the browser as a mockup.
      See => https://docs.cloudron.io/packages/guacamole/#branding

      P 1 Reply Last reply
      1
      • nebulonN Away
        nebulonN Away
        nebulon
        Staff
        wrote last edited by
        #3

        @phsc maybe worth asking the upstream guacamole community or raise a feature request there.

        P 1 Reply Last reply
        1
        • jamesJ james

          Hello @phsc
          Unfortunately I am not aware of a simple way to make OIDC login as the default.
          Maybe you could create a custom branding and change the login page HTML to reflect what you would like to have.
          To have something like this:
          47f98041-bd71-4b23-a73c-de0a7e79a03b-image.png
          I just edited the HTML in the browser as a mockup.
          See => https://docs.cloudron.io/packages/guacamole/#branding

          P Offline
          P Offline
          phsc
          wrote last edited by
          #4

          @james Thanks for your suggestion.
          I currently have very basic custom branding applied, but still wasn't able to work out a solution - this is currently outside of my abilities. To confuse matters, I attempted to apply the example branding as linked in the documentation (to prove that changes were applying), but it didn't work.

          1 Reply Last reply
          0
          • nebulonN nebulon

            @phsc maybe worth asking the upstream guacamole community or raise a feature request there.

            P Offline
            P Offline
            phsc
            wrote last edited by phsc
            #5

            @nebulon thanks for your response. I wasn't sure if this was a Cloudron thing or a Guacamole thing, so as a paying customer I thought I would ask here first. Now focusing on the Guacamole documentation, I found the solution - its actually very easy! Not sure why I didn't stumble upon it sooner. 🤦

            To redirect users immediately to the OpenID identity provider (Cloudron in this case) instead of going to the default Guacamole authentication method, requires a 1 line configuration change in the guacamole.properties file.

            To do this, go to the File Manager for the Guacamole app and open the guacamole.properties file. Add a new line as shown below:

            extension-priority: openid
            

            Save and close the file, then restart the Guacamole app.

            Now when browsing to the your normal Guacamole URL, you will be redirected to the OpenID login page

            https://guacamole.apache.org/doc/gug/openid-auth.html#automatically-redirecting-all-unauthenticated-users
            https://guacamole.apache.org/doc/gug/configuring-guacamole.html#guacamole-properties
            https://docs.cloudron.io/apps/#file-manager

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

              Hello @phsc
              Awesome find! Do you think we should make this default in the Cloudron app when OIDC is used?

              P 1 Reply Last reply
              0
              • jamesJ james

                Hello @phsc
                Awesome find! Do you think we should make this default in the Cloudron app when OIDC is used?

                P Offline
                P Offline
                phsc
                wrote last edited by
                #7

                Hi @james, yes, I think so. Correct me if I am wrong, but Guacamole is configured to use Cloudron's OIDC Provider, so it makes sense that it would automatically take you to the OpenID login page. If you wanted to give less technically able users (like me) a choice, I'm assuming an option could be put under the Access Control section of the Guacamole app settings?

                mockup.PNG

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

                  I think extension-priority: openid complicates logging in as root , no? (i.e with the default admin) . I think the real issue is that guacamole login page is not well designed .

                  jamesJ 1 Reply Last reply
                  2
                  • girishG girish

                    I think extension-priority: openid complicates logging in as root , no? (i.e with the default admin) . I think the real issue is that guacamole login page is not well designed .

                    jamesJ Offline
                    jamesJ Offline
                    james
                    Staff
                    wrote last edited by
                    #9

                    @girish true

                    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