omniauth-aai 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -15
- data/README.md +2 -0
- data/lib/generators/aai/USAGE +8 -7
- data/lib/generators/aai/setup_generator.rb +1 -1
- data/lib/omniauth-aai/version.rb +1 -1
- data/lib/omniauth/strategies/aai.rb +21 -21
- data/omniauth-aai-0.6.4.gem +0 -0
- data/spec/omniauth/has_current_user_spec.rb +6 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfd7c32bfb00f107c948bb00a4454a51040150cd
|
4
|
+
data.tar.gz: b7a304f90ed28e0b9cc5ae99aea534d887fb58d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e9579c114e8d9a3488d1b80972ff1aa65662ef8c39f6ef60a5865b5bdb561c4a6a2e812ce8c658f4176ec6fff0978bc250117d334525d1eb12e511dab8d1f0e
|
7
|
+
data.tar.gz: 32895afe76f3bd9d3ef71fcb3bf4d22aa6e724438d60baf7886ac5808cf9cb151a7e50f4b1846967f278773990c39c72974109d5de90d40ab78e43d0143fee3d
|
data/Gemfile.lock
CHANGED
@@ -8,8 +8,8 @@ GIT
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
omniauth-aai (0.6.
|
12
|
-
omniauth-shibboleth
|
11
|
+
omniauth-aai (0.6.4)
|
12
|
+
omniauth-shibboleth (~> 1.2)
|
13
13
|
|
14
14
|
GEM
|
15
15
|
remote: http://rubygems.org/
|
@@ -51,12 +51,6 @@ GEM
|
|
51
51
|
tzinfo (~> 1.1)
|
52
52
|
arel (6.0.0)
|
53
53
|
builder (3.2.2)
|
54
|
-
capybara (2.4.4)
|
55
|
-
mime-types (>= 1.16)
|
56
|
-
nokogiri (>= 1.3.3)
|
57
|
-
rack (>= 1.0.0)
|
58
|
-
rack-test (>= 0.5.4)
|
59
|
-
xpath (~> 2.0)
|
60
54
|
celluloid (0.16.0)
|
61
55
|
timers (~> 4.0.0)
|
62
56
|
coderay (1.1.0)
|
@@ -168,20 +162,17 @@ GEM
|
|
168
162
|
hitimes
|
169
163
|
tzinfo (1.2.2)
|
170
164
|
thread_safe (~> 0.1)
|
171
|
-
xpath (2.0.0)
|
172
|
-
nokogiri (~> 1.3)
|
173
165
|
|
174
166
|
PLATFORMS
|
175
167
|
ruby
|
176
168
|
|
177
169
|
DEPENDENCIES
|
178
|
-
|
179
|
-
guard-rspec
|
170
|
+
guard-rspec (~> 4.5)
|
180
171
|
omniauth-aai!
|
181
172
|
omniauth-shibboleth!
|
182
|
-
rack-test
|
183
|
-
rails
|
184
|
-
rake
|
173
|
+
rack-test (~> 0.6)
|
174
|
+
rails (~> 4.2)
|
175
|
+
rake (~> 10.4)
|
185
176
|
rspec (~> 3.2)
|
186
177
|
|
187
178
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -30,6 +30,8 @@ This will generate some basic authenthication objects for rails:
|
|
30
30
|
|
31
31
|
You can run it with '--persist false' if you don't want to persist the user to the local db.
|
32
32
|
|
33
|
+
You'll need to run 'rake db:migrate' afterwards to create the user table.
|
34
|
+
|
33
35
|
### Additional Shibboleth attributes
|
34
36
|
|
35
37
|
By default, you will get all the core SWITCHaai values, or you can configure it via options:
|
data/lib/generators/aai/USAGE
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
Description:
|
2
|
-
|
2
|
+
Create Config / User / Session / Migration for Omniauth Aai Authentication
|
3
3
|
|
4
4
|
Example:
|
5
|
-
|
5
|
+
rails generate aai:setup [--persist]
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
This will create:
|
8
|
+
config/initializers/omniauth.rb
|
9
|
+
app/controller/session_controller.rb
|
10
|
+
app/models/user.rb
|
11
|
+
db/migrate/<timestamp>_create_aai_user.rb
|
12
12
|
|
13
|
+
"rake db:migrate" will be executed at the end. Additionally the has_current_user method is being added to ApplicationController.
|
@@ -29,7 +29,7 @@ module Aai
|
|
29
29
|
def copy_user_file
|
30
30
|
template "user.rb", "app/models/user.rb"
|
31
31
|
migration_template "migration.rb", "db/migrate/create_aai_user.rb" if options[:persist]
|
32
|
-
rake "db:migrate"
|
32
|
+
# rake "db:migrate"
|
33
33
|
end
|
34
34
|
|
35
35
|
def self.next_migration_number(path)
|
data/lib/omniauth-aai/version.rb
CHANGED
@@ -57,34 +57,34 @@ module OmniAuth
|
|
57
57
|
]
|
58
58
|
end
|
59
59
|
|
60
|
-
def request_params
|
61
|
-
|
62
|
-
end
|
60
|
+
# def request_params
|
61
|
+
# super
|
62
|
+
# end
|
63
63
|
|
64
|
-
def request_param(key)
|
65
|
-
|
66
|
-
end
|
64
|
+
# def request_param(key)
|
65
|
+
# super
|
66
|
+
# end
|
67
67
|
|
68
|
-
def callback_phase
|
69
|
-
|
70
|
-
end
|
68
|
+
# def callback_phase
|
69
|
+
# super
|
70
|
+
# end
|
71
71
|
|
72
|
-
def option_handler(option_field)
|
73
|
-
|
74
|
-
end
|
72
|
+
# def option_handler(option_field)
|
73
|
+
# super
|
74
|
+
# end
|
75
75
|
|
76
76
|
|
77
|
-
uid do
|
78
|
-
|
79
|
-
end
|
77
|
+
# uid do
|
78
|
+
# option_handler(options.uid_field)
|
79
|
+
# end
|
80
80
|
|
81
|
-
info do
|
82
|
-
|
83
|
-
end
|
81
|
+
# info do
|
82
|
+
# super
|
83
|
+
# end
|
84
84
|
|
85
|
-
extra do
|
86
|
-
|
87
|
-
end
|
85
|
+
# extra do
|
86
|
+
# super
|
87
|
+
# end
|
88
88
|
|
89
89
|
end
|
90
90
|
end
|
Binary file
|
@@ -1,9 +1,12 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Omniauth::HasCurrentUser do
|
4
|
+
let(:extended_class) { Class.new { extend Omniauth::HasCurrentUser } }
|
5
|
+
let(:including_class) { Class.new { include Omniauth::HasCurrentUser } }
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
-
|
7
|
+
# it "returns nil of no user exists" do
|
8
|
+
# # expect(extended_class.current_user).to eq nil
|
9
|
+
# expect(including_class.current_user).to eq nil
|
10
|
+
# end
|
8
11
|
|
9
12
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-aai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Rohrer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: omniauth-shibboleth
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- lib/omniauth-aai/version.rb
|
122
122
|
- lib/omniauth/has_current_user.rb
|
123
123
|
- lib/omniauth/strategies/aai.rb
|
124
|
+
- omniauth-aai-0.6.4.gem
|
124
125
|
- omniauth-aai.gemspec
|
125
126
|
- spec/example_rails3_app/.DS_Store
|
126
127
|
- spec/example_rails3_app/.gitignore
|