Sha256: 871ce9e47053eb236648ffc7b893e6e86351f0a81f7081f5059da56fd62d18c6
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'pansophy_authenticator/version' module PansophyAuthenticator def self.configure configurator = Configuration::Configurator.new yield configurator if block_given? @configuration = configurator.configuration end def self.configuration @configuration ||= configure end def self.remote? configuration.remote? end def self.own_key ApplicationKeys.own end def self.authenticate!(application, key) ApplicationKeys.validate!(application, key) end def self.clear_cached_keys ApplicationKeys.clear_cache end %i(key valid?).each do |method| define_singleton_method(method) { |*args| ApplicationKeys.send(method, *args) } end Error = Class.new(StandardError) end require 'pansophy_authenticator/configuration' require 'pansophy_authenticator/application_keys' require 'pansophy_authenticator/matcher' require 'pansophy_authenticator/local' require 'pansophy_authenticator/remote' require 'pansophy_authenticator/cache_stores/memory' require 'pansophy_authenticator/cache'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pansophy_authenticator-0.3.0 | lib/pansophy_authenticator.rb |
pansophy_authenticator-0.2.0 | lib/pansophy_authenticator.rb |