Sha256: 129ae3b0d2484d6877234f8e78e4404d352ecf8edb687bf3b19f310becb25acf

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

require_relative 'simple_token_auth/configuration'
require_relative 'simple_token_auth/helpers'

module SimpleTokenAuth
  extend Configuration
  extend Helpers

  class << self
    def compare_token(a, b)
      compare_token_strategy.(a, b)
    end

    def generate_authentication_token
      generate_authentication_token_strategy.()
    end

    def find_scope(scope_class, token)
      find_scope_strategy.(scope_class, token)
    end

    def after_authenticated(scope, controller)
      after_authenticated_strategy.(scope, controller)
    end
  end
end

require_relative 'simple_token_auth/authenticate_with_token'
require_relative 'simple_token_auth/token_authenticatable'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_token_auth-0.0.4 lib/simple_token_auth.rb
simple_token_auth-0.0.3 lib/simple_token_auth.rb