>So do you believe that introducing vulnerabilities in the code of gluu server would be feasible or it would be better for my purpose to head to a simpler implementation?
All Gluu projects are open-source projects, and most of them are written in Java. Assuming you possess coding skills and ready to invest your time in reading source code to figure out how to make it vulnerable, I don't see why it's not possible (still assumes you are very good at stack of technologies used by Gluu Server and have good understanding of OIDC specs, to be able to break it enough to be vulnerable, but not completely unusable). Just keep in mind you'll have to [setup development environment](https://gluu.org/docs/ce/3.1.6/developer-guide/oxtrust-eclipse/) as you'll need to compile your Java binaries from sources after the changes are done.