app/controllers/developer_controller.rb
def authenticate_developer_page_access
    sda_cookie_verification_params = {
      sda_cookie_value: cookies[GlobalConstant::Cookie.secure_data_access_cookie_name.to_sym],
      action_name: action_name,
      manager_id: params[:manager_id]
    }
    cookie_verification_response = DeveloperManagement::VerifySecureDataAccess.new(sda_cookie_verification_params).perform

    if cookie_verification_response.success?
      # NOTE: delete cookie value from data
      cookie_value = cookie_verification_response.data.delete(:cookie_value)
      set_cookie(
        GlobalConstant::Cookie.secure_data_access_cookie_name,
        cookie_value,
        GlobalConstant::Cookie.secure_data_access_cookie_expiry.from_now
      )

      params[:show_keys_enable_flag] = cookie_verification_response.data[:show_keys_enable_flag]
      params[:email_already_sent_flag] = cookie_verification_response.data[:email_already_sent_flag]
    else
      handle_sda_cookie_validation_failure(cookie_verification_response)
    end

  end
# Authenticate developer page access
# Check if secure data access can be shown or email round-trip is required
#
# * Author: Dhananjay
# * Date: 29/05/2019
# * Reviewed By:
#
Authenticate developer page access
Check if secure data access can be shown or email round-trip is required

Dhananjay
Date: 29/05/2019
Reviewed By.
Authenticate developer page access Check if secure data access can be shown or email round - trip is required Dhananjay Date : 29 / 05 / 2019 Reviewed By .
def authenticate_developer_page_access
    sda_cookie_verification_params = {
      sda_cookie_value: cookies[GlobalConstant::Cookie.secure_data_access_cookie_name.to_sym],
      action_name: action_name,
      manager_id: params[:manager_id]
    }
    cookie_verification_response = DeveloperManagement::VerifySecureDataAccess.new(sda_cookie_verification_params).perform
    if cookie_verification_response.success?
      cookie_value = cookie_verification_response.data.delete(:cookie_value)
      set_cookie(
        GlobalConstant::Cookie.secure_data_access_cookie_name,
        cookie_value,
        GlobalConstant::Cookie.secure_data_access_cookie_expiry.from_now
      )
      params[:show_keys_enable_flag] = cookie_verification_response.data[:show_keys_enable_flag]
      params[:email_already_sent_flag] = cookie_verification_response.data[:email_already_sent_flag]
    else
      handle_sda_cookie_validation_failure(cookie_verification_response)
    end
  end
def authenticate_developer_page_access sda_cookie_verification_params = { sda_cookie_value : cookies [ GlobalConstant :: Cookie . secure_data_access_cookie_name . to_sym ] , action_name : action_name , manager_id : params [ :manager_id ] } cookie_verification_response = DeveloperManagement :: VerifySecureDataAccess . new ( sda_cookie_verification_params ) . perform if cookie_verification_response . success? cookie_value = cookie_verification_response . data . delete ( :cookie_value ) set_cookie ( GlobalConstant :: Cookie . secure_data_access_cookie_name , cookie_value , GlobalConstant :: Cookie . secure_data_access_cookie_expiry . from_now ) params [ :show_keys_enable_flag ] = cookie_verification_response . data [ :show_keys_enable_flag ] params [ :email_already_sent_flag ] = cookie_verification_response . data [ :email_already_sent_flag ] else handle_sda_cookie_validation_failure ( cookie_verification_response ) end end
Authenticate developer page access
Check if secure data access can be shown or email round-trip is required
Authenticate developer page access Check if secure data access can be shown or email round - trip is required
# NOTE: delete cookie value from data