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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6496c1f734a4cc164441c2cceb75039fa3751b2
4
- data.tar.gz: 9d8e8b2cff8787f2d346dcb45f06486a1596d08d
3
+ metadata.gz: 798ccfc837c9eb1c91ab831522738afccc09938c
4
+ data.tar.gz: 10af081b5be44743c49101c13fc088d73964654d
5
5
  SHA512:
6
- metadata.gz: 598ab5299d7381c0804b8afc81bd7227eea20d868ff2afd3dd38d4e9c518c6486706dc90a7d1b936c46c86e2d6bd6763fa2a7df0285bc6928564fb530a0e4cb2
7
- data.tar.gz: 7f88dc8845d027da6983af8a3e05e3c544e5dea8075977eb376708917140298fbd3f30b26173f929877433057aaf1ca56cf8fdec588f933eea463c268f4e638d
6
+ metadata.gz: daec40a1ef3f6ef881d544838343f51de819dd32a710ed7b497df8178f16ebb4d9faf76022d8e0dc310dc1e63f10904154a64dbc8adb378d40424b3949dbf1bf
7
+ data.tar.gz: fedb503d1760ebd704661d612aebecc29abb94880d8811fb33658cba81163213ecbfdaf1da207adec0f776164f5ded6bec3b8519bcfb09786c51b5363bec160f
@@ -2,7 +2,6 @@ language: ruby
2
2
  before_install:
3
3
  - gem install bundler -v '~> 1.11'
4
4
  rvm:
5
- - "1.9.3"
6
5
  - "2.0.0"
7
6
  - "2.1.2"
8
7
  - "2.2.4"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- omniauth_crowd (2.3.0)
4
+ omniauth_crowd (2.3.1)
5
5
  activesupport
6
6
  nokogiri (>= 1.4.4)
7
7
  omniauth (~> 1.0)
@@ -19,7 +19,7 @@ module OmniAuth
19
19
  def request_phase
20
20
  if env['REQUEST_METHOD'] == 'GET'
21
21
 
22
- if @configuration.use_sso? && request.cookies[@configuration.session_cookie]
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.use_sso? && configuration.sso_url
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.use_sso? && request.cookies[@configuration.session_cookie]
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 || {})
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Crowd
3
- VERSION = "2.3.0"
3
+ VERSION = "2.3.1"
4
4
  end
5
5
  end
@@ -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.add_dependency 'omniauth', '~> 1.0'
21
- gem.add_dependency 'nokogiri', '>= 1.4.4'
22
- gem.add_dependency 'activesupport', '>= 0'
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.0
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-03 00:00:00.000000000 Z
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.5.1
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