Replicate Hawk Authentication in Power Automate?

18 views Asked by At

I hope someone can assist with this - I'm bringing a number of basic API calls into our Power Automate environment to ease the flow of data, and the latest platform I've started working with uses Hawk Authentication - something Microsoft doesn't support.

The protocol appears to be in "maintenance mode" so I don't think Microsoft will be taking it up anytime soon. The platform confirms to me that moving away from Hawk is not on their roadmap.

I'll confess to not knowing much about anything beyond Basic and Oauth authentication methods, so this one has me stumped. I see I need to generate a HMAC value in conjunction with my credentials, and I'm wondering if there's anyway I can recreate this?

I've checked over the documentation and code to try to figure out what I might need.

I've got my app ID and Key, the algorithm is sha256.

I think I can create a HMAC using Binary functions within Power Automate?

I've got the following to generate a timestamp:

div(sub(ticks(utcNow()),ticks('1970-01-01T00:00:00Z')),10000000)

I'm slightly confused on the Nonce - all the documentation seems to suggest that the Nonce values are 6 digit alphanumeric - something generated by random.org could work?

I don't know if I've got the beginnings of a recipe to make this work or not. I'd appreciate some pointers/guidance/suggested next steps!

0

There are 0 answers