From IndieWeb

relmeauth is an open source PHP library implementation of the RelMeAuth protocol.

Open Source


You should use relmeauth.php if you would like to support RelMeAuth directly on your own site, and your site uses PHP.


See for instructions on how to use it.

IndieWeb Examples


Tantek Γ‡elik uses relmeauth.php on his site for RelMeAuth powered sign-in.


Twitter returning 401 error

Make sure that you have a Callback URL set in your Twitter Apps settings (when signed into the Twitter account you are using for your RelMeAuth application, likely different than your personal Twitter account).

Not having one causes Twitter to believe your app is a Desktop Application and returns a 401 Unauthorized.

For more details for implementing the Twitter side of RelMeAuth:

See also