cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ExcelCat
New Member

Encrypting an API request with base64url and HmacSHA256

I'm trying to automate data from DegreeDays.net. They have a requirement that the request string is encoded via base64url and a signature is encoded with HmacSHA256 : https://www.degreedays.net/api/json#send

 

You need to send five parameters to the endpoint URL (http://apiv1.degreedays.net/json or https://apiv1.degreedays.net/json😞

  • request_encoding=base64url
  • signature_method=HmacSHA256 (or alternative)
  • signature_encoding=base64url
  • encoded_request (the JSON string, base64url encoded)
  • encoded_signature (the signature, base64url encoded)

 

I'm suprised that PowerAutomate doesn't have any encryption options - is there a way of me generating this information ?

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @ExcelCat,

 

It's unfortunate that there is no action that could encrypt the code.

As a workaround, you could use the base64() function to encode it into the base64 code:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#c...

 

But there is no function couldn't encode HmacSHA256 code, so this requirement maybe couldn't be satisfied in Flow.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @ExcelCat 

Encodian are releasing the following action which covers this requirement: Create HMAC

I appreciate this is a third party connector, however there is a 'Free' subscription plan which may cover your throughput requirements.

HTH

Jay

 

View solution in original post

2 REPLIES 2
v-litu-msft
Community Support
Community Support

Hi @ExcelCat,

 

It's unfortunate that there is no action that could encrypt the code.

As a workaround, you could use the base64() function to encode it into the base64 code:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#c...

 

But there is no function couldn't encode HmacSHA256 code, so this requirement maybe couldn't be satisfied in Flow.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi @ExcelCat 

Encodian are releasing the following action which covers this requirement: Create HMAC

I appreciate this is a third party connector, however there is a 'Free' subscription plan which may cover your throughput requirements.

HTH

Jay

 

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (29,797)