omniauth-auth0 1.4.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -1
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +20 -0
  5. data/.travis.yml +4 -1
  6. data/CHANGELOG.md +18 -1
  7. data/Gemfile +25 -3
  8. data/Guardfile +5 -0
  9. data/README.md +42 -26
  10. data/Rakefile +24 -4
  11. data/examples/sinatra/app.rb +14 -0
  12. data/examples/sinatra/config.ru +3 -0
  13. data/lib/omniauth-auth0.rb +2 -2
  14. data/lib/omniauth-auth0/version.rb +1 -1
  15. data/lib/omniauth/strategies/auth0.rb +74 -64
  16. data/omniauth-auth0.gemspec +12 -17
  17. data/spec/omniauth/strategies/auth0_spec.rb +240 -128
  18. data/spec/spec_helper.rb +46 -9
  19. metadata +23 -190
  20. data/examples/ruby-on-rails-webapp/.gitignore +0 -17
  21. data/examples/ruby-on-rails-webapp/Gemfile +0 -51
  22. data/examples/ruby-on-rails-webapp/README.md +0 -22
  23. data/examples/ruby-on-rails-webapp/README.rdoc +0 -28
  24. data/examples/ruby-on-rails-webapp/Rakefile +0 -6
  25. data/examples/ruby-on-rails-webapp/app/assets/images/.keep +0 -0
  26. data/examples/ruby-on-rails-webapp/app/assets/javascripts/application.js +0 -13
  27. data/examples/ruby-on-rails-webapp/app/assets/javascripts/home.js.erb +0 -10
  28. data/examples/ruby-on-rails-webapp/app/assets/stylesheets/application.css +0 -114
  29. data/examples/ruby-on-rails-webapp/app/controllers/application_controller.rb +0 -5
  30. data/examples/ruby-on-rails-webapp/app/controllers/auth0_controller.rb +0 -14
  31. data/examples/ruby-on-rails-webapp/app/controllers/concerns/.keep +0 -0
  32. data/examples/ruby-on-rails-webapp/app/controllers/dashboard_controller.rb +0 -5
  33. data/examples/ruby-on-rails-webapp/app/controllers/home_controller.rb +0 -5
  34. data/examples/ruby-on-rails-webapp/app/controllers/secured_controller.rb +0 -13
  35. data/examples/ruby-on-rails-webapp/app/helpers/application_helper.rb +0 -2
  36. data/examples/ruby-on-rails-webapp/app/helpers/callback_helper.rb +0 -2
  37. data/examples/ruby-on-rails-webapp/app/helpers/dashboard_helper.rb +0 -2
  38. data/examples/ruby-on-rails-webapp/app/helpers/home_helper.rb +0 -2
  39. data/examples/ruby-on-rails-webapp/app/mailers/.keep +0 -0
  40. data/examples/ruby-on-rails-webapp/app/models/.keep +0 -0
  41. data/examples/ruby-on-rails-webapp/app/models/concerns/.keep +0 -0
  42. data/examples/ruby-on-rails-webapp/app/views/auth0/failure.html.erb +0 -4
  43. data/examples/ruby-on-rails-webapp/app/views/dashboard/show.html.erb +0 -12
  44. data/examples/ruby-on-rails-webapp/app/views/home/show.html.erb +0 -14
  45. data/examples/ruby-on-rails-webapp/app/views/layouts/application.html.erb +0 -22
  46. data/examples/ruby-on-rails-webapp/bin/bundle +0 -3
  47. data/examples/ruby-on-rails-webapp/bin/rails +0 -4
  48. data/examples/ruby-on-rails-webapp/bin/rake +0 -4
  49. data/examples/ruby-on-rails-webapp/bin/spring +0 -18
  50. data/examples/ruby-on-rails-webapp/config.ru +0 -4
  51. data/examples/ruby-on-rails-webapp/config/application.rb +0 -32
  52. data/examples/ruby-on-rails-webapp/config/boot.rb +0 -4
  53. data/examples/ruby-on-rails-webapp/config/database.yml +0 -20
  54. data/examples/ruby-on-rails-webapp/config/environment.rb +0 -5
  55. data/examples/ruby-on-rails-webapp/config/environments/development.rb +0 -39
  56. data/examples/ruby-on-rails-webapp/config/environments/production.rb +0 -85
  57. data/examples/ruby-on-rails-webapp/config/environments/test.rb +0 -39
  58. data/examples/ruby-on-rails-webapp/config/initializers/01_dotenv.rb +0 -4
  59. data/examples/ruby-on-rails-webapp/config/initializers/auth0.rb +0 -9
  60. data/examples/ruby-on-rails-webapp/config/initializers/backtrace_silencers.rb +0 -7
  61. data/examples/ruby-on-rails-webapp/config/initializers/cookies_serializer.rb +0 -3
  62. data/examples/ruby-on-rails-webapp/config/initializers/filter_parameter_logging.rb +0 -4
  63. data/examples/ruby-on-rails-webapp/config/initializers/fix_ssl.rb +0 -15
  64. data/examples/ruby-on-rails-webapp/config/initializers/inflections.rb +0 -16
  65. data/examples/ruby-on-rails-webapp/config/initializers/mime_types.rb +0 -4
  66. data/examples/ruby-on-rails-webapp/config/initializers/session_store.rb +0 -3
  67. data/examples/ruby-on-rails-webapp/config/initializers/wrap_parameters.rb +0 -14
  68. data/examples/ruby-on-rails-webapp/config/locales/en.yml +0 -23
  69. data/examples/ruby-on-rails-webapp/config/routes.rb +0 -66
  70. data/examples/ruby-on-rails-webapp/config/secrets.yml +0 -35
  71. data/examples/ruby-on-rails-webapp/db/seeds.rb +0 -7
  72. data/examples/ruby-on-rails-webapp/lib/assets/.keep +0 -0
  73. data/examples/ruby-on-rails-webapp/lib/ca-bundle.crt +0 -3893
  74. data/examples/ruby-on-rails-webapp/lib/tasks/.keep +0 -0
  75. data/examples/ruby-on-rails-webapp/log/.keep +0 -0
  76. data/examples/ruby-on-rails-webapp/public/404.html +0 -67
  77. data/examples/ruby-on-rails-webapp/public/422.html +0 -67
  78. data/examples/ruby-on-rails-webapp/public/500.html +0 -66
  79. data/examples/ruby-on-rails-webapp/public/favicon.ico +0 -0
  80. data/examples/ruby-on-rails-webapp/public/robots.txt +0 -5
  81. data/examples/ruby-on-rails-webapp/test/controllers/.keep +0 -0
  82. data/examples/ruby-on-rails-webapp/test/controllers/callback_controller_test.rb +0 -14
  83. data/examples/ruby-on-rails-webapp/test/controllers/dashboard_controller_test.rb +0 -9
  84. data/examples/ruby-on-rails-webapp/test/controllers/home_controller_test.rb +0 -9
  85. data/examples/ruby-on-rails-webapp/test/fixtures/.keep +0 -0
  86. data/examples/ruby-on-rails-webapp/test/helpers/.keep +0 -0
  87. data/examples/ruby-on-rails-webapp/test/helpers/callback_helper_test.rb +0 -4
  88. data/examples/ruby-on-rails-webapp/test/helpers/dashboard_helper_test.rb +0 -4
  89. data/examples/ruby-on-rails-webapp/test/helpers/home_helper_test.rb +0 -4
  90. data/examples/ruby-on-rails-webapp/test/integration/.keep +0 -0
  91. data/examples/ruby-on-rails-webapp/test/mailers/.keep +0 -0
  92. data/examples/ruby-on-rails-webapp/test/models/.keep +0 -0
  93. data/examples/ruby-on-rails-webapp/test/test_helper.rb +0 -13
  94. data/examples/ruby-on-rails-webapp/vendor/assets/javascripts/.keep +0 -0
  95. data/examples/ruby-on-rails-webapp/vendor/assets/stylesheets/.keep +0 -0
@@ -1,17 +1,54 @@
1
- $:.unshift File.expand_path('..', __FILE__)
2
- $:.unshift File.expand_path('../../lib', __FILE__)
1
+ $LOAD_PATH.unshift File.expand_path('..', __FILE__)
2
+ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
3
+
3
4
  require 'simplecov'
4
- SimpleCov.start
5
+ if ENV['COVERAGE']
6
+ SimpleCov.start do
7
+ minimum_coverage(89.8)
8
+ end
9
+ end
5
10
  require 'rspec'
6
11
  require 'rack/test'
7
12
  require 'webmock/rspec'
8
13
  require 'omniauth'
9
14
  require 'omniauth-auth0'
15
+ require 'sinatra'
16
+
17
+ WebMock.disable_net_connect!
10
18
 
11
19
  RSpec.configure do |config|
12
- config.include WebMock::API
13
- config.include Rack::Test::Methods
14
- config.extend OmniAuth::Test::StrategyMacros, :type => :strategy
15
- config.color = true
16
- config.formatter = 'documentation'
17
- end
20
+ config.include WebMock::API
21
+ config.include Rack::Test::Methods
22
+ config.extend OmniAuth::Test::StrategyMacros, type: :strategy
23
+
24
+ def app
25
+ @app || make_application
26
+ end
27
+
28
+ def make_application(options = {})
29
+ client_id = 'CLIENT_ID'
30
+ secret = 'CLIENT_SECRET'
31
+ domain = 'samples.auth0.com'
32
+ client_id = options.delete(:client_id) if options.key?(:client_id)
33
+ secret = options.delete(:client_secret) if options.key?(:client_secret)
34
+ domain = options.delete(:domain) if options.key?(:domain)
35
+
36
+ Sinatra.new do
37
+ configure do
38
+ enable :sessions
39
+ set :show_exceptions, false
40
+ set :session_secret, 'TEST'
41
+ end
42
+
43
+ use OmniAuth::Builder do
44
+ provider :auth0, client_id, secret, domain, options
45
+ end
46
+
47
+ get '/auth/auth0/callback' do
48
+ MultiJson.encode(env['omniauth.auth'])
49
+ end
50
+ end
51
+ end
52
+ end
53
+
54
+ OmniAuth.config.logger = Logger.new('/dev/null')
metadata CHANGED
@@ -1,139 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auth0
8
- - Ezequiel Morito
9
- - Jose Romaniello
10
8
  autorequire:
11
9
  bindir: bin
12
10
  cert_chain: []
13
- date: 2016-06-13 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
14
  name: omniauth-oauth2
17
15
  requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '1.1'
19
+ version: '1.4'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
23
  requirements:
26
- - - ~>
24
+ - - "~>"
27
25
  - !ruby/object:Gem::Version
28
- version: '1.1'
26
+ version: '1.4'
29
27
  - !ruby/object:Gem::Dependency
30
- name: rspec
28
+ name: bundler
31
29
  requirement: !ruby/object:Gem::Requirement
32
30
  requirements:
33
- - - ~>
31
+ - - "~>"
34
32
  - !ruby/object:Gem::Version
35
- version: '2.7'
33
+ version: '1.9'
36
34
  type: :development
37
35
  prerelease: false
38
36
  version_requirements: !ruby/object:Gem::Requirement
39
37
  requirements:
40
- - - ~>
38
+ - - "~>"
41
39
  - !ruby/object:Gem::Version
42
- version: '2.7'
43
- - !ruby/object:Gem::Dependency
44
- name: rack-test
45
- requirement: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - ~>
48
- - !ruby/object:Gem::Version
49
- version: '0.6'
50
- - - '>='
51
- - !ruby/object:Gem::Version
52
- version: 0.6.3
53
- type: :development
54
- prerelease: false
55
- version_requirements: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- version: '0.6'
60
- - - '>='
61
- - !ruby/object:Gem::Version
62
- version: 0.6.3
63
- - !ruby/object:Gem::Dependency
64
- name: simplecov
65
- requirement: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '0.9'
70
- - - '>='
71
- - !ruby/object:Gem::Version
72
- version: 0.9.1
73
- type: :development
74
- prerelease: false
75
- version_requirements: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: '0.9'
80
- - - '>='
81
- - !ruby/object:Gem::Version
82
- version: 0.9.1
83
- - !ruby/object:Gem::Dependency
84
- name: webmock
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ~>
88
- - !ruby/object:Gem::Version
89
- version: '1.20'
90
- - - '>='
91
- - !ruby/object:Gem::Version
92
- version: 1.20.4
93
- type: :development
94
- prerelease: false
95
- version_requirements: !ruby/object:Gem::Requirement
96
- requirements:
97
- - - ~>
98
- - !ruby/object:Gem::Version
99
- version: '1.20'
100
- - - '>='
101
- - !ruby/object:Gem::Version
102
- version: 1.20.4
103
- - !ruby/object:Gem::Dependency
104
- name: rake
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: '10.3'
110
- - - '>='
111
- - !ruby/object:Gem::Version
112
- version: 10.3.2
113
- type: :development
114
- prerelease: false
115
- version_requirements: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - ~>
118
- - !ruby/object:Gem::Version
119
- version: '10.3'
120
- - - '>='
121
- - !ruby/object:Gem::Version
122
- version: 10.3.2
123
- - !ruby/object:Gem::Dependency
124
- name: gem-release
125
- requirement: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - ~>
128
- - !ruby/object:Gem::Version
129
- version: '0.7'
130
- type: :development
131
- prerelease: false
132
- version_requirements: !ruby/object:Gem::Requirement
133
- requirements:
134
- - - ~>
135
- - !ruby/object:Gem::Version
136
- version: '0.7'
40
+ version: '1.9'
137
41
  description: |
138
42
  Auth0 is an authentication broker that supports social identity providers as well as enterprise identity providers such as Active Directory, LDAP, Google Apps, Salesforce.
139
43
 
@@ -141,95 +45,24 @@ description: |
141
45
 
142
46
  omniauth-auth0 is the omniauth strategy for Auth0.
143
47
  email:
144
- - support@auth0.com
48
+ - info@auth0.com
145
49
  executables: []
146
50
  extensions: []
147
51
  extra_rdoc_files: []
148
52
  files:
149
- - .gemrelease
150
- - .gitignore
151
- - .travis.yml
53
+ - ".gemrelease"
54
+ - ".gitignore"
55
+ - ".rspec"
56
+ - ".rubocop.yml"
57
+ - ".travis.yml"
152
58
  - CHANGELOG.md
153
59
  - Gemfile
60
+ - Guardfile
154
61
  - LICENSE
155
62
  - README.md
156
63
  - Rakefile
157
- - examples/ruby-on-rails-webapp/.gitignore
158
- - examples/ruby-on-rails-webapp/Gemfile
159
- - examples/ruby-on-rails-webapp/README.md
160
- - examples/ruby-on-rails-webapp/README.rdoc
161
- - examples/ruby-on-rails-webapp/Rakefile
162
- - examples/ruby-on-rails-webapp/app/assets/images/.keep
163
- - examples/ruby-on-rails-webapp/app/assets/javascripts/application.js
164
- - examples/ruby-on-rails-webapp/app/assets/javascripts/home.js.erb
165
- - examples/ruby-on-rails-webapp/app/assets/stylesheets/application.css
166
- - examples/ruby-on-rails-webapp/app/controllers/application_controller.rb
167
- - examples/ruby-on-rails-webapp/app/controllers/auth0_controller.rb
168
- - examples/ruby-on-rails-webapp/app/controllers/concerns/.keep
169
- - examples/ruby-on-rails-webapp/app/controllers/dashboard_controller.rb
170
- - examples/ruby-on-rails-webapp/app/controllers/home_controller.rb
171
- - examples/ruby-on-rails-webapp/app/controllers/secured_controller.rb
172
- - examples/ruby-on-rails-webapp/app/helpers/application_helper.rb
173
- - examples/ruby-on-rails-webapp/app/helpers/callback_helper.rb
174
- - examples/ruby-on-rails-webapp/app/helpers/dashboard_helper.rb
175
- - examples/ruby-on-rails-webapp/app/helpers/home_helper.rb
176
- - examples/ruby-on-rails-webapp/app/mailers/.keep
177
- - examples/ruby-on-rails-webapp/app/models/.keep
178
- - examples/ruby-on-rails-webapp/app/models/concerns/.keep
179
- - examples/ruby-on-rails-webapp/app/views/auth0/failure.html.erb
180
- - examples/ruby-on-rails-webapp/app/views/dashboard/show.html.erb
181
- - examples/ruby-on-rails-webapp/app/views/home/show.html.erb
182
- - examples/ruby-on-rails-webapp/app/views/layouts/application.html.erb
183
- - examples/ruby-on-rails-webapp/bin/bundle
184
- - examples/ruby-on-rails-webapp/bin/rails
185
- - examples/ruby-on-rails-webapp/bin/rake
186
- - examples/ruby-on-rails-webapp/bin/spring
187
- - examples/ruby-on-rails-webapp/config.ru
188
- - examples/ruby-on-rails-webapp/config/application.rb
189
- - examples/ruby-on-rails-webapp/config/boot.rb
190
- - examples/ruby-on-rails-webapp/config/database.yml
191
- - examples/ruby-on-rails-webapp/config/environment.rb
192
- - examples/ruby-on-rails-webapp/config/environments/development.rb
193
- - examples/ruby-on-rails-webapp/config/environments/production.rb
194
- - examples/ruby-on-rails-webapp/config/environments/test.rb
195
- - examples/ruby-on-rails-webapp/config/initializers/01_dotenv.rb
196
- - examples/ruby-on-rails-webapp/config/initializers/auth0.rb
197
- - examples/ruby-on-rails-webapp/config/initializers/backtrace_silencers.rb
198
- - examples/ruby-on-rails-webapp/config/initializers/cookies_serializer.rb
199
- - examples/ruby-on-rails-webapp/config/initializers/filter_parameter_logging.rb
200
- - examples/ruby-on-rails-webapp/config/initializers/fix_ssl.rb
201
- - examples/ruby-on-rails-webapp/config/initializers/inflections.rb
202
- - examples/ruby-on-rails-webapp/config/initializers/mime_types.rb
203
- - examples/ruby-on-rails-webapp/config/initializers/session_store.rb
204
- - examples/ruby-on-rails-webapp/config/initializers/wrap_parameters.rb
205
- - examples/ruby-on-rails-webapp/config/locales/en.yml
206
- - examples/ruby-on-rails-webapp/config/routes.rb
207
- - examples/ruby-on-rails-webapp/config/secrets.yml
208
- - examples/ruby-on-rails-webapp/db/seeds.rb
209
- - examples/ruby-on-rails-webapp/lib/assets/.keep
210
- - examples/ruby-on-rails-webapp/lib/ca-bundle.crt
211
- - examples/ruby-on-rails-webapp/lib/tasks/.keep
212
- - examples/ruby-on-rails-webapp/log/.keep
213
- - examples/ruby-on-rails-webapp/public/404.html
214
- - examples/ruby-on-rails-webapp/public/422.html
215
- - examples/ruby-on-rails-webapp/public/500.html
216
- - examples/ruby-on-rails-webapp/public/favicon.ico
217
- - examples/ruby-on-rails-webapp/public/robots.txt
218
- - examples/ruby-on-rails-webapp/test/controllers/.keep
219
- - examples/ruby-on-rails-webapp/test/controllers/callback_controller_test.rb
220
- - examples/ruby-on-rails-webapp/test/controllers/dashboard_controller_test.rb
221
- - examples/ruby-on-rails-webapp/test/controllers/home_controller_test.rb
222
- - examples/ruby-on-rails-webapp/test/fixtures/.keep
223
- - examples/ruby-on-rails-webapp/test/helpers/.keep
224
- - examples/ruby-on-rails-webapp/test/helpers/callback_helper_test.rb
225
- - examples/ruby-on-rails-webapp/test/helpers/dashboard_helper_test.rb
226
- - examples/ruby-on-rails-webapp/test/helpers/home_helper_test.rb
227
- - examples/ruby-on-rails-webapp/test/integration/.keep
228
- - examples/ruby-on-rails-webapp/test/mailers/.keep
229
- - examples/ruby-on-rails-webapp/test/models/.keep
230
- - examples/ruby-on-rails-webapp/test/test_helper.rb
231
- - examples/ruby-on-rails-webapp/vendor/assets/javascripts/.keep
232
- - examples/ruby-on-rails-webapp/vendor/assets/stylesheets/.keep
64
+ - examples/sinatra/app.rb
65
+ - examples/sinatra/config.ru
233
66
  - lib/omniauth-auth0.rb
234
67
  - lib/omniauth-auth0/version.rb
235
68
  - lib/omniauth/strategies/auth0.rb
@@ -246,17 +79,17 @@ require_paths:
246
79
  - lib
247
80
  required_ruby_version: !ruby/object:Gem::Requirement
248
81
  requirements:
249
- - - '>='
82
+ - - ">="
250
83
  - !ruby/object:Gem::Version
251
84
  version: '0'
252
85
  required_rubygems_version: !ruby/object:Gem::Requirement
253
86
  requirements:
254
- - - '>='
87
+ - - ">="
255
88
  - !ruby/object:Gem::Version
256
89
  version: '0'
257
90
  requirements: []
258
91
  rubyforge_project: omniauth-auth0
259
- rubygems_version: 2.4.6
92
+ rubygems_version: 2.4.5.1
260
93
  signing_key:
261
94
  specification_version: 4
262
95
  summary: Omniauth OAuth2 strategy for the Auth0 platform.
@@ -1,17 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # If you find yourself ignoring temporary files generated by your text editor
4
- # or operating system, you probably want to add a global ignore instead:
5
- # git config --global core.excludesfile '~/.gitignore_global'
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore the default SQLite database.
11
- /db/*.sqlite3
12
- /db/*.sqlite3-journal
13
-
14
- # Ignore all logfiles and tempfiles.
15
- /log/*.log
16
- /tmp
17
- .env
@@ -1,51 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
-
4
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5
- gem 'rails', '4.2.5.1'
6
- # Use sqlite3 as the database for Active Record
7
- gem 'sqlite3', group: :development
8
- gem 'pry', group: :development
9
- gem 'pg'
10
- # Use SCSS for stylesheets
11
- gem 'sass-rails', '~> 4.0.5'
12
- # Use Uglifier as compressor for JavaScript assets
13
- gem 'uglifier', '>= 2.7.2'
14
- # Use CoffeeScript for .js.coffee assets and views
15
- gem 'coffee-rails', '~> 4.0.0'
16
- # See https://github.com/sstephenson/execjs#readme for more supported runtimes
17
- # gem 'therubyracer', platforms: :ruby
18
-
19
- gem 'rails_12factor', group: :production
20
-
21
- # Use jquery as the JavaScript library
22
- gem 'jquery-rails'
23
- # Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
24
- gem 'turbolinks'
25
- # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
26
- gem 'jbuilder', '~> 2.4.1'
27
- # bundle exec rake doc:rails generates the API under doc/api.
28
- gem 'sdoc', '~> 0.4.1', group: :doc
29
-
30
- # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
31
- gem 'spring', group: :development
32
-
33
- gem 'omniauth', '~> 1.3.1'
34
- gem 'omniauth-auth0', '~> 1.4.1'
35
-
36
- gem 'dotenv', '~> 0.11.1', group: :development
37
-
38
- # Use ActiveModel has_secure_password
39
- # gem 'bcrypt', '~> 3.1.7'
40
-
41
- # Use unicorn as the app server
42
- # gem 'unicorn'
43
-
44
- # Use Capistrano for deployment
45
- # gem 'capistrano-rails', group: :development
46
-
47
- # Use debugger
48
- # gem 'debugger', group: [:development, :test]
49
-
50
- #Use tzinfo-data
51
- #gem 'tzinfo-data'
@@ -1,22 +0,0 @@
1
- #Auth0 + Ruby on Rails WebApp Seed
2
- This is the seed project you need to use if you're going to create a regular WebApp with Ruby on Rails. If you want to build a Ruby On Rails API that will be used with a SPA or a Mobile device, please check this [other seed project](https://github.com/auth0/auth0-ruby-samples/tree/master/ruby-on-rails-api)
3
-
4
- This example is deployed at Heroku at http://auth0-ror-webapp-sample.herokuapp.com/
5
-
6
- #Running the example
7
- In order to run the example you need to have ruby installed.
8
-
9
- You also need to set the ClientSecret, ClientId, Domain and CallbackURL for your Auth0 app as enviroment variables with the following names respectively: AUTH0_CLIENT_SECRET, AUTH0_CLIENT_ID, AUTH0_DOMAIN and AUTH0_CALLBACK_URL.
10
-
11
- For that, if you just create a file named .env in the directory and set the values like the following, the app will just work:
12
-
13
- ````bash
14
- # .env file
15
- AUTH0_CLIENT_SECRET=myCoolSecret
16
- AUTH0_CLIENT_ID=myCoolClientId
17
- AUTH0_DOMAIN=samples.auth0.com
18
- AUTH0_CALLBACK_URL=http://localhost:3000/auth/auth0/callback
19
- ````
20
- Once you've set those 4 enviroment variables, run `bundle install` and then `rails s`. Now, try calling [http://localhost:3000/](http://localhost:3000/)
21
-
22
- __Note:__ If you are using Windows, uncomment the `tzinfo-data` gem in the gemfile
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.