Sha256: 640daddb5171380a206b3897b1ea6556bf7e7a3b311b58c86927f4b37daf4375
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
require 'prx_auth/rails/token' module PrxAuth module Rails module Controller def prx_auth_token if !defined? @_prx_auth_token @_prx_auth_token = request.env['prx.auth'] && PrxAuth::Rails::Token.new(request.env['prx.auth']) else @_prx_auth_token end end def prx_authenticated? !!prx_auth_token end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
prx_auth-rails-1.2.0 | lib/prx_auth/rails/ext/controller.rb |
prx_auth-rails-1.0.0 | lib/prx_auth/rails/ext/controller.rb |