Open lucmir opened 7 years ago
In order for standardization across platforms, we should use a standard crypto library that has lots of language bindings. For this -- I think we could do something like:
https://github.com/kext/lua-nacl (NACL -- networking and cryptography library)
As part of the contract that applications must conform, have a check that verifies nacl.sign_open(sm, pk), where sm is the signature and pk is the Kong Public Key.
If the signature fails, the request should be dropped by the application.
Headers included by okta-auth-plugin should be signed in order to ensure they came from Kong.