I am working on an application which accepts API Token. To be more secure, i want to ask the client (User or Another Application) to encrypt the API Token using their private key so that i can decrypt the same at Apache Reverse Proxy using the client's public key and forward to Tomcat.
I have some questions here:
- How can i decrypt a header in Apache through a public key?
- How do i enforce that my Apache only accepts Basic Auth or only Bearer Auth?