Add new example for clojure to handling security and authorization interactions #3413
-
Hey hello there! I would like to know If I can add via PR, a new example to handling the signed interactions via webhooks for clojure, the reason is the current example is very specific for ring users and depends on a binary installed on your server to work, which limits a lot where you can spin your bot/app server. I made this simple function using a java library wrapped in clojure functions that receive four strings arguments: public-key, timestamp, body, signature, and return a boolean if the arguments combination is true or false. Here the source of the function: The problem is that this isn't a dedicated lib repository, is sitting in an open-source bot I'm making, should I split this wrapper in a separated lib repository or can we add this example as it is? Anyway I hope this helps another folks that are willing to use clojure in their bot/app projects. Regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
We could join efforts on this one; While |
Beta Was this translation helpful? Give feedback.
We could join efforts on this one; While
ring-discord-auth
has ring in its name, it does provide a plainverify
function like yours (it's calledauthentic?
).If you want you can open an issue or a PR to suggest the use of a different library without native dependencies, I'll be happy to implement it since it is a good point 😄