omniauth-slooob 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) hide show
  1. checksums.yaml +7 -0
  2. data/.github/issue_template.md +14 -0
  3. data/.github/pull_request_template.md +21 -0
  4. data/.gitignore +22 -0
  5. data/.travis.yml +3 -0
  6. data/CHANGELOG.md +9 -0
  7. data/CODE_OF_CONDUCT.md +46 -0
  8. data/Gemfile +7 -0
  9. data/LICENSE +21 -0
  10. data/README.md +301 -0
  11. data/Rakefile +15 -0
  12. data/examples/omniauth.rb +31 -0
  13. data/examples/rails_example/.gitignore +27 -0
  14. data/examples/rails_example/Gemfile +54 -0
  15. data/examples/rails_example/README.md +24 -0
  16. data/examples/rails_example/Rakefile +6 -0
  17. data/examples/rails_example/app/assets/config/manifest.js +3 -0
  18. data/examples/rails_example/app/assets/images/.keep +0 -0
  19. data/examples/rails_example/app/assets/javascripts/application.js +15 -0
  20. data/examples/rails_example/app/assets/javascripts/books.coffee +3 -0
  21. data/examples/rails_example/app/assets/javascripts/cable.js +13 -0
  22. data/examples/rails_example/app/assets/javascripts/channels/.keep +0 -0
  23. data/examples/rails_example/app/assets/javascripts/sessions.coffee +3 -0
  24. data/examples/rails_example/app/assets/stylesheets/application.css +15 -0
  25. data/examples/rails_example/app/assets/stylesheets/books.scss +3 -0
  26. data/examples/rails_example/app/assets/stylesheets/scaffolds.scss +84 -0
  27. data/examples/rails_example/app/assets/stylesheets/sessions.scss +3 -0
  28. data/examples/rails_example/app/channels/application_cable/channel.rb +4 -0
  29. data/examples/rails_example/app/channels/application_cable/connection.rb +4 -0
  30. data/examples/rails_example/app/controllers/application_controller.rb +10 -0
  31. data/examples/rails_example/app/controllers/books_controller.rb +74 -0
  32. data/examples/rails_example/app/controllers/concerns/.keep +0 -0
  33. data/examples/rails_example/app/controllers/sessions_controller.rb +16 -0
  34. data/examples/rails_example/app/helpers/application_helper.rb +2 -0
  35. data/examples/rails_example/app/helpers/books_helper.rb +2 -0
  36. data/examples/rails_example/app/helpers/sessions_helper.rb +2 -0
  37. data/examples/rails_example/app/jobs/application_job.rb +2 -0
  38. data/examples/rails_example/app/mailers/application_mailer.rb +4 -0
  39. data/examples/rails_example/app/models/application_record.rb +3 -0
  40. data/examples/rails_example/app/models/book.rb +2 -0
  41. data/examples/rails_example/app/models/concerns/.keep +0 -0
  42. data/examples/rails_example/app/models/user.rb +12 -0
  43. data/examples/rails_example/app/views/books/_book.json.jbuilder +2 -0
  44. data/examples/rails_example/app/views/books/_form.html.erb +17 -0
  45. data/examples/rails_example/app/views/books/edit.html.erb +6 -0
  46. data/examples/rails_example/app/views/books/index.html.erb +25 -0
  47. data/examples/rails_example/app/views/books/index.json.jbuilder +1 -0
  48. data/examples/rails_example/app/views/books/new.html.erb +5 -0
  49. data/examples/rails_example/app/views/books/show.html.erb +4 -0
  50. data/examples/rails_example/app/views/books/show.json.jbuilder +1 -0
  51. data/examples/rails_example/app/views/layouts/application.html.erb +19 -0
  52. data/examples/rails_example/app/views/layouts/mailer.html.erb +13 -0
  53. data/examples/rails_example/app/views/layouts/mailer.text.erb +1 -0
  54. data/examples/rails_example/bin/bundle +3 -0
  55. data/examples/rails_example/bin/rails +4 -0
  56. data/examples/rails_example/bin/rake +4 -0
  57. data/examples/rails_example/bin/setup +38 -0
  58. data/examples/rails_example/bin/update +29 -0
  59. data/examples/rails_example/bin/yarn +11 -0
  60. data/examples/rails_example/config.ru +5 -0
  61. data/examples/rails_example/config/application.rb +18 -0
  62. data/examples/rails_example/config/boot.rb +3 -0
  63. data/examples/rails_example/config/cable.yml +10 -0
  64. data/examples/rails_example/config/database.yml +25 -0
  65. data/examples/rails_example/config/environment.rb +5 -0
  66. data/examples/rails_example/config/environments/development.rb +54 -0
  67. data/examples/rails_example/config/environments/production.rb +91 -0
  68. data/examples/rails_example/config/environments/test.rb +42 -0
  69. data/examples/rails_example/config/initializers/application_controller_renderer.rb +6 -0
  70. data/examples/rails_example/config/initializers/assets.rb +14 -0
  71. data/examples/rails_example/config/initializers/backtrace_silencers.rb +7 -0
  72. data/examples/rails_example/config/initializers/config.rb +36 -0
  73. data/examples/rails_example/config/initializers/cookies_serializer.rb +5 -0
  74. data/examples/rails_example/config/initializers/filter_parameter_logging.rb +4 -0
  75. data/examples/rails_example/config/initializers/inflections.rb +16 -0
  76. data/examples/rails_example/config/initializers/mime_types.rb +4 -0
  77. data/examples/rails_example/config/initializers/omniauth.rb +3 -0
  78. data/examples/rails_example/config/initializers/wrap_parameters.rb +14 -0
  79. data/examples/rails_example/config/locales/en.yml +33 -0
  80. data/examples/rails_example/config/puma.rb +56 -0
  81. data/examples/rails_example/config/routes.rb +10 -0
  82. data/examples/rails_example/config/secrets.yml +32 -0
  83. data/examples/rails_example/config/settings.yml +1 -0
  84. data/examples/rails_example/config/settings/development.yml +3 -0
  85. data/examples/rails_example/config/settings/production.yml +3 -0
  86. data/examples/rails_example/config/settings/test.yml +3 -0
  87. data/examples/rails_example/db/migrate/20170827120704_create_books.rb +8 -0
  88. data/examples/rails_example/db/migrate/20170827122351_create_users.rb +11 -0
  89. data/examples/rails_example/db/schema.rb +28 -0
  90. data/examples/rails_example/db/seeds.rb +7 -0
  91. data/examples/rails_example/lib/assets/.keep +0 -0
  92. data/examples/rails_example/lib/tasks/.keep +0 -0
  93. data/examples/rails_example/log/.keep +0 -0
  94. data/examples/rails_example/package.json +5 -0
  95. data/examples/rails_example/public/404.html +67 -0
  96. data/examples/rails_example/public/422.html +67 -0
  97. data/examples/rails_example/public/500.html +66 -0
  98. data/examples/rails_example/public/apple-touch-icon-precomposed.png +0 -0
  99. data/examples/rails_example/public/apple-touch-icon.png +0 -0
  100. data/examples/rails_example/public/favicon.ico +0 -0
  101. data/examples/rails_example/public/robots.txt +1 -0
  102. data/examples/rails_example/test/application_system_test_case.rb +5 -0
  103. data/examples/rails_example/test/controllers/.keep +0 -0
  104. data/examples/rails_example/test/controllers/books_controller_test.rb +48 -0
  105. data/examples/rails_example/test/controllers/sessions_controller_test.rb +9 -0
  106. data/examples/rails_example/test/fixtures/.keep +0 -0
  107. data/examples/rails_example/test/fixtures/books.yml +11 -0
  108. data/examples/rails_example/test/fixtures/files/.keep +0 -0
  109. data/examples/rails_example/test/fixtures/users.yml +9 -0
  110. data/examples/rails_example/test/helpers/.keep +0 -0
  111. data/examples/rails_example/test/integration/.keep +0 -0
  112. data/examples/rails_example/test/mailers/.keep +0 -0
  113. data/examples/rails_example/test/models/.keep +0 -0
  114. data/examples/rails_example/test/models/book_test.rb +7 -0
  115. data/examples/rails_example/test/models/user_test.rb +7 -0
  116. data/examples/rails_example/test/system/.keep +0 -0
  117. data/examples/rails_example/test/system/books_test.rb +9 -0
  118. data/examples/rails_example/test/test_helper.rb +9 -0
  119. data/examples/rails_example/vendor/.keep +0 -0
  120. data/lib/omniauth-slooob.rb +1 -0
  121. data/lib/omniauth/slooob.rb +1 -0
  122. data/lib/omniauth/slooob/version.rb +7 -0
  123. data/lib/omniauth/strategies/slooob.rb +95 -0
  124. data/omniauth-slooob.gemspec +28 -0
  125. data/test/test.rb +239 -0
  126. metadata +265 -0
metadata ADDED
@@ -0,0 +1,265 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: omniauth-slooob
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Slooob
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: omniauth
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.1.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.1.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: omniauth-oauth2
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.3.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 1.3.1
41
+ - !ruby/object:Gem::Dependency
42
+ name: multi_json
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.12'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: shoulda
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.5'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.5'
69
+ - !ruby/object:Gem::Dependency
70
+ name: shoulda-let
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: tzinfo-data
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.2017'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.2017'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.49'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.49'
111
+ description: Slooob OAuth2 Strategy for OmniAuth. Built on Slooob Identity API v1.
112
+ email: developer@slooob.com
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - ".github/issue_template.md"
118
+ - ".github/pull_request_template.md"
119
+ - ".gitignore"
120
+ - ".travis.yml"
121
+ - CHANGELOG.md
122
+ - CODE_OF_CONDUCT.md
123
+ - Gemfile
124
+ - LICENSE
125
+ - README.md
126
+ - Rakefile
127
+ - examples/omniauth.rb
128
+ - examples/rails_example/.gitignore
129
+ - examples/rails_example/Gemfile
130
+ - examples/rails_example/README.md
131
+ - examples/rails_example/Rakefile
132
+ - examples/rails_example/app/assets/config/manifest.js
133
+ - examples/rails_example/app/assets/images/.keep
134
+ - examples/rails_example/app/assets/javascripts/application.js
135
+ - examples/rails_example/app/assets/javascripts/books.coffee
136
+ - examples/rails_example/app/assets/javascripts/cable.js
137
+ - examples/rails_example/app/assets/javascripts/channels/.keep
138
+ - examples/rails_example/app/assets/javascripts/sessions.coffee
139
+ - examples/rails_example/app/assets/stylesheets/application.css
140
+ - examples/rails_example/app/assets/stylesheets/books.scss
141
+ - examples/rails_example/app/assets/stylesheets/scaffolds.scss
142
+ - examples/rails_example/app/assets/stylesheets/sessions.scss
143
+ - examples/rails_example/app/channels/application_cable/channel.rb
144
+ - examples/rails_example/app/channels/application_cable/connection.rb
145
+ - examples/rails_example/app/controllers/application_controller.rb
146
+ - examples/rails_example/app/controllers/books_controller.rb
147
+ - examples/rails_example/app/controllers/concerns/.keep
148
+ - examples/rails_example/app/controllers/sessions_controller.rb
149
+ - examples/rails_example/app/helpers/application_helper.rb
150
+ - examples/rails_example/app/helpers/books_helper.rb
151
+ - examples/rails_example/app/helpers/sessions_helper.rb
152
+ - examples/rails_example/app/jobs/application_job.rb
153
+ - examples/rails_example/app/mailers/application_mailer.rb
154
+ - examples/rails_example/app/models/application_record.rb
155
+ - examples/rails_example/app/models/book.rb
156
+ - examples/rails_example/app/models/concerns/.keep
157
+ - examples/rails_example/app/models/user.rb
158
+ - examples/rails_example/app/views/books/_book.json.jbuilder
159
+ - examples/rails_example/app/views/books/_form.html.erb
160
+ - examples/rails_example/app/views/books/edit.html.erb
161
+ - examples/rails_example/app/views/books/index.html.erb
162
+ - examples/rails_example/app/views/books/index.json.jbuilder
163
+ - examples/rails_example/app/views/books/new.html.erb
164
+ - examples/rails_example/app/views/books/show.html.erb
165
+ - examples/rails_example/app/views/books/show.json.jbuilder
166
+ - examples/rails_example/app/views/layouts/application.html.erb
167
+ - examples/rails_example/app/views/layouts/mailer.html.erb
168
+ - examples/rails_example/app/views/layouts/mailer.text.erb
169
+ - examples/rails_example/bin/bundle
170
+ - examples/rails_example/bin/rails
171
+ - examples/rails_example/bin/rake
172
+ - examples/rails_example/bin/setup
173
+ - examples/rails_example/bin/update
174
+ - examples/rails_example/bin/yarn
175
+ - examples/rails_example/config.ru
176
+ - examples/rails_example/config/application.rb
177
+ - examples/rails_example/config/boot.rb
178
+ - examples/rails_example/config/cable.yml
179
+ - examples/rails_example/config/database.yml
180
+ - examples/rails_example/config/environment.rb
181
+ - examples/rails_example/config/environments/development.rb
182
+ - examples/rails_example/config/environments/production.rb
183
+ - examples/rails_example/config/environments/test.rb
184
+ - examples/rails_example/config/initializers/application_controller_renderer.rb
185
+ - examples/rails_example/config/initializers/assets.rb
186
+ - examples/rails_example/config/initializers/backtrace_silencers.rb
187
+ - examples/rails_example/config/initializers/config.rb
188
+ - examples/rails_example/config/initializers/cookies_serializer.rb
189
+ - examples/rails_example/config/initializers/filter_parameter_logging.rb
190
+ - examples/rails_example/config/initializers/inflections.rb
191
+ - examples/rails_example/config/initializers/mime_types.rb
192
+ - examples/rails_example/config/initializers/omniauth.rb
193
+ - examples/rails_example/config/initializers/wrap_parameters.rb
194
+ - examples/rails_example/config/locales/en.yml
195
+ - examples/rails_example/config/puma.rb
196
+ - examples/rails_example/config/routes.rb
197
+ - examples/rails_example/config/secrets.yml
198
+ - examples/rails_example/config/settings.yml
199
+ - examples/rails_example/config/settings/development.yml
200
+ - examples/rails_example/config/settings/production.yml
201
+ - examples/rails_example/config/settings/test.yml
202
+ - examples/rails_example/db/migrate/20170827120704_create_books.rb
203
+ - examples/rails_example/db/migrate/20170827122351_create_users.rb
204
+ - examples/rails_example/db/schema.rb
205
+ - examples/rails_example/db/seeds.rb
206
+ - examples/rails_example/lib/assets/.keep
207
+ - examples/rails_example/lib/tasks/.keep
208
+ - examples/rails_example/log/.keep
209
+ - examples/rails_example/package.json
210
+ - examples/rails_example/public/404.html
211
+ - examples/rails_example/public/422.html
212
+ - examples/rails_example/public/500.html
213
+ - examples/rails_example/public/apple-touch-icon-precomposed.png
214
+ - examples/rails_example/public/apple-touch-icon.png
215
+ - examples/rails_example/public/favicon.ico
216
+ - examples/rails_example/public/robots.txt
217
+ - examples/rails_example/test/application_system_test_case.rb
218
+ - examples/rails_example/test/controllers/.keep
219
+ - examples/rails_example/test/controllers/books_controller_test.rb
220
+ - examples/rails_example/test/controllers/sessions_controller_test.rb
221
+ - examples/rails_example/test/fixtures/.keep
222
+ - examples/rails_example/test/fixtures/books.yml
223
+ - examples/rails_example/test/fixtures/files/.keep
224
+ - examples/rails_example/test/fixtures/users.yml
225
+ - examples/rails_example/test/helpers/.keep
226
+ - examples/rails_example/test/integration/.keep
227
+ - examples/rails_example/test/mailers/.keep
228
+ - examples/rails_example/test/models/.keep
229
+ - examples/rails_example/test/models/book_test.rb
230
+ - examples/rails_example/test/models/user_test.rb
231
+ - examples/rails_example/test/system/.keep
232
+ - examples/rails_example/test/system/books_test.rb
233
+ - examples/rails_example/test/test_helper.rb
234
+ - examples/rails_example/vendor/.keep
235
+ - lib/omniauth-slooob.rb
236
+ - lib/omniauth/slooob.rb
237
+ - lib/omniauth/slooob/version.rb
238
+ - lib/omniauth/strategies/slooob.rb
239
+ - omniauth-slooob.gemspec
240
+ - test/test.rb
241
+ homepage: https://developer.slooob.com/docs/api/identity/v1
242
+ licenses:
243
+ - MIT
244
+ metadata: {}
245
+ post_install_message:
246
+ rdoc_options: []
247
+ require_paths:
248
+ - lib
249
+ required_ruby_version: !ruby/object:Gem::Requirement
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: '2.0'
254
+ required_rubygems_version: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ version: '0'
259
+ requirements: []
260
+ rubyforge_project:
261
+ rubygems_version: 2.6.12
262
+ signing_key:
263
+ specification_version: 4
264
+ summary: Slooob OAuth2 strategy for OmniAuth
265
+ test_files: []