# File lib/rhc/rest/client.rb, line 160 def authorization_scope_list raise AuthorizationsNotSupported unless supports_sessions? link = api.links['ADD_AUTHORIZATION'] scope = link['optional_params'].find{ |h| h['name'] == 'scope' } scope['description'].scan(/(?!\n)\*(.*?)\n(.*?)(?:\n|\Z)/m).inject([]) do |h, (a, b)| h << [a.strip, b.strip] if a.present? && b.present? h end end