Module: PrxAuth::Rails::Controller
- Defined in:
- lib/prx_auth/rails/ext/controller.rb
Instance Method Summary collapse
Instance Method Details
#prx_auth_token ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/prx_auth/rails/ext/controller.rb', line 6 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 |
#prx_authenticated? ⇒ Boolean
14 15 16 |
# File 'lib/prx_auth/rails/ext/controller.rb', line 14 def prx_authenticated? !!prx_auth_token end |