Class: Cxf::BaseApiController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Cxf::BaseApiController
- Includes:
- ContactAuthHelper, CxfClients, UserAuthHelper
- Defined in:
- lib/cxf/controllers/base_api_controller.rb
Instance Method Summary collapse
-
#cxf_contact_magic_link_login(hash) ⇒ Object
Cxf contact Login.
- #define_cxf_clients ⇒ Object
Methods included from UserAuthHelper
#cxf_user_login, #cxf_user_logout, #cxf_user_magic_link_login, #cxf_user_signed_in?, #update_user_tokens
Methods included from ContactAuthHelper
#cxf_contact_login, #cxf_contact_logout, #cxf_contact_signed_in?, #update_contact_tokens
Instance Method Details
#cxf_contact_magic_link_login(hash) ⇒ Object
Cxf contact Login.
This method works to override the base to add the redirect parameter The main method is located in contact_auth_helper.rb
24 25 26 |
# File 'lib/cxf/controllers/base_api_controller.rb', line 24 def cxf_contact_magic_link_login(hash) super(hash, true) end |
#define_cxf_clients ⇒ Object
16 17 18 |
# File 'lib/cxf/controllers/base_api_controller.rb', line 16 def define_cxf_clients %w[contact pub] end |