omniauth_crowd 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth_crowd (2.2.1)
4
+ omniauth_crowd (2.2.2)
5
5
  nokogiri (>= 1.4.4)
6
6
  omniauth (~> 1.0)
7
7
 
@@ -7,6 +7,8 @@ module OmniAuth
7
7
  DEFAULT_SESSION_URL = "%s/rest/usermanagement/latest/session"
8
8
  DEFAULT_AUTHENTICATION_URL = "%s/rest/usermanagement/latest/authentication"
9
9
  DEFAULT_USER_GROUP_URL = "%s/rest/usermanagement/latest/user/group/direct"
10
+ DEFAULT_CONTENT_TYPE = 'application/xml'
11
+
10
12
  attr_reader :crowd_application_name, :crowd_password, :disable_ssl_verification, :include_users_groups, :use_sessions, :session_url, :content_type
11
13
 
12
14
  alias :"disable_ssl_verification?" :disable_ssl_verification
@@ -53,7 +55,7 @@ module OmniAuth
53
55
  @crowd_application_name = options[:application_name]
54
56
  @crowd_password = options[:application_password]
55
57
  @use_sessions = options[:use_sessions]
56
- @content_type = options[:content_type]
58
+ @content_type = options[:content_type] || DEFAULT_CONTENT_TYPE
57
59
 
58
60
  unless options.include?(:crowd_server_url) || options.include?(:crowd_authentication_url)
59
61
  raise ArgumentError.new("Either :crowd_server_url or :crowd_authentication_url MUST be provided")
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Crowd
3
- VERSION = "2.2.1"
3
+ VERSION = "2.2.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth_crowd
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  segments:
181
181
  - 0
182
- hash: 2543748963679451209
182
+ hash: 676627675687607674
183
183
  required_rubygems_version: !ruby/object:Gem::Requirement
184
184
  none: false
185
185
  requirements:
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  version: '0'
189
189
  segments:
190
190
  - 0
191
- hash: 2543748963679451209
191
+ hash: 676627675687607674
192
192
  requirements: []
193
193
  rubyforge_project:
194
194
  rubygems_version: 1.8.25