crowd-auth 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,9 +11,9 @@ module Crowd
11
11
  end
12
12
 
13
13
  def authenticate(username, password)
14
- rest_client = RestClient::Resource.new "#{@crowd_url}?username=#{username}", :user => @crowd_app_name, :password => @crowd_app_pass
14
+ rest_client = RestClient::Resource.new "#{@crowd_url}", :user => @crowd_app_name, :password => @crowd_app_pass
15
15
 
16
- resp = rest_client[@crowd_auth_uri].post "{\"value\":\"#{password}\"}", :accept => "application/json", :content_type => "application/json"
16
+ resp = rest_client["#{@crowd_auth_uri}?username=#{username}"].post "{\"value\":\"#{password}\"}", :accept => "application/json", :content_type => "application/json"
17
17
 
18
18
  return resp
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Crowd
2
2
  module Auth
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: crowd-auth
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ian Meyer