Sha256: 31431143dd19d43a66bad64d70c8d600e6acfead44a2ae0f1c80db77fb1e9763
Contents?: true
Size: 884 Bytes
Versions: 1
Compression:
Stored size: 884 Bytes
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 %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'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pansophy_authenticator-0.1.0 | lib/pansophy_authenticator.rb |