Module: FirebaseIdToken

Defined in:
lib/firebase_id_token.rb,
lib/firebase_id_token/version.rb,
lib/firebase_id_token/signature.rb,
lib/firebase_id_token/certificates.rb,
lib/firebase_id_token/configuration.rb,
lib/firebase_id_token/exceptions/no_certificates_error.rb,
lib/firebase_id_token/exceptions/certificates_ttl_error.rb,
lib/firebase_id_token/exceptions/certificates_request_error.rb

Overview

List of available methods

Configuration

You need to set your Firebase Project ID. Additionally you can set your Redis server instance in case you don't use Redis defaults.

WARNING: Your project_ids must be a Array.

FirebaseIdToken.configure do |config|
  config.project_ids = ['my-project-id', 'another-project-id']
  congig.redis = Redis.new(:host => "10.0.1.1", :port => 6380, :db => 15)
end

Defaults

  • project_ids => []
  • redis => Redis.new

Defined Under Namespace

Modules: Exceptions Classes: Certificates, Configuration, Signature

Constant Summary

VERSION =
'2.0.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



45
46
47
# File 'lib/firebase_id_token.rb', line 45

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



54
55
56
# File 'lib/firebase_id_token.rb', line 54

def self.configure
  yield configuration
end

.resetObject

Resets Configuration to defaults.



50
51
52
# File 'lib/firebase_id_token.rb', line 50

def self.reset
  @configuration = Configuration.new
end