Verification on Mastodon works less like Twitter and more like an identity service. That is, you do not need to prove your association with your own brand or to pay a fee, you are only showing that you are the owner of one (or more) accounts on separate services to substantiate your digital identity.
Here's what it looks like when a profile has verified via their GitHub identity:
GitHub shows as verified with a green checkmark and complete URL, including username / handle. (Note GitHub has different instructions than usual, more on that in a moment.)
In general, when you verify you will do so by using the following HTML on the page you are editing, like a personal site or blog:
<a rel="me" href="https://hachyderm.io/@username">Hachyderm</a>
If you would like to avoid using a visible link, like the above, you can also put the following in the page headers:
<link rel="me" href="https://hachyderm.io/@username">
After doing either of the above, you will need to add the URL of the site to your Hachyderm / Mastodon profile. You will do that by:
- Go to Edit Profile
- In one of the four fields of Profile Metadata, add the URL of the destination you are verifying
- Save changes
Here is an example profile with two separate sources of identity verification:
There are two ways to verify your GitHub. Both of these differ from the regular verification instructions above.
First Option: Profile Bio Field
Note: This method will not work if your Hachyderm username matches your, or anyone's, GitHub username, because GitHub will turn the username into a link, breaking the verification process.
- Add your full Hachyderm / Mastodon username to your GitHub bio.
- Note: your full username includes the server, e.g.
@[email protected]
- Note: your full username includes the server, e.g.
- Save changes.
It looks like this:
Second Option: Website in Profile1
- Add your Hachyderm / Mastodon URL to the website field of your GitHub
profile, e.g. https://hachyderm.io/@username
- Note: You should not include "rel=me" for GitHub verification / use raw HTML
- Save changes.
It looks like this:
Note: In order for this to work this MUST be sit in the profile web link
under your profile picture. This field will automatically add the required
rel=me
tag to your URL, whereas the other locations will strip the tags
automatically. You cannot embed the URL in a README on your profile page.
Unfortunately you will not be able to post another URL in the website location; even though hachyderm.io will continue to show you as verified, other instances will do their own verification check when users on those instances view your profile.
On Hachyderm / Mastodon
Whichever of the above you choose, after you have saved your changes go to your Hachyderm / Mastodon account and:
- Go to Edit Profile
- In one of the four fields of Profile Metadata, add the URL to your GitHub account, e.g. https://github.com/username
- Save changes.
Verification should appear almost instantaneously.
Please note that this only applies to personal GitHub profiles.
Currently, there is no way to verify organizational GitHub profiles as
the rel=me
tag is not added here.
If you do not want to sacrifice your web page field on your GitHub profile,
then another way to verify is to verify your username.github.io page.
This is a workaround documented by Simon Willison on his blog.1
In this case, you supply the regular link with the rel="me"
attribute,
again either using a regular link or placing it in the header information.
As an example, Simon Willison's code for his GitHub.io page is here.
The result is this:
Note:
- This image is only the metadata information that he also included in his blog post.
- He is running his own self-hosted Mastodon instance.
Verification is checked upon saving your profile. Thus, as long as you don't change anything, your verified identities will persist and you're free to change back the website on your GitHub profile2.
If you would like to verify your identity with more services than the metadata allows, you might want to consider using a service like Keyoxide or Keybase for the majority of your identity verification, and then verify Hachyderm / Mastodon with that identity management service.
We do not have a policy for regular users to verify or not - that is up to you! If you have a special account type, for example a corporate or open source project account, please see the instructions for those accounts for what verification we'd need.
Footnotes
-
Second example, GitHub as well as GitHub.io https://til.simonwillison.net/mastodon/verifying-github-on-mastodon ↩ ↩2
-
Source for verifying GitHub https://jan.wildeboer.net/2022/06/Quick-Fix-Verified-Mastodon-Github/#the-solution ↩