Module: DeviseAuthProxy
- Defined in:
- lib/devise_auth_proxy.rb,
lib/devise_auth_proxy/helper.rb,
lib/devise_auth_proxy/manager.rb,
lib/devise_auth_proxy/version.rb
Defined Under Namespace
Modules: Helper Classes: Error, Manager
Constant Summary collapse
- VERSION =
"0.2.3"
Class Attribute Summary collapse
-
.attribute_map ⇒ Object
Returns the value of attribute attribute_map.
-
.auth_key ⇒ Object
Returns the value of attribute auth_key.
-
.auto_create ⇒ Object
Returns the value of attribute auto_create.
-
.auto_update ⇒ Object
Returns the value of attribute auto_update.
-
.default_role ⇒ Object
Returns the value of attribute default_role.
-
.env_key ⇒ Object
Returns the value of attribute env_key.
-
.http_cookie ⇒ Object
Returns the value of attribute http_cookie.
-
.logout_service ⇒ Object
Returns the value of attribute logout_service.
-
.logout_url ⇒ Object
Returns the value of attribute logout_url.
Class Method Summary collapse
Class Attribute Details
.attribute_map ⇒ Object
Returns the value of attribute attribute_map.
6 7 8 |
# File 'lib/devise_auth_proxy.rb', line 6 def attribute_map @attribute_map end |
.auth_key ⇒ Object
Returns the value of attribute auth_key.
6 7 8 |
# File 'lib/devise_auth_proxy.rb', line 6 def auth_key @auth_key end |
.auto_create ⇒ Object
Returns the value of attribute auto_create.
6 7 8 |
# File 'lib/devise_auth_proxy.rb', line 6 def auto_create @auto_create end |
.auto_update ⇒ Object
Returns the value of attribute auto_update.
6 7 8 |
# File 'lib/devise_auth_proxy.rb', line 6 def auto_update @auto_update end |
.default_role ⇒ Object
Returns the value of attribute default_role.
6 7 8 |
# File 'lib/devise_auth_proxy.rb', line 6 def default_role @default_role end |
.env_key ⇒ Object
Returns the value of attribute env_key.
6 7 8 |
# File 'lib/devise_auth_proxy.rb', line 6 def env_key @env_key end |
.http_cookie ⇒ Object
Returns the value of attribute http_cookie.
6 7 8 |
# File 'lib/devise_auth_proxy.rb', line 6 def @http_cookie end |
.logout_service ⇒ Object
Returns the value of attribute logout_service.
6 7 8 |
# File 'lib/devise_auth_proxy.rb', line 6 def logout_service @logout_service end |
.logout_url ⇒ Object
Returns the value of attribute logout_url.
6 7 8 |
# File 'lib/devise_auth_proxy.rb', line 6 def logout_url @logout_url end |
Class Method Details
.configure {|_self| ... } ⇒ Object
41 42 43 |
# File 'lib/devise_auth_proxy.rb', line 41 def self.configure yield self end |
.proxy_user_id(env) ⇒ Object
45 46 47 48 49 50 51 52 |
# File 'lib/devise_auth_proxy.rb', line 45 def self.proxy_user_id(env) case env_key when Proc env_key.call(env) else env[env_key] end end |