Module: ProxyAuthentication
- Defined in:
- lib/proxy_authentication/test_helpers.rb,
lib/proxy_authentication.rb,
lib/proxy_authentication/cipher.rb,
lib/proxy_authentication/helpers.rb,
lib/proxy_authentication/version.rb,
lib/proxy_authentication/authentication_cipher.rb
Overview
Based on Kentaro Imai’s code: kentaroimai.com/articles/1-controller-test-helpers-for-warden
Defined Under Namespace
Modules: AuthenticationCipher, Cipher, Helpers, TestHelpers
Constant Summary collapse
- VERSION =
"0.0.4"
- @@user_class =
'User'
- @@redirect_to_if_authentication_failed =
nil
- @@secret_key =
nil
- @@validate_with_block =
nil
Class Method Summary collapse
Class Method Details
.setup {|_self| ... } ⇒ Object
21 22 23 24 25 |
# File 'lib/proxy_authentication.rb', line 21 def setup setup_warden include_helpers yield self if block_given? end |
.validate_with(&block) ⇒ Object
27 28 29 |
# File 'lib/proxy_authentication.rb', line 27 def validate_with &block @@validate_with_block = block end |