DEV Community

Rajalakshmi
Rajalakshmi

Posted on

Throws signature Exception while Integrating new API services in AEM

In Aem we would configure a service in such a way that it contains Aws access key, secret key, service name, channel, host.
Already application is working fine for such configuration by utilising this server credentials.
But when I try to add new server with new credentials, host, access and secret key for some specific services it throws invalid signature Exception with the response as canonical string to string doesn't match with the generated one.

My doubt is does will signature generating code changes for different server credentials? And note aem doesn't use any Aws SDK.

Or else any other steps need to be performed from AEM side for accessing services Aws other than these
1.configuring a new server under apps/project/config.author folder
2.Accessing it from Java code and passing to 2 methods one for generating Aws headers (signature is generated at this step using AWSV4auth.java code) and other one for executing the post request call by passing access,secret key,Aws headers and getting the response.
In the response it's showing as "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."

Top comments (0)