Sha256: 5aaa385df53fb4af2d526338a92528add393cdd8b0ef0f38b4ac547e8a600a81

Contents?: true

Size: 601 Bytes

Versions: 61

Compression:

Stored size: 601 Bytes

Contents

require 'apps/core/auth/lib/digest_authenticator'

module Spider; module Auth
    
    module HTTPDigestAuth
        include HTTP
        
        def before(action='', *arguments)
            if (uid = check_digest_auth(Spider::Auth::DigestUser))
                @request.session['uid'] = uid
                Spider::Auth.current_user = uid
            end
            super
        end
        
        def try_rescue(exc)
            if (exc.is_a?(Unauthorized))
                challenge_digest_auth
            else
                super
            end
        end
        
    end
    
end; end

Version data entries

61 entries across 61 versions & 1 rubygems

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