Constructing and validating a Gigya signature

前端 未结 3 1013
小蘑菇
小蘑菇 2021-02-06 00:58

I wrote a method to verify a gigya signature against a specified timestamp and UID, based on Gigya\'s instructions for constructing a signature. Here is Gigya\'s psu

3条回答
  •  春和景丽
    2021-02-06 01:12

    Well I finally heard back from gigya yesterday regarding this issue, and it turns out their own server-side Java API exposes a method for handling this use case, SigUtils.validateUserSignature:

    if (SigUtils.validateUserSignature(uid, timestamp, secretKey, signature)) { ... }
    

    Today I was able to verify that this call is behaving correctly, so that solves the immediate issue and turns this whole post into a kind of a facepalm moment for me.

    However:

    I'm still interested in why my own home-rolled method doesn't work (and I have a bounty to award anyway). I'll examine it again this coming week and compare it with the SigUtils class file to try and figure out what went wrong.

提交回复
热议问题