firebase_id_token
firebase_id_token copied to clipboard
A Ruby gem to verify the signature of Firebase ID Tokens.
I was wondering if you had any thoughts on this: ``` def login sleep(2) decoded = verify_token(params[:token]) puts(decoded) json_response(firebase_data: decoded) end def verify_token(token) FirebaseIdToken::Signature.verify(token) end ``` ^works ``` def login...
https://github.com/fschuindt/firebase_id_token/blob/785aa5082a2971dc78cf7dca062c28d864df4618/lib/firebase_id_token/signature.rb#L99 I do have valid latest certificates from Google APIs stored in Redis. The above method is throwing the following error. ``` > JWT.decode(token, cert_key, true, {:algorithm=>"RS256", :verify_iat=> false}) Traceback...
Hi, this is a great gem. I want to know if anyone could help me with this issue. When I try to verify a token I get nil, but the...
my docker couldn't build my app because it doesn't redis locally it works after I modified configuration file https://github.com/hungryhub-team/firebase_id_token/commit/90872038deee8c42ccaabaf79b2bf58f00718340
Thanks for this great gem. It really very helpful for known projects ids. But for dynamic project id(s) this gem is not thread safe. In our case we have so...
I was messing around with the gem and it seems like it'd be pretty easy to use Rails.cache.fetch to pull in the new certs if they're expired. I see a...
 As shown in this image, the test coverage report by Code Climate is "unknown". I don't know what's happening and have little time to investigate at the...
Hi, I've been struggling today with the implementation of my tests with rspec, which would not pass even using the `FirebaseIdToken.test!` and the pretty cool code snippet explaining how to...
Following the opened [issue](https://github.com/fschuindt/firebase_id_token/issues/37) about completing documentation for testing, here is a suggestion of modifications to make it more clear.
This appears to be functional in code. I'm going to be testing it for a while to see if I can get good backward compatibility. todo - [x] update comments...