Sha256: 71121dba78bbb3f239d9d7fbe2d902baa1733abff47d0fc9e30b9c5e1d3a8873

Contents?: true

Size: 202 Bytes

Versions: 7

Compression:

Stored size: 202 Bytes

Contents

module PrxAuth
  module Rails
    module Controller
      def prx_auth_token
        request.env['prx.auth']
      end

      def prx_authenticated?
        !!prx_auth_token
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
prx_auth-rails-0.3.0 lib/prx_auth/rails/ext/controller.rb
prx_auth-rails-0.2.0 lib/prx_auth/rails/ext/controller.rb
prx_auth-rails-0.1.0 lib/prx_auth/rails/ext/controller.rb
prx_auth-rails-0.0.4 lib/prx_auth/rails/ext/controller.rb
prx_auth-rails-0.0.3 lib/prx_auth/rails/ext/controller.rb
prx_auth-rails-0.0.2 lib/prx_auth/rails/ext/controller.rb
prx_auth-rails-0.0.1 lib/prx_auth/rails/ext/controller.rb