Class: Locomotive::Steam::Middlewares::Auth
- Inherits:
-
ThreadSafe
- Object
- ThreadSafe
- Locomotive::Steam::Middlewares::Auth
- Includes:
- Helpers
- Defined in:
- lib/locomotive/steam/middlewares/auth.rb
Overview
Process all the authentication actions:
-
sign up
-
sign in
-
new reset password
-
reset password
-
sign out
It is also in charge to load the current authenticated resource from the session and put it in the liquid context.
Defined Under Namespace
Classes: AuthOptions
Instance Attribute Summary
Attributes inherited from ThreadSafe
Instance Method Summary collapse
Methods included from Helpers
#decorate_entry, #default_liquid_context, #default_locale, #html?, #json?, #liquid_assigns, #live_editing?, #locale, #locales, #log, #make_local_path, #modify_path, #mounted_on, #page, #params, #path, #redirect_to, #render_response, #repositories, #request, #services, #site
Methods inherited from ThreadSafe
Instance Method Details
#_call ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/locomotive/steam/middlewares/auth.rb', line 18 def _call load_authenticated_entry = AuthOptions.new(site, params) return unless .valid? send(:"#{.action}", ) end |