AI Summary
Key points of this article, generated by AI.
Generating AI Summary
You are interacting with an AI system. AI-generated responses may not always be accurate or complete. Please verify important information before relying on it.
Coforge: Where AI engineering meets industry expertise.
Learn about our company, our vision and values, and the 45,000+ professionals enabling businesses to harness the power of AI.
Learn more about Coforge
Learn about our company, our vision and values, and the 45,000+ professionals enabling businesses to harness the power of AI.
Learn more about Coforge
Coforge: Where AI engineering meets industry expertise.
Learn about our company, our vision and values, and the 45,000+ professionals enabling businesses to harness the power of AI.
Learn more about Coforge
Learn about our company, our vision and values, and the 45,000+ professionals enabling businesses to harness the power of AI.
Learn more about Coforge
BLOG | Enabling HMAC authentication with Anypoint Platform
AI Summary
Key points of this article, generated by AI.
Generating AI Summary
You are interacting with an AI system. AI-generated responses may not always be accurate or complete. Please verify important information before relying on it.
There are many applications that use HMAC-based authentication (for example Microsoft Teams’ chat bot). This blog explains how to create a reusable custom policy with MuleSoft Anypoint Platform in order to authenticate requests from applications using HMAC authentication.
[HMAC is a specific type of message authentication code. The client sends the HMAC original message (not encrypted) along with the hash. The server side receives the message and, using the secret token of the server, hashes the message to compare it with the received hash. If there is a match, then the authentication passes; if not, the authentication is declined.]
Steps to create a reusable custom policy for HMAC authentication

*the sample groovy script needs to be added to the ‘before’ section of the policy xml file.

In this stage you can also specify message filters to apply if the inbound hash is null or not equal to the generated hash. The filters can refer to the processor chains which need to be defined outside the ‘before’ section of the policy.



Now the HMAC-based client application can now test our Mule application to which we attached the policy.
If you would like to find out more about Anypoint Platform and how to enable HMAC authentication, we can help. Give us a call or email us at Salesforce@coforge.com
Other useful links
WHAT WE DO
Explore our wide gamut of digital transformation capabilities and our work across industries
Enabling HMAC authentication with Anypoint Platform
Voice is AI-Generated. Inconsistencies may occur.
You are interacting with an AI system. AI-generated responses may not always be accurate or complete. Please verify important information before relying on it.
When you use the “Coforge AI” on our website, the information you enter in the chat (“prompts”) is processed to generate responses to your queries about Coforge and the content available on our website.
For more information about how Coforge processes personal data when you visit or interact with our website, please refer to our Global Privacy Statement.