{"repo":"fschuindt/firebase_id_token","free":true,"listed":false,"github":"https://github.com/fschuindt/firebase_id_token","clone":"git clone https://github.com/fschuindt/firebase_id_token.git","description":"A Ruby gem to verify the signature of Firebase ID Tokens.","language":"Ruby","stars":158,"topics":["ruby","ruby-on-rails","firebase","firebase-auth","jwt","token"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Ruby Firebase ID Token verifier A Ruby gem to verify the signature of Firebase ID Tokens (JWT). It uses ActiveSupport::Cache to store Google's x509 certificates and manage their expiration time, so you don't need to request Google's API in every execution and can access it as fast as reading from memory. It also checks the JWT payload parameters as recommended here by Firebase official documentation. Feel free to open any issue or to contact me directly. Any contribution is welcome. Docs + http://www.rubydoc.info/gems/firebase id token Installing or in your Gemfile then Configuration It's needed to set up your Firebase Project ID. If you are using Rails, this should probably go into config/initializers/firebase id token.rb . You can use the old method of configuration as well. If you use this method, you'll have to proactively download certificates (see Downloading Certificates below) - A cache store instance inheriting from ActiveSupport::Cache::Store must be supplied. - Examples: - ActiveSupport::Cache::RedisCacheStore.new(Redis.new(host: '10.0.1.1', port: 6380, db: 15)) - ActiveSupport::Cache::MemoryStore.new(namespace: \"firebase auth\") - ActiveSupport::Cache::FileStore.new(\"cache\", namespace: \"firebase auth\") - Rails.cache - project ids must be an Array. If you want to verify signatures from more than one Firebase project, just add more Project IDs to the list. Usage You can get a glimpse of it by reading our RSpec output on your machine. It's really helpful. But here is ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fschuindt","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fschuindt/firebase_id_token/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}