vymalo / keycloak-webhook

Event-based Webhook plugin for Keycloak
https://blog.ssegning.com
MIT License
29 stars 6 forks source link

Use API key instead of user / password #18

Open rroblik opened 9 months ago

rroblik commented 9 months ago

Hi @stephane-segning

First of all I wish you an happy news 24 years, and thanks for the work done here 🍾.

It should be great to allow using an (header) api key for http webhook, instead of "legacy" user/password.

Like X-Api-Key: mysecretkey. with 2 new env var : WEBHOOK_HTTP_AUTH_API_KEY_HEADER and WEBHOOK_HTTP_AUTH_API_KEY_VALUE for example.

I think that's not so hard and will help some user like me ( I don't speak Java !)

Thanks a lot

stephane-segning commented 8 months ago

Hello @rroblik, happy new year! I hope you're doing fine. I did some digging and came up with a solution, and it will be to design an auth type. That way we could define multiple login mechanisms. How about that?