app/controllers/developer_controller.rb
# Handle secure data access cookie validation failure response
#
# 1. delete cookie
# 3. remove authentication related critical data to sent in response
#
# * Author: Dhananjay
# * Date: 05/06/2019
# * Reviewed By:
#
Handle secure data access cookie validation failure response
1. delete cookie
3. remove authentication related critical data to sent in response

Dhananjay
Date: 05/06/2019
Reviewed By.
Handle secure data access cookie validation failure response 1 . delete cookie 3 . remove authentication related critical data to sent in response Dhananjay Date : 05 / 06 / 2019 Reviewed By .
def handle_sda_cookie_validation_failure(cookie_verify_rsp)
    delete_cookie(GlobalConstant::Cookie.secure_data_access_cookie_name)
    cookie_verify_rsp.go_to = GlobalConstant::GoTo.developer
    cookie_verify_rsp.data = {}
    return render_api_response(cookie_verify_rsp)
  end
def handle_sda_cookie_validation_failure ( cookie_verify_rsp ) delete_cookie ( GlobalConstant :: Cookie . secure_data_access_cookie_name ) cookie_verify_rsp . go_to = GlobalConstant :: GoTo . developer cookie_verify_rsp . data = { } return render_api_response ( cookie_verify_rsp ) end
Handle secure data access cookie validation failure response
1. delete cookie
3. remove authentication related critical data to sent in response
Handle secure data access cookie validation failure response 1 . delete cookie 3 . remove authentication related critical data to sent in response
# Clear cookie # Set 401 header #cookie_verify_rsp.http_code = GlobalConstant::ErrorCode.unauthorized_access
cookie_verify_rsp