My First Contribution to IndieLogin
You can use Codeberg as an authentication provider now
IndieAuth is a cool IndieWeb technology that lets you log in with your domain name as your identity! And IndieLogin is a public IndieAuth provider you can use, but you can also self-host it. Currently, it supports Twitter, GitHub, email, and PGP keys. * PGP keys were recently disabled for some reason.
Practically all developers have a GitHub account so it’s convenient for them, but the enshittification of GitHub has made it less desirable. My fellow developers have been increasingly turning towards Codeberg and self-hosting Forgejo, so I wanted to contribute to IndieLogin and add Codeberg as an authentication provider!
InfoIf you’re excited about using this for your self-hosted Forgejo instance, I’m afraid that won’t be possible, as IndieLogin would need to register an OAuth app on your instance.
The project uses PHP (eugh), but since GitHub and Codeberg are very similar, I just had to copy and paste the relevant GitHub code and adapt it for Codeberg. I had some troubles getting the project to run locally as the only instructions in the README was basically “Run composer start
”, but I figured it out.
Just to be sure my local instance was working right, I created an OAuth app on GitHub and tried to authenticate myself that way, aaaand it’s broken!! The README left out the part where I needed to enable a couple PHP extensions, and install MySQL, which my Debian laptop was refusing to because of a stupid lock file.
I was following along the Forgejo docs for using Codeberg as an authentication source, adding and changes some lines of code here and there so it’s happy, and I found this API page so I could find the correct user endpoint for fetching their website URL and bio.
The completed pull request is right here, so hopefully the developer accepts it soon! All in all, this took me about 4 hours to do, which I think is not bad :3

Likes
Reposts
@megabyteghost awww thank you! the idea came when I was writing my first blog post, talking about how writing is a window to the personal self, that it's more than just a vessel for knowledge. your life experiences come through the writing style, your choice of topics shows what matters to you and a blog is that little slice of the internet that's yours, so I thought it was appropriate to end it with a signature >w<
@ross the PGP key login is so cool, so I hope it gets fixed soon. I also found it's a bit inconvenient to use on Windows cause it has no built-in keystore, and Bitwarden sadly doesn't support PGP keys :( maybe I could do something about any of those issues...