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. Feature Requests
  3. WebFinger support for OIDC

WebFinger support for OIDC

Scheduled Pinned Locked Moved Solved Feature Requests
webfingeroidc
9 Posts 5 Posters 1.7k Views 7 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.
  • A Offline
    A Offline
    akammeyer
    wrote on last edited by girish
    #1

    Hello,
    I have been looking through the docs, but haven't found a definitive answer on this. I have successfully connected an app to Cloudron's OIDC Provider, but some services want to start with looking up the WebFinger first. Is WebFinger discovery implemented and just not documented. If not, is it planned for a future release?

    Thanks!

    girishG 1 Reply Last reply
    2
    • A akammeyer

      Hello,
      I have been looking through the docs, but haven't found a definitive answer on this. I have successfully connected an app to Cloudron's OIDC Provider, but some services want to start with looking up the WebFinger first. Is WebFinger discovery implemented and just not documented. If not, is it planned for a future release?

      Thanks!

      girishG Offline
      girishG Offline
      girish
      Staff
      wrote on last edited by
      #2

      @akammeyer said in WebFinger support:

      I have successfully connected an app to Cloudron's OIDC Provider, but some services want to start with looking up the WebFinger first.

      My understanding is that user provides email to website -> website queries webfinger to locate the oidc endpoint -> oidc authentication. That's what I understood from https://stackoverflow.com/questions/47113980/how-to-use-the-openid-connect-webfinger-endpoint .

      This means that the webfinger only makes sense if email domain is hosted on Cloudron. Did I get this correct ? If email domain is outside Cloudron, you have to configure webfinger to point to Cloudron's OIDC.

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

        Maybe we should have a checkbox in https://docs.cloudron.io/domains/#well-known-locations which says "Respond to WebFinger queries with Cloudron OIDC endpoint".

        Can you tell us which app you are testing this against, so we can test this ourselves?

        1 Reply Last reply
        3
        • A Offline
          A Offline
          akammeyer
          wrote on last edited by
          #4

          If I understand https://www.rfc-editor.org/rfc/rfc7033#section-3.1 correctly, a service can take an email and just craft the well-known URL from the domain. It doesn't matter what's hosted where. I was working on getting Tailscale to authenticate against Cloudron's OIDC (https://tailscale.com/kb/1240/sso-custom-oidc).

          The email for my domain is hosted at Fastmail, but the website is on Cloudron. I was able to set up a quick LAMP app at the root domain on Cloudron and have it respond to the webfinger request. Tailscale then picked it up and allowed me to authenticate properly.

          Having it in the well-known-locations dialog would certainly have been easier. 😆

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

            @akammeyer rIght, that's my understanding as well. My wording was a bit confusing. When I said "email domain" , I meant that the domain name of that email address must be hosted on cloudron (not email hosting but the bare domain hosting).

            I will move this to Feature request, adding well-known input box for this in Domains UI would be the solution.

            1 Reply Last reply
            2
            • girishG girish moved this topic from Support on
            • M Offline
              M Offline
              MaikA
              wrote on last edited by
              #6

              @akammeyer Can you share how you got this working?
              Same issue here - setting up tailscale to use cloudron oidc.
              oidc runs under my.<domain> obviously, however I would like to use <mail>@<domain> (hosted on cloudron as mail server). It is my understanding tailscale expects the oidc to run under <domain>, additionally there needs to be a webfinger endpoint there. The last part could be solved by a LAMP stack with a simple webfinger php script, but how would tailscale accept the subdomain "my." as OIDC endpoint? Is this not an issue?

              1 Reply Last reply
              1
              • M Offline
                M Offline
                MaikA
                wrote on last edited by
                #7

                Never mind, my misunderstanding. I was able to use the wordpress-plugin "webfinger" on my main domain and just put in the my.<domain>-issuer-URL into the response, works fine!

                1 Reply Last reply
                2
                • nebulonN nebulon marked this topic as a question on
                • nebulonN nebulon has marked this topic as solved on
                • A akammeyer

                  If I understand https://www.rfc-editor.org/rfc/rfc7033#section-3.1 correctly, a service can take an email and just craft the well-known URL from the domain. It doesn't matter what's hosted where. I was working on getting Tailscale to authenticate against Cloudron's OIDC (https://tailscale.com/kb/1240/sso-custom-oidc).

                  The email for my domain is hosted at Fastmail, but the website is on Cloudron. I was able to set up a quick LAMP app at the root domain on Cloudron and have it respond to the webfinger request. Tailscale then picked it up and allowed me to authenticate properly.

                  Having it in the well-known-locations dialog would certainly have been easier. 😆

                  andreasduerenA Online
                  andreasduerenA Online
                  andreasdueren
                  wrote on last edited by
                  #8

                  @akammeyer said in WebFinger support for OIDC:

                  I was able to set up a quick LAMP app at the root domain on Cloudron and have it respond to the webfinger request. Tailscale then picked it up and allowed me to authenticate properly.

                  Would you mind sharing your LAMP setup? I wanted to try the same thing but wasn't successful

                  1 Reply Last reply
                  1
                  • R Offline
                    R Offline
                    Robin
                    wrote on last edited by
                    #9

                    Seconded, also interested in this for the tailscale angle 🙂

                    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