warden-googleapps 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -39,7 +39,7 @@ spec = Gem::Specification.new do |s|
39
39
  s.email = EMAIL
40
40
  s.homepage = HOMEPAGE
41
41
 
42
- bundle = Bundler::Definition.from_gemfile('Gemfile')
42
+ bundle = Bundler::Definition.build('Gemfile', 'Gemfile.lock', { })
43
43
  bundle.dependencies.each do |dep|
44
44
  next unless dep.groups.include?(:runtime)
45
45
  s.add_dependency(dep.name, dep.version_requirements.to_s)
@@ -28,7 +28,11 @@ Warden::Strategies.add(:google_apps) do
28
28
  elsif params['RelayState']
29
29
  raise GoogleAppsMisconfiguredError, "Warden::GoogleApps only works with OpenID Federed Login for Google Apps"
30
30
  else
31
- google_discovery = OpenID.discover(open_id_endpoint)
31
+ begin
32
+ google_discovery = OpenID.discover(open_id_endpoint)
33
+ rescue Exception => e
34
+ fail!("Exception during OpenID discovery #{e.message}"
35
+ end
32
36
  open_id_request = consumer.begin(google_discovery.first)
33
37
  add_ax_fields(open_id_request)
34
38
  redirect!(open_id_request.redirect_url(absolute_url(request), redirect_url(request)))
@@ -1,5 +1,5 @@
1
1
  module Warden
2
2
  module GoogleApps
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: warden-googleapps
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Donohoe
@@ -15,11 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-29 00:00:00 -07:00
18
+ date: 2010-10-14 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
23
  none: false
25
24
  requirements:
@@ -33,8 +32,8 @@ dependencies:
33
32
  requirement: *id001
34
33
  type: :runtime
35
34
  name: warden
36
- - !ruby/object:Gem::Dependency
37
35
  prerelease: false
36
+ - !ruby/object:Gem::Dependency
38
37
  version_requirements: &id002 !ruby/object:Gem::Requirement
39
38
  none: false
40
39
  requirements:
@@ -49,6 +48,7 @@ dependencies:
49
48
  requirement: *id002
50
49
  type: :runtime
51
50
  name: ruby-openid
51
+ prerelease: false
52
52
  description: A warden strategy to use Google's Federated OpenID with Google Apps
53
53
  email: atmos@atmos.org
54
54
  executables: []