Class: Nyauth::ConfirmationRequestsController

Inherits:
ApplicationController
  • Object
show all
Includes:
ControllerConcern
Defined in:
app/controllers/nyauth/confirmation_requests_controller.rb

Instance Method Summary collapse

Methods included from ClientConcern

#initialize

Methods included from SessionConcern

#current_authenticated, #require_authentication!, #sign_in, #sign_out, #signed_in?, #store_signed_in_session

Methods included from ApplicationHelper

#detect_url_helper, #detect_url_helper_for_app, #detect_url_helper_for_nyauth, #method_missing, #root_path

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Nyauth::ApplicationHelper

Instance Method Details

#createObject



13
14
15
16
# File 'app/controllers/nyauth/confirmation_requests_controller.rb', line 13

def create
  @service.save(as: nyauth_client_name)
  respond_with(@service, location: Nyauth.configuration.redirect_path_after_create_request_confirmation.call(nyauth_client_name) || main_app.root_path)
end

#newObject



10
11
# File 'app/controllers/nyauth/confirmation_requests_controller.rb', line 10

def new
end