module Octo::Sinatra::Helper

Constants

KONG_AUTH_HEADERS

The headers on which kong sends the authenticated details

Public Instance Methods

enterprise_details() click to toggle source

Finds the enterprise details return [Array<String>] Enterprise's Id, Custom Name and User Name

# File lib/octocore-cassandra/helpers/sinatra_helper.rb, line 12
def enterprise_details
  KONG_AUTH_HEADERS.collect do |prop|
    request.env.fetch(prop, nil)
  end
end