Sha256: 0af1419335cd54dee0e9f3e322e92e791e67e0b312d7c966828f7368b92a1600

Contents?: true

Size: 537 Bytes

Versions: 18

Compression:

Stored size: 537 Bytes

Contents

require "wcc/auth/version"
require "wcc/auth/config"

require "wcc/auth/access_level"
require "wcc/auth/ability"
require "wcc/auth/providers"
require "wcc/auth/controller_helpers"

require "omniauth"
require "omniauth-oauth2"

module WCC
  module Auth

    def self.setup
      yield config
      finalize
    end

    def self.config
      @config ||= WCC::Auth::Config.new
    end

    def self.finalize
      finalize_callbacks.each(&:call)
    end

    def self.finalize_callbacks
      @finalize_callbacks ||= []
    end

  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
wcc-auth-0.9.0 lib/wcc/auth.rb
wcc-auth-0.8.3 lib/wcc/auth.rb
wcc-auth-0.8.2 lib/wcc/auth.rb
wcc-auth-0.8.1 lib/wcc/auth.rb
wcc-auth-0.8.0 lib/wcc/auth.rb
wcc-auth-0.7.3 lib/wcc/auth.rb
wcc-auth-0.7.2 lib/wcc/auth.rb
wcc-auth-0.7.1 lib/wcc/auth.rb
wcc-auth-0.7.0 lib/wcc/auth.rb
wcc-auth-0.6.0 lib/wcc/auth.rb
wcc-auth-0.5.0 lib/wcc/auth.rb
wcc-auth-0.4.0 lib/wcc/auth.rb
wcc-auth-0.3.5 lib/wcc/auth.rb
wcc-auth-0.3.4 lib/wcc/auth.rb
wcc-auth-0.3.3 lib/wcc/auth.rb
wcc-auth-0.3.2 lib/wcc/auth.rb
wcc-auth-0.3.1 lib/wcc/auth.rb
wcc-auth-0.3.0 lib/wcc/auth.rb