@AboorvaRaja Ramar Thanks for reaching out. Postman has the inbuild java scripts that does the magic and creates the right header for you while sending the request.
There is no out of box solution to set the OAuth Signature Method (HMAC-SHA256) so you need to generate the right header that your endpoint accepts and pass the same leverage the HTTP action in logic app.
I am not sure how and what other headers your API validates at their end. Sharing one of previous discussion where the endpoint accepts api-auth-id and api-auth-signature at their endpoint end as per the documented at the endpoint end.
I believe the string construction would be same for SHA256 just changing the oauth_signature_method value as per the RFC standard which you need to pass as the Authorization header while calling your endpoint.
Alternative you can capture the request generated by Postman (how request is built and what actual HTTP header are passed) using fiddler and use the same to generate the right Authorization header or you need to reach out to your endpoint team to know what is the right header that is accepted by them.
For any calculation or to generate the stings you can first try to leverage the inbuild function expression. If it doesn't help, then you can try to leverage the inline code. But in case if there are some libraries that cannot be used in inline code then you need to offload your logic to function app.