lib/uaa/scim.rb in cf-uaa-lib-3.2.1 vs lib/uaa/scim.rb in cf-uaa-lib-3.2.2

- old
+ new

@@ -10,10 +10,11 @@ # subcomponents is subject to the terms and conditions of the # subcomponent's license, as noted in the LICENSE file. #++ require 'uaa/http' +require 'uri' module CF::UAA # This class is for apps that need to manage User Accounts, Groups, or OAuth # Client Registrations. It provides access to the SCIM endpoints on the UAA. @@ -316,10 +317,10 @@ 'authorization' => @auth_header)) result end def unmap_group(group_id, external_group) - http_delete(@target, "#{type_info(:group_mapping, :path)}/id/#{group_id}/#{external_group}", + http_delete(@target, "#{type_info(:group_mapping, :path)}/id/#{group_id}/#{URI.encode(external_group)}", @auth_header) end def list_group_mappings(start = nil, count = nil) json_get(@target, "#{type_info(:group_mapping, :path)}/list?startIndex=#{start}&count=#{count}", @key_style, 'authorization' => @auth_header)