omniauth_crowd 2.3.0 → 2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/Gemfile.lock +1 -1
- data/lib/omniauth/strategies/crowd.rb +3 -3
- data/lib/omniauth/strategies/crowd/configuration.rb +0 -4
- data/lib/omniauth_crowd/version.rb +1 -1
- data/omniauth_crowd.gemspec +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 798ccfc837c9eb1c91ab831522738afccc09938c
|
4
|
+
data.tar.gz: 10af081b5be44743c49101c13fc088d73964654d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daec40a1ef3f6ef881d544838343f51de819dd32a710ed7b497df8178f16ebb4d9faf76022d8e0dc310dc1e63f10904154a64dbc8adb378d40424b3949dbf1bf
|
7
|
+
data.tar.gz: fedb503d1760ebd704661d612aebecc29abb94880d8811fb33658cba81163213ecbfdaf1da207adec0f776164f5ded6bec3b8519bcfb09786c51b5363bec160f
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -19,7 +19,7 @@ module OmniAuth
|
|
19
19
|
def request_phase
|
20
20
|
if env['REQUEST_METHOD'] == 'GET'
|
21
21
|
|
22
|
-
if @configuration.
|
22
|
+
if @configuration.use_sessions? && request.cookies[@configuration.session_cookie]
|
23
23
|
redirect callback_url
|
24
24
|
else
|
25
25
|
get_credentials
|
@@ -53,7 +53,7 @@ module OmniAuth
|
|
53
53
|
text_field 'Login', 'username'
|
54
54
|
password_field 'Password', 'password'
|
55
55
|
|
56
|
-
if configuration.
|
56
|
+
if configuration.use_sessions? && configuration.sso_url
|
57
57
|
fieldset 'SSO' do
|
58
58
|
html "<a href=\"#{configuration.sso_url}/users/auth/crowd/callback\">" + (configuration.sso_url_image ? "<img src=\"#{configuration.sso_url_image}\" />" : '') + "</a>"
|
59
59
|
end
|
@@ -70,7 +70,7 @@ module OmniAuth
|
|
70
70
|
password = creds.nil? ? nil : creds['password']
|
71
71
|
|
72
72
|
unless creds
|
73
|
-
if @configuration.
|
73
|
+
if @configuration.use_sessions? && request.cookies[@configuration.session_cookie]
|
74
74
|
validator = CrowdValidator.new(@configuration, username, password, get_client_ip, get_sso_tokens)
|
75
75
|
else
|
76
76
|
return fail!(:no_credentials)
|
@@ -51,10 +51,6 @@ module OmniAuth
|
|
51
51
|
@user_group_url.nil? ? nil : append_username( @user_group_url, username)
|
52
52
|
end
|
53
53
|
|
54
|
-
def use_sso?()
|
55
|
-
@use_sessions && @sso_url ? true : false
|
56
|
-
end
|
57
|
-
|
58
54
|
private
|
59
55
|
def parse_params(options)
|
60
56
|
options= {:include_user_groups => true}.merge(options || {})
|
data/omniauth_crowd.gemspec
CHANGED
@@ -17,9 +17,9 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.require_paths = ["lib"]
|
18
18
|
gem.version = OmniAuth::Crowd::VERSION
|
19
19
|
|
20
|
-
gem.
|
21
|
-
gem.
|
22
|
-
gem.
|
20
|
+
gem.add_runtime_dependency 'omniauth', '~> 1.0'
|
21
|
+
gem.add_runtime_dependency 'nokogiri', '>= 1.4.4'
|
22
|
+
gem.add_runtime_dependency 'activesupport', '>= 0'
|
23
23
|
gem.add_development_dependency(%q<rack>, [">= 0"])
|
24
24
|
gem.add_development_dependency(%q<rake>, [">= 0"])
|
25
25
|
gem.add_development_dependency(%q<rack-test>, [">= 0"])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth_crowd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Di Marco
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
184
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.4.
|
185
|
+
rubygems_version: 2.4.8
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: An OmniAuth provider for Atlassian Crowd REST API
|