quarkiverse / quarkus-renarde

Server-side Web Framework with Qute templating, magic/easier controllers, auth, reverse-routing
Apache License 2.0
78 stars 19 forks source link

Roles with oidc #147

Open ia3andy opened 1 year ago

ia3andy commented 1 year ago

Currently if an admin want to make an oidc user admin, it is not possible RenardeUser.roles() is only used for JWT users

ia3andy commented 1 year ago

Added manual check for now https://github.com/ia3andy/quarkus-blast/commit/a1eb1786ab3044f0b740488ddc3f279902567257#diff-d255d8f161d119d424f50e9623f5970fa0a8d57a47db13ee6c1c3d6c85cb9bf6R73

FroMage commented 1 year ago

So you want the DB roles to be injected into the JWT token? Interesting. I think I've a way to do that.