Sha256: de73afb11496e7a62728a59196bb19a773c49ad851560c10b5abfe97c67af239

Contents?: true

Size: 1.3 KB

Versions: 48

Compression:

Stored size: 1.3 KB

Contents

module Spider
    module Auth
        @description = ""
        @version = 0.1
        @path = File.dirname(__FILE__)
        include Spider::App
        
        def self.current_user
            Spider.current[:current_user]
        end
        
        def self.current_user=(uid)
            Spider.current[:current_user] = User.new(uid)
        end
        
        class Unauthorized < SecurityError
            attr_accessor :user
            
            def initialize(msg, user=nil)
                super msg
                @user = user if user
            end
            
        end
    end
end

require 'apps/core/auth/lib/authenticable'
require 'apps/core/auth/lib/login_authenticator'
require 'apps/core/auth/lib/digest_authenticator'
#require 'apps/core/auth/models/mixins/access_control'
require 'apps/core/auth/models/mixins/authentication_tracking'
require 'apps/core/auth/models/user'
require 'apps/core/auth/models/login_user'
require 'apps/core/auth/models/digest_user'
require 'apps/core/auth/models/super_user'
require 'apps/core/auth/controllers/login_controller'
require 'apps/core/auth/controllers/mixins/auth_helper'
require 'apps/core/auth/controllers/mixins/http_basic_auth'
require 'apps/core/auth/controllers/mixins/http_digest_auth'

Spider::Auth.route 'login', Spider::Auth::LoginController

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
spiderfw-1.0.1 apps/core/auth/_init.rb
spiderfw-1.0.0 apps/core/auth/_init.rb
spiderfw-0.6.39 apps/core/auth/_init.rb
spiderfw-0.6.38 apps/core/auth/_init.rb
spiderfw-0.6.37 apps/core/auth/_init.rb
spiderfw-0.6.35 apps/core/auth/_init.rb
spiderfw-0.6.34 apps/core/auth/_init.rb
spiderfw-0.6.33 apps/core/auth/_init.rb
spiderfw-0.6.32 apps/core/auth/_init.rb
spiderfw-0.6.31 apps/core/auth/_init.rb
spiderfw-0.6.30 apps/core/auth/_init.rb
spiderfw-0.6.29 apps/core/auth/_init.rb
spiderfw-0.6.28 apps/core/auth/_init.rb
spiderfw-0.6.27 apps/core/auth/_init.rb
spiderfw-0.6.26 apps/core/auth/_init.rb
spiderfw-0.6.26.pre1 apps/core/auth/_init.rb
spiderfw-0.6.25 apps/core/auth/_init.rb
spiderfw-0.6.24 apps/core/auth/_init.rb
spiderfw-0.6.23 apps/core/auth/_init.rb
spiderfw-0.6.22 apps/core/auth/_init.rb