appengine/endpoints/app.rb [45:57]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Retrieves the authenication information from Google Cloud Endpoints.
def auth_info
  encoded_info = request.env["HTTP_X_ENDPOINT_API_USERINFO"]

  if encoded_info
    info_json = Base64.decode64 encoded_info
    user_info = JSON.parse info_json
  else
    user_info = { id: "anonymous" }
  end

  user_info.to_json
end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



appengine/flexible/ruby31-and-earlier/endpoints/app.rb [45:57]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Retrieves the authenication information from Google Cloud Endpoints.
def auth_info
  encoded_info = request.env["HTTP_X_ENDPOINT_API_USERINFO"]

  if encoded_info
    info_json = Base64.decode64 encoded_info
    user_info = JSON.parse info_json
  else
    user_info = { id: "anonymous" }
  end

  user_info.to_json
end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



endpoints/getting-started/app.rb [35:47]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Retrieves the authenication information from Google Cloud Endpoints.
def auth_info
  encoded_info = request.env["HTTP_X_ENDPOINT_API_USERINFO"]

  if encoded_info
    info_json = Base64.decode64 encoded_info
    user_info = JSON.parse info_json
  else
    user_info = { id: "anonymous" }
  end

  user_info.to_json
end
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



