These steps also apply to Gitea and Forgejo instances.
In the web root of the web server, create .well-known/webfinger.
{
"subject": "acct:hyperreal@moonshadow.dev",
"links": [
{
"rel": "http://openid.net/specs/connect/1.0/issuer",
"href": "https://codeberg.org"
}
]
}
Use the Webfinger lookup tool to make sure it is setup correctly.
Go to User Settings → Applications → Manage OAuth2 applications.
| Application name | tailscale |
| Redirect URI | https://login.tailscale.com/a/oauth_response |
| Confidential client | Checked |
Click on Create. Copy and save the Client ID and Client secret that were generated.