omniauth-multiprovider 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +13 -18
  3. data/.rspec +2 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/Gemfile +4 -0
  7. data/{LICENSE → LICENSE.txt} +0 -0
  8. data/README.md +52 -7
  9. data/Rakefile +2 -0
  10. data/lib/omniauth-multiprovider.rb +3 -1
  11. data/lib/omniauth/multiprovider.rb +0 -1
  12. data/lib/omniauth/multiprovider/config.rb +25 -0
  13. data/lib/omniauth/multiprovider/controllers/callbacks_controller.rb +43 -3
  14. data/lib/omniauth/multiprovider/error.rb +24 -1
  15. data/lib/omniauth/multiprovider/models/active_record.rb +14 -0
  16. data/lib/omniauth/multiprovider/models/authentication.rb +1 -9
  17. data/lib/omniauth/multiprovider/models/concerns/omni_authenticable.rb +79 -32
  18. data/lib/omniauth/multiprovider/version.rb +1 -1
  19. data/lib/omniauth/provider/abstract.rb +6 -38
  20. data/lib/omniauth/provider/generic.rb +10 -13
  21. data/omniauth-multiprovider.gemspec +15 -2
  22. data/spec/omniauth/error_spec.rb +30 -0
  23. data/spec/omniauth/multiprovider/controllers/callbacks_controller_spec.rb +90 -0
  24. data/spec/omniauth/multiprovider/models/active_record_spec.rb +21 -0
  25. data/spec/omniauth/multiprovider/models/concerns/omni_authenticable_spec.rb +67 -0
  26. data/spec/omniauth/provider/abstract_spec.rb +15 -0
  27. data/spec/omniauth/provider/facebook_spec.rb +13 -0
  28. data/spec/omniauth/provider/generic_spec.rb +13 -0
  29. data/spec/rails_app/.gitignore +17 -0
  30. data/spec/rails_app/Rakefile +6 -0
  31. data/spec/rails_app/app/assets/images/.keep +0 -0
  32. data/spec/rails_app/app/assets/javascripts/application.js +16 -0
  33. data/spec/rails_app/app/assets/stylesheets/application.css +15 -0
  34. data/spec/rails_app/app/controllers/application_controller.rb +5 -0
  35. data/spec/rails_app/app/controllers/concerns/.keep +0 -0
  36. data/spec/rails_app/app/helpers/application_helper.rb +2 -0
  37. data/spec/rails_app/app/mailers/.keep +0 -0
  38. data/spec/rails_app/app/models/.keep +0 -0
  39. data/spec/rails_app/app/models/concerns/.keep +0 -0
  40. data/spec/rails_app/app/models/user.rb +4 -0
  41. data/spec/rails_app/app/views/layouts/application.html.erb +14 -0
  42. data/spec/rails_app/bin/bundle +3 -0
  43. data/spec/rails_app/bin/rails +4 -0
  44. data/spec/rails_app/bin/rake +4 -0
  45. data/spec/rails_app/bin/setup +29 -0
  46. data/spec/rails_app/config.ru +4 -0
  47. data/spec/rails_app/config/application.rb +26 -0
  48. data/spec/rails_app/config/boot.rb +3 -0
  49. data/spec/rails_app/config/database.yml +25 -0
  50. data/spec/rails_app/config/environment.rb +5 -0
  51. data/spec/rails_app/config/environments/test.rb +42 -0
  52. data/spec/rails_app/config/initializers/assets.rb +11 -0
  53. data/spec/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  54. data/spec/rails_app/config/initializers/cookies_serializer.rb +3 -0
  55. data/spec/rails_app/config/initializers/devise.rb +259 -0
  56. data/spec/rails_app/config/initializers/filter_parameter_logging.rb +4 -0
  57. data/spec/rails_app/config/initializers/inflections.rb +16 -0
  58. data/spec/rails_app/config/initializers/mime_types.rb +4 -0
  59. data/spec/rails_app/config/initializers/session_store.rb +3 -0
  60. data/spec/rails_app/config/initializers/wrap_parameters.rb +14 -0
  61. data/spec/rails_app/config/locales/en.yml +23 -0
  62. data/spec/rails_app/config/routes.rb +3 -0
  63. data/spec/rails_app/config/secrets.yml +22 -0
  64. data/spec/rails_app/db/seeds.rb +7 -0
  65. data/spec/rails_app/lib/assets/.keep +0 -0
  66. data/spec/rails_app/lib/tasks/.keep +0 -0
  67. data/spec/rails_app/public/404.html +67 -0
  68. data/spec/rails_app/public/422.html +67 -0
  69. data/spec/rails_app/public/500.html +66 -0
  70. data/spec/rails_app/public/favicon.ico +0 -0
  71. data/spec/rails_app/public/robots.txt +5 -0
  72. data/spec/spec_helper.rb +43 -0
  73. data/spec/support/shared_examples_for_providers.rb +27 -0
  74. metadata +226 -7
  75. data/lib/omniauth/multiprovider/helpers.rb +0 -23
  76. data/lib/omniauth/provider/guests.rb +0 -12
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_rails_app_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,3 @@
1
+ Rails.application.routes.draw do
2
+ devise_for :users
3
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: f5b13ffcba1f920fc0e7229e9687631a2ab1a8a15229bcead5cbd44ae1617630652091c8ea440f34bfc9fc8e6fc780c94b98dcc1e7fa943938f9a57d230b57b5
15
+
16
+ test:
17
+ secret_key_base: abe20bb5b78e992dccb75885c81d1fa0caae0331529ad9fe5535e46152fd5bc8be1c0f4f7982dbf3c78fc5e0960b6d0ffc7f3d236269d80c9160468a79c8f1da
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,7 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
+ # Mayor.create(name: 'Emanuel', city: cities.first)
File without changes
File without changes
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body>
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>
File without changes
@@ -0,0 +1,5 @@
1
+ # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
+ #
3
+ # To ban all spiders from the entire site uncomment the next two lines:
4
+ # User-agent: *
5
+ # Disallow: /
@@ -0,0 +1,43 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # Require this file using `require "spec_helper"` to ensure that it is only
4
+ # loaded once.
5
+ #
6
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
7
+
8
+ ENV["RAILS_ENV"] = "test"
9
+
10
+ require 'devise'
11
+ require "rails_app/config/environment"
12
+ require 'rspec/rails'
13
+
14
+
15
+ #ActiveRecord::Base.logger = Logger.new(STDOUT)
16
+ ActiveRecord::Base.establish_connection YAML.load_file('./spec/rails_app/config/database.yml')['test']
17
+ c = ActiveRecord::Base.connection
18
+ c.create_table :users, force: true do |t|
19
+ t.string :email
20
+ t.string :encrypted_password
21
+ t.timestamps null: false
22
+ end
23
+ c.create_table :authentications, force: true do |t|
24
+ t.references :resource, polymorphic: true
25
+ t.string :uid, null: false
26
+ t.string :provider, null: false
27
+ t.string :access_token
28
+ t.string :permissions
29
+ t.timestamps null: false
30
+ end
31
+
32
+ RSpec.configure do |config|
33
+ config.run_all_when_everything_filtered = true
34
+ config.filter_run :focus
35
+
36
+ config.use_transactional_fixtures = true
37
+
38
+ # Run specs in random order to surface order dependencies. If you find an
39
+ # order dependency and want to debug it, you can fix the order by providing
40
+ # the seed, which is printed after each run.
41
+ # --seed 1234
42
+ config.order = 'random'
43
+ end
@@ -0,0 +1,27 @@
1
+
2
+ shared_examples "a provider" do
3
+ context '#initialize' do
4
+ it 'takes the controller as an argument' do
5
+ controller = double('a controller')
6
+ expect { described_class.new }.to raise_error ArgumentError
7
+ expect { described_class.new controller }.not_to raise_error
8
+ end
9
+
10
+ it 'delegates to the controller' do
11
+ controller = double('a controller')
12
+ expect(controller).to receive :foo
13
+ described_class.new(controller).foo
14
+ end
15
+ end
16
+ context '#handle_request' do
17
+ it 'is defined' do
18
+ expect(subject).to respond_to :handle_request
19
+ end
20
+
21
+ it 'is overriden' do
22
+ source_path = subject.method(:handle_request).source_location.first
23
+ expect(source_path).to match %r{provider/}
24
+ expect(source_path).not_to match %r{provider/abstract}
25
+ end unless described_class == OmniAuth::Provider::Abstract
26
+ end
27
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-multiprovider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - German Del Zotto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-04 00:00:00.000000000 Z
11
+ date: 2015-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -24,6 +24,46 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 3.2.6
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '5'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 3.2.6
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '5'
47
+ - !ruby/object:Gem::Dependency
48
+ name: activerecord
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 3.2.6
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '5'
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: 3.2.6
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '5'
27
67
  - !ruby/object:Gem::Dependency
28
68
  name: omniauth-oauth2
29
69
  requirement: !ruby/object:Gem::Requirement
@@ -58,6 +98,76 @@ dependencies:
58
98
  - - ">="
59
99
  - !ruby/object:Gem::Version
60
100
  version: 0.0.6
101
+ - !ruby/object:Gem::Dependency
102
+ name: bundler
103
+ requirement: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - "~>"
106
+ - !ruby/object:Gem::Version
107
+ version: '1.7'
108
+ type: :development
109
+ prerelease: false
110
+ version_requirements: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ - - "~>"
113
+ - !ruby/object:Gem::Version
114
+ version: '1.7'
115
+ - !ruby/object:Gem::Dependency
116
+ name: rake
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: '10.0'
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - "~>"
127
+ - !ruby/object:Gem::Version
128
+ version: '10.0'
129
+ - !ruby/object:Gem::Dependency
130
+ name: rspec
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: '3.1'
136
+ type: :development
137
+ prerelease: false
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - "~>"
141
+ - !ruby/object:Gem::Version
142
+ version: '3.1'
143
+ - !ruby/object:Gem::Dependency
144
+ name: rspec-rails
145
+ requirement: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - "~>"
148
+ - !ruby/object:Gem::Version
149
+ version: '3.1'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - "~>"
155
+ - !ruby/object:Gem::Version
156
+ version: '3.1'
157
+ - !ruby/object:Gem::Dependency
158
+ name: sqlite3
159
+ requirement: !ruby/object:Gem::Requirement
160
+ requirements:
161
+ - - ">="
162
+ - !ruby/object:Gem::Version
163
+ version: '0'
164
+ type: :development
165
+ prerelease: false
166
+ version_requirements: !ruby/object:Gem::Requirement
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ version: '0'
61
171
  description: Provides a simple approach to support many oauth providers to devise
62
172
  email: germ@ndz.com.ar
63
173
  executables: []
@@ -65,13 +175,19 @@ extensions: []
65
175
  extra_rdoc_files: []
66
176
  files:
67
177
  - ".gitignore"
68
- - LICENSE
178
+ - ".rspec"
179
+ - ".ruby-gemset"
180
+ - ".ruby-version"
181
+ - Gemfile
182
+ - LICENSE.txt
69
183
  - README.md
184
+ - Rakefile
70
185
  - lib/omniauth-multiprovider.rb
71
186
  - lib/omniauth/multiprovider.rb
187
+ - lib/omniauth/multiprovider/config.rb
72
188
  - lib/omniauth/multiprovider/controllers/callbacks_controller.rb
73
189
  - lib/omniauth/multiprovider/error.rb
74
- - lib/omniauth/multiprovider/helpers.rb
190
+ - lib/omniauth/multiprovider/models/active_record.rb
75
191
  - lib/omniauth/multiprovider/models/authentication.rb
76
192
  - lib/omniauth/multiprovider/models/concerns/omni_authenticable.rb
77
193
  - lib/omniauth/multiprovider/models/email_mockups.rb
@@ -79,8 +195,59 @@ files:
79
195
  - lib/omniauth/provider/abstract.rb
80
196
  - lib/omniauth/provider/facebook.rb
81
197
  - lib/omniauth/provider/generic.rb
82
- - lib/omniauth/provider/guests.rb
83
198
  - omniauth-multiprovider.gemspec
199
+ - spec/omniauth/error_spec.rb
200
+ - spec/omniauth/multiprovider/controllers/callbacks_controller_spec.rb
201
+ - spec/omniauth/multiprovider/models/active_record_spec.rb
202
+ - spec/omniauth/multiprovider/models/concerns/omni_authenticable_spec.rb
203
+ - spec/omniauth/provider/abstract_spec.rb
204
+ - spec/omniauth/provider/facebook_spec.rb
205
+ - spec/omniauth/provider/generic_spec.rb
206
+ - spec/rails_app/.gitignore
207
+ - spec/rails_app/Rakefile
208
+ - spec/rails_app/app/assets/images/.keep
209
+ - spec/rails_app/app/assets/javascripts/application.js
210
+ - spec/rails_app/app/assets/stylesheets/application.css
211
+ - spec/rails_app/app/controllers/application_controller.rb
212
+ - spec/rails_app/app/controllers/concerns/.keep
213
+ - spec/rails_app/app/helpers/application_helper.rb
214
+ - spec/rails_app/app/mailers/.keep
215
+ - spec/rails_app/app/models/.keep
216
+ - spec/rails_app/app/models/concerns/.keep
217
+ - spec/rails_app/app/models/user.rb
218
+ - spec/rails_app/app/views/layouts/application.html.erb
219
+ - spec/rails_app/bin/bundle
220
+ - spec/rails_app/bin/rails
221
+ - spec/rails_app/bin/rake
222
+ - spec/rails_app/bin/setup
223
+ - spec/rails_app/config.ru
224
+ - spec/rails_app/config/application.rb
225
+ - spec/rails_app/config/boot.rb
226
+ - spec/rails_app/config/database.yml
227
+ - spec/rails_app/config/environment.rb
228
+ - spec/rails_app/config/environments/test.rb
229
+ - spec/rails_app/config/initializers/assets.rb
230
+ - spec/rails_app/config/initializers/backtrace_silencers.rb
231
+ - spec/rails_app/config/initializers/cookies_serializer.rb
232
+ - spec/rails_app/config/initializers/devise.rb
233
+ - spec/rails_app/config/initializers/filter_parameter_logging.rb
234
+ - spec/rails_app/config/initializers/inflections.rb
235
+ - spec/rails_app/config/initializers/mime_types.rb
236
+ - spec/rails_app/config/initializers/session_store.rb
237
+ - spec/rails_app/config/initializers/wrap_parameters.rb
238
+ - spec/rails_app/config/locales/en.yml
239
+ - spec/rails_app/config/routes.rb
240
+ - spec/rails_app/config/secrets.yml
241
+ - spec/rails_app/db/seeds.rb
242
+ - spec/rails_app/lib/assets/.keep
243
+ - spec/rails_app/lib/tasks/.keep
244
+ - spec/rails_app/public/404.html
245
+ - spec/rails_app/public/422.html
246
+ - spec/rails_app/public/500.html
247
+ - spec/rails_app/public/favicon.ico
248
+ - spec/rails_app/public/robots.txt
249
+ - spec/spec_helper.rb
250
+ - spec/support/shared_examples_for_providers.rb
84
251
  homepage: https://github.com/1uptalent/omniauth-multiprovider
85
252
  licenses:
86
253
  - MIT
@@ -101,8 +268,60 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
268
  version: '0'
102
269
  requirements: []
103
270
  rubyforge_project:
104
- rubygems_version: 2.2.2
271
+ rubygems_version: 2.4.3
105
272
  signing_key:
106
273
  specification_version: 4
107
274
  summary: Authenticate devise users with multiple OAuth providers
108
- test_files: []
275
+ test_files:
276
+ - spec/omniauth/error_spec.rb
277
+ - spec/omniauth/multiprovider/controllers/callbacks_controller_spec.rb
278
+ - spec/omniauth/multiprovider/models/active_record_spec.rb
279
+ - spec/omniauth/multiprovider/models/concerns/omni_authenticable_spec.rb
280
+ - spec/omniauth/provider/abstract_spec.rb
281
+ - spec/omniauth/provider/facebook_spec.rb
282
+ - spec/omniauth/provider/generic_spec.rb
283
+ - spec/rails_app/.gitignore
284
+ - spec/rails_app/Rakefile
285
+ - spec/rails_app/app/assets/images/.keep
286
+ - spec/rails_app/app/assets/javascripts/application.js
287
+ - spec/rails_app/app/assets/stylesheets/application.css
288
+ - spec/rails_app/app/controllers/application_controller.rb
289
+ - spec/rails_app/app/controllers/concerns/.keep
290
+ - spec/rails_app/app/helpers/application_helper.rb
291
+ - spec/rails_app/app/mailers/.keep
292
+ - spec/rails_app/app/models/.keep
293
+ - spec/rails_app/app/models/concerns/.keep
294
+ - spec/rails_app/app/models/user.rb
295
+ - spec/rails_app/app/views/layouts/application.html.erb
296
+ - spec/rails_app/bin/bundle
297
+ - spec/rails_app/bin/rails
298
+ - spec/rails_app/bin/rake
299
+ - spec/rails_app/bin/setup
300
+ - spec/rails_app/config.ru
301
+ - spec/rails_app/config/application.rb
302
+ - spec/rails_app/config/boot.rb
303
+ - spec/rails_app/config/database.yml
304
+ - spec/rails_app/config/environment.rb
305
+ - spec/rails_app/config/environments/test.rb
306
+ - spec/rails_app/config/initializers/assets.rb
307
+ - spec/rails_app/config/initializers/backtrace_silencers.rb
308
+ - spec/rails_app/config/initializers/cookies_serializer.rb
309
+ - spec/rails_app/config/initializers/devise.rb
310
+ - spec/rails_app/config/initializers/filter_parameter_logging.rb
311
+ - spec/rails_app/config/initializers/inflections.rb
312
+ - spec/rails_app/config/initializers/mime_types.rb
313
+ - spec/rails_app/config/initializers/session_store.rb
314
+ - spec/rails_app/config/initializers/wrap_parameters.rb
315
+ - spec/rails_app/config/locales/en.yml
316
+ - spec/rails_app/config/routes.rb
317
+ - spec/rails_app/config/secrets.yml
318
+ - spec/rails_app/db/seeds.rb
319
+ - spec/rails_app/lib/assets/.keep
320
+ - spec/rails_app/lib/tasks/.keep
321
+ - spec/rails_app/public/404.html
322
+ - spec/rails_app/public/422.html
323
+ - spec/rails_app/public/500.html
324
+ - spec/rails_app/public/favicon.ico
325
+ - spec/rails_app/public/robots.txt
326
+ - spec/spec_helper.rb
327
+ - spec/support/shared_examples_for_providers.rb