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. WordPress (Developer)
  3. OIDC Button ?

OIDC Button ?

Scheduled Pinned Locked Moved WordPress (Developer)
14 Posts 3 Posters 552 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.
  • N Offline
    N Offline
    Neiluj
    wrote on last edited by Neiluj
    #1

    Hi,

    It seems as the OIDC button of to access the dashboard does not follow the Cloudron branding specification.

    3ea3de2f-d07c-46f8-8fb2-bf164772f319-image.png

    Is this because the Cloudron Wordpress package needs to be adapted or do I need to setup this up somewhere else (I could not find anything relevant in the Wordpress OIDC plugin option, or in the docs for maybe an env. variable)?

    Bonus question: is there a way to have OIDC login as the only way to login into the dashboard?

    Many thanks,

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

      Goot catch .. This needs to be fixed. Cloudron has it's own SSO button plugin . We have to fix the line at https://git.cloudron.io/packages/wordpress-developer-app/-/blob/master/cloudron-sso.php?ref_type=heads#L39

      1 Reply Last reply
      2
      • N Offline
        N Offline
        Neiluj
        wrote on last edited by
        #3

        Hi @girish - thanks for this.
        Is there any way to amend the button manually for the time being, until the package is updated and released?

        Many thanks,

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

          @Neiluj if you know PHP, you can provide a MR to the package . But otherwise, @vladimir.d is working on it, he will get to it very soon .

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

            @Neiluj these are published now.

            1 Reply Last reply
            2
            • N Offline
              N Offline
              Neiluj
              wrote on last edited by
              #6

              Thanks @girish @vladimir.d - However this does not seem to be working on my instance, even with the latest package.

              I am on Cloudron v8.3.1 and WordPress (Developer) 6.7.2
              Is there anything to do config wise to get this enabled?

              In testing this, I have notice that any change to the Cloudron Name on the Branding page trigger a re-configuration as well as a restart of the app.
              Log shows:

              Apr 03 13:20:23 Success: Value passed for 'openid_connect_generic_settings' option is unchanged.
              

              despite changing the Cloudron Name.

              Any hints?

              Many thanks,

              1 Reply Last reply
              0
              • J Offline
                J Offline
                joseph
                Staff
                wrote on last edited by
                #7

                @Neiluj can you run env | grep CLOUDRON_OIDC_PROVIDER_NAME in Web Terminal of the app ? It should print the Cloudron name .

                N 1 Reply Last reply
                0
                • J joseph

                  @Neiluj can you run env | grep CLOUDRON_OIDC_PROVIDER_NAME in Web Terminal of the app ? It should print the Cloudron name .

                  N Offline
                  N Offline
                  Neiluj
                  wrote on last edited by
                  #8

                  Thanks @joseph - This command returns correctly the Cloudron name set in the branding page.

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    joseph
                    Staff
                    wrote on last edited by
                    #9

                    @Neiluj I managed to reproduce it. For older installs, the plugin is not updated. Until we fix the package, you can do this: open a webterminal for the app and run wp plugin install --force /app/pkg/cloudron-sso.zip .

                    1 Reply Last reply
                    2
                    • N Offline
                      N Offline
                      Neiluj
                      wrote on last edited by
                      #10

                      Can confirm - it all works after the manual install of the plugin.
                      Many thanks @joseph

                      1 Reply Last reply
                      1
                      • N Offline
                        N Offline
                        Neiluj
                        wrote on last edited by
                        #11

                        Do you know if there a way to have OIDC login as the only way to login into the dashboard?

                        1 Reply Last reply
                        1
                        • N Offline
                          N Offline
                          Neiluj
                          wrote on last edited by
                          #12

                          A quick addition to this, the tiniest of the things and absolutely not a showstopper, but maybe worth mentioning:
                          the OIDC button is not centered on the login page.

                          At the moment, provided that the cloudron name is a bit of a long string, this jumps on the page, as not aligned with the rest of the elements on the page. Please see here:

                          aac13b92-72ed-4c17-887d-9ce6bcc3d085-image.png

                          Maybe it is by design, but also maybe not 🙂

                          1 Reply Last reply
                          0
                          • J Offline
                            J Offline
                            joseph
                            Staff
                            wrote on last edited by
                            #13

                            Teh package uses this https://github.com/oidc-wp/openid-connect-generic , maybe worth reporting upstream 🤔

                            1 Reply Last reply
                            1
                            • N Offline
                              N Offline
                              Neiluj
                              wrote on last edited by
                              #14

                              @joseph Thanks for this - I though initially that this was a "Cloudron" plugin.

                              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