I am working on my own OIDC implementation (and various tools for my Forgejo instance)
Oct 24 2026 by Ethan THIERRY
Forgejo, Go, Projects
Earlier this year I self-hosted my own Forgejo instance to host my personal projects, mostly the projects that do not aim for an audience or contributors. This has really been a gust of fresh air, coming from GitHub which has been struggling a lot lately.
Not only that but also being bombarded with AI agents and seeing a lot of good free features being restricted for no reasons (like the announcement for workflow dispatch to self-hosted runners being billed), meant I wanted to move away completely.
So far it has not been the case for one important reason: my current project of two years, SumFleet has been built on GitHub for the past two years and my teammates are not keen on moving due to the features and stability of GitHub (debatable).
We have been exploring the idea of moving away from GitHub multiple times, but always came to the conclusion that we had many more things to worry about than changing Git providers.
Which is why I am working on building and hosting the necessary tools on my own instead !
Hosting more stuff than just Forgejo
If I want to be able to convince my team from moving to my Forgejo instance, I need to provide the necessary tools to compete:
- Sonarqube
- Dependency watch
- CVE Alerts
- GitHub Project alternative
- Better integrations for PRs with an instance wide bot
- Tools for handling releases and patch notes
All of this available for anyone registered on the instance to use, free of charge. (offer limited to my team and friends)
The goal is also to make a small community and provide a Forge with all these tools for my friends who want to build stuff without having to self-host themselves, go on GitHub or just want the package without having to setup Sonarqube on their own.
Easier said than done though because this means I need to write a tool that handles all of this, syncs data across the various tools for the forge and also… deals with authentication.
Writing my own OIDC service
At first I tried the reasonable approach, which is to setup Authentik and delegate the whole authentication process to it by setting up OAuth2 on Forgejo and Sonarqube. But after a bit of tinkering I was not really convinced by this setup due to the fact that Authentik to me seems to be way more complex that needs to be for such a specific scope.
Realizing I would still need to build stuff myself for the rest of the tooling anyway, I decided to implement the OIDC flow along with the rest, also cutting resource usage on my dedicated server by dropping the shelf solution I previously installed.
All of this will be written in Go, inspired by Forgejo’s stack. The opportunity for me to learn how to write in this language and have something to show for it.
Building the OIDC service will be my highest priority before slowly working my way through all the other features and I hope to come up with something satisfactory relatively soon.
If you want to take a look at the code and follow the updates, you can check the repository, subscribe to the releases or follow my blog posts on here for my other news!