]> source.dussan.org Git - gitea.git/commit
Add a link to OpenID Issuer URL in WebFinger response (#26000)
authorNoah Snelson <noah.snelson@protonmail.com>
Thu, 20 Jul 2023 08:02:45 +0000 (01:02 -0700)
committerGitHub <noreply@github.com>
Thu, 20 Jul 2023 08:02:45 +0000 (16:02 +0800)
commitdf55f9b189174767296e562389948e5250f1df73
treeb734b612c7cb3d145dbfe376d78419cca846e1c4
parent01c04607c76391e09620c6f2475b722207d2ee73
Add a link to OpenID Issuer URL in WebFinger response (#26000)

This change adds an entry to the `links` field of the
`/.well-known/webfinger` response. The new entry points to the `appURL`
as an OpenID issuer. This is consistent with the output of
`/.well-known/openid-configuration`, which also uses the value of
`appURL`.

This change is required for Tailscale SSO to work, as it uses the OpenID
Issuer URL when querying the Tailscale user email during signup/login
([docs](https://tailscale.com/kb/1240/sso-custom-oidc/#webfinger-setup)).
routers/web/webfinger.go