Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Bug : proof must have the required hash with rails 5.2 #7

Closed
antonin-arquey opened this issue Jul 26, 2018 · 1 comment
Closed

Bug : proof must have the required hash with rails 5.2 #7

antonin-arquey opened this issue Jul 26, 2018 · 1 comment

Comments

@antonin-arquey
Copy link

Hello,

After upgrading to rails 5.2, we ran into an issue with this gem.
The srp verifier could not handle hash with strings key anymore.
(Error : proof must have required hash keys)

We had to change

srp.verify_session(@server_proof, @client_proof)

to

srp.verify_session(@server_proof.deep_symbolize_keys, @client_proof)

It seems that the Hashie symbolize keys line is not doing its job :

# gracefully handle string or symbol keys
Hashie.symbolize_keys!(proof)

@grempe grempe closed this as completed in 6c32b26 Aug 13, 2019
@grempe
Copy link
Owner

grempe commented Aug 13, 2019

Thanks for reporting and sorry for the extreme delay. It should be resolved now in my last commit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants