I am looking for a working implementation of a Keycloak Client in C#. Both projects on github from DylanPlecki and MattMorg (later) did not work for me and are most probably not longer maintained.
My task is to get all roles of a given user to implement a more refined db access on our data base server. So actually I am keycloak not as an Authentication server in the first place, but more to get information of the user. In our company we are in the beginning of consequently using OAUTh2.0 ;-).
So here is my question: Does anyone know, how to access a keycloak server most efficiently to protect the security of the app and get the roles? Maybe via RestAPI somehow, or OIDC Protocol?