discourse_mountable_sso 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +6 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/javascripts/discourse_mountable_sso/application.js +15 -0
  6. data/app/assets/stylesheets/discourse_mountable_sso/application.css +13 -0
  7. data/app/controllers/discourse_mountable_sso/application_controller.rb +4 -0
  8. data/app/controllers/discourse_mountable_sso/discourse_sso_controller.rb +35 -0
  9. data/app/helpers/discourse_mountable_sso/application_helper.rb +4 -0
  10. data/app/views/layouts/discourse_mountable_sso/application.html.erb +14 -0
  11. data/config/routes.rb +3 -0
  12. data/lib/discourse_mountable_sso/configuration.rb +11 -0
  13. data/lib/discourse_mountable_sso/engine.rb +5 -0
  14. data/lib/discourse_mountable_sso/single_sign_on.rb +104 -0
  15. data/lib/discourse_mountable_sso/version.rb +3 -0
  16. data/lib/discourse_mountable_sso.rb +11 -0
  17. data/lib/tasks/discourse_mountable_sso_tasks.rake +4 -0
  18. data/test/discourse_mountable_sso_test.rb +7 -0
  19. data/test/dummy/README.rdoc +261 -0
  20. data/test/dummy/Rakefile +7 -0
  21. data/test/dummy/app/assets/images/header_bg.png +0 -0
  22. data/test/dummy/app/assets/images/rails.png +0 -0
  23. data/test/dummy/app/assets/images/ruby-source-logo.png +0 -0
  24. data/test/dummy/app/assets/javascripts/application.js +13 -0
  25. data/test/dummy/app/assets/javascripts/login.js +2 -0
  26. data/test/dummy/app/assets/stylesheets/application.css +91 -0
  27. data/test/dummy/app/assets/stylesheets/login.css +4 -0
  28. data/test/dummy/app/controllers/application_controller.rb +51 -0
  29. data/test/dummy/app/controllers/sessions_controller.rb +51 -0
  30. data/test/dummy/app/controllers/users_controller.rb +26 -0
  31. data/test/dummy/app/helpers/application_helper.rb +2 -0
  32. data/test/dummy/app/models/user.rb +42 -0
  33. data/test/dummy/app/views/layouts/application.html.erb +42 -0
  34. data/test/dummy/app/views/sessions/home.html.erb +1 -0
  35. data/test/dummy/app/views/sessions/login.html.erb +15 -0
  36. data/test/dummy/app/views/sessions/profile.html.erb +1 -0
  37. data/test/dummy/app/views/sessions/setting.html.erb +1 -0
  38. data/test/dummy/app/views/users/new.html.erb +32 -0
  39. data/test/dummy/config/application.rb +59 -0
  40. data/test/dummy/config/boot.rb +10 -0
  41. data/test/dummy/config/database.yml +42 -0
  42. data/test/dummy/config/environment.rb +5 -0
  43. data/test/dummy/config/environments/development.rb +37 -0
  44. data/test/dummy/config/environments/production.rb +67 -0
  45. data/test/dummy/config/environments/test.rb +37 -0
  46. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  47. data/test/dummy/config/initializers/discourse_config.rb +6 -0
  48. data/test/dummy/config/initializers/inflections.rb +15 -0
  49. data/test/dummy/config/initializers/mime_types.rb +5 -0
  50. data/test/dummy/config/initializers/secret_token.rb +7 -0
  51. data/test/dummy/config/initializers/session_store.rb +8 -0
  52. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  53. data/test/dummy/config/locales/en.yml +5 -0
  54. data/test/dummy/config/routes.rb +14 -0
  55. data/test/dummy/config.ru +4 -0
  56. data/test/dummy/db/migrate/20120319110639_create_users.rb +11 -0
  57. data/test/dummy/db/schema.rb +25 -0
  58. data/test/dummy/db/seeds.rb +7 -0
  59. data/test/dummy/log/development.log +8438 -0
  60. data/test/dummy/public/404.html +26 -0
  61. data/test/dummy/public/422.html +26 -0
  62. data/test/dummy/public/500.html +25 -0
  63. data/test/dummy/public/favicon.ico +0 -0
  64. data/test/dummy/script/rails +6 -0
  65. data/test/dummy/tmp/cache/assets/CAF/FF0/sprockets%2F7d59289db40c84ab90ba221598408d31 +0 -0
  66. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  67. data/test/dummy/tmp/cache/assets/CDE/490/sprockets%2F48dba258a70774e9038bbc1280fe8134 +0 -0
  68. data/test/dummy/tmp/cache/assets/D2D/420/sprockets%2F9a1401b402e78bf1b5e9c31c01fe760d +0 -0
  69. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  70. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  71. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  72. data/test/dummy/tmp/cache/assets/D69/D30/sprockets%2F34a9c65c0c96b635e0be0d76cd25af25 +0 -0
  73. data/test/dummy/tmp/cache/assets/D71/280/sprockets%2Fff59dd175fb96b014fe2bc490554d0f1 +0 -0
  74. data/test/dummy/tmp/cache/assets/D99/400/sprockets%2Fc4a46e4d6b50babbb4723883ae376e4f +0 -0
  75. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  76. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  77. data/test/integration/navigation_test.rb +10 -0
  78. data/test/test_helper.rb +15 -0
  79. metadata +203 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
metadata ADDED
@@ -0,0 +1,203 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: discourse_mountable_sso
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mohamed N.Salah
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.2'
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 3.2.14
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.2'
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: 3.2.14
33
+ description: Discourse Mountable Sso is a mountable engine made to handle Discourse
34
+ single sign on technique,it works with Rails 3.2.14
35
+ email:
36
+ - mohamednasser@usytech.com
37
+ executables: []
38
+ extensions: []
39
+ extra_rdoc_files: []
40
+ files:
41
+ - MIT-LICENSE
42
+ - README.rdoc
43
+ - Rakefile
44
+ - app/assets/javascripts/discourse_mountable_sso/application.js
45
+ - app/assets/stylesheets/discourse_mountable_sso/application.css
46
+ - app/controllers/discourse_mountable_sso/application_controller.rb
47
+ - app/controllers/discourse_mountable_sso/discourse_sso_controller.rb
48
+ - app/helpers/discourse_mountable_sso/application_helper.rb
49
+ - app/views/layouts/discourse_mountable_sso/application.html.erb
50
+ - config/routes.rb
51
+ - lib/discourse_mountable_sso.rb
52
+ - lib/discourse_mountable_sso/configuration.rb
53
+ - lib/discourse_mountable_sso/engine.rb
54
+ - lib/discourse_mountable_sso/single_sign_on.rb
55
+ - lib/discourse_mountable_sso/version.rb
56
+ - lib/tasks/discourse_mountable_sso_tasks.rake
57
+ - test/discourse_mountable_sso_test.rb
58
+ - test/dummy/README.rdoc
59
+ - test/dummy/Rakefile
60
+ - test/dummy/app/assets/images/header_bg.png
61
+ - test/dummy/app/assets/images/rails.png
62
+ - test/dummy/app/assets/images/ruby-source-logo.png
63
+ - test/dummy/app/assets/javascripts/application.js
64
+ - test/dummy/app/assets/javascripts/login.js
65
+ - test/dummy/app/assets/stylesheets/application.css
66
+ - test/dummy/app/assets/stylesheets/login.css
67
+ - test/dummy/app/controllers/application_controller.rb
68
+ - test/dummy/app/controllers/sessions_controller.rb
69
+ - test/dummy/app/controllers/users_controller.rb
70
+ - test/dummy/app/helpers/application_helper.rb
71
+ - test/dummy/app/models/user.rb
72
+ - test/dummy/app/views/layouts/application.html.erb
73
+ - test/dummy/app/views/sessions/home.html.erb
74
+ - test/dummy/app/views/sessions/login.html.erb
75
+ - test/dummy/app/views/sessions/profile.html.erb
76
+ - test/dummy/app/views/sessions/setting.html.erb
77
+ - test/dummy/app/views/users/new.html.erb
78
+ - test/dummy/config.ru
79
+ - test/dummy/config/application.rb
80
+ - test/dummy/config/boot.rb
81
+ - test/dummy/config/database.yml
82
+ - test/dummy/config/environment.rb
83
+ - test/dummy/config/environments/development.rb
84
+ - test/dummy/config/environments/production.rb
85
+ - test/dummy/config/environments/test.rb
86
+ - test/dummy/config/initializers/backtrace_silencers.rb
87
+ - test/dummy/config/initializers/discourse_config.rb
88
+ - test/dummy/config/initializers/inflections.rb
89
+ - test/dummy/config/initializers/mime_types.rb
90
+ - test/dummy/config/initializers/secret_token.rb
91
+ - test/dummy/config/initializers/session_store.rb
92
+ - test/dummy/config/initializers/wrap_parameters.rb
93
+ - test/dummy/config/locales/en.yml
94
+ - test/dummy/config/routes.rb
95
+ - test/dummy/db/migrate/20120319110639_create_users.rb
96
+ - test/dummy/db/schema.rb
97
+ - test/dummy/db/seeds.rb
98
+ - test/dummy/log/development.log
99
+ - test/dummy/public/404.html
100
+ - test/dummy/public/422.html
101
+ - test/dummy/public/500.html
102
+ - test/dummy/public/favicon.ico
103
+ - test/dummy/script/rails
104
+ - test/dummy/tmp/cache/assets/CAF/FF0/sprockets%2F7d59289db40c84ab90ba221598408d31
105
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
106
+ - test/dummy/tmp/cache/assets/CDE/490/sprockets%2F48dba258a70774e9038bbc1280fe8134
107
+ - test/dummy/tmp/cache/assets/D2D/420/sprockets%2F9a1401b402e78bf1b5e9c31c01fe760d
108
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
109
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
110
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
111
+ - test/dummy/tmp/cache/assets/D69/D30/sprockets%2F34a9c65c0c96b635e0be0d76cd25af25
112
+ - test/dummy/tmp/cache/assets/D71/280/sprockets%2Fff59dd175fb96b014fe2bc490554d0f1
113
+ - test/dummy/tmp/cache/assets/D99/400/sprockets%2Fc4a46e4d6b50babbb4723883ae376e4f
114
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
115
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
116
+ - test/integration/navigation_test.rb
117
+ - test/test_helper.rb
118
+ homepage: ''
119
+ licenses: []
120
+ metadata: {}
121
+ post_install_message:
122
+ rdoc_options: []
123
+ require_paths:
124
+ - lib
125
+ required_ruby_version: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ! '>='
128
+ - !ruby/object:Gem::Version
129
+ version: '0'
130
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ! '>='
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ requirements: []
136
+ rubyforge_project:
137
+ rubygems_version: 2.4.5
138
+ signing_key:
139
+ specification_version: 4
140
+ summary: Discourse Mountable Sso is a mountable engine made to handle Discourse single
141
+ sign on technique
142
+ test_files:
143
+ - test/discourse_mountable_sso_test.rb
144
+ - test/dummy/app/assets/images/header_bg.png
145
+ - test/dummy/app/assets/images/rails.png
146
+ - test/dummy/app/assets/images/ruby-source-logo.png
147
+ - test/dummy/app/assets/javascripts/application.js
148
+ - test/dummy/app/assets/javascripts/login.js
149
+ - test/dummy/app/assets/stylesheets/application.css
150
+ - test/dummy/app/assets/stylesheets/login.css
151
+ - test/dummy/app/controllers/application_controller.rb
152
+ - test/dummy/app/controllers/sessions_controller.rb
153
+ - test/dummy/app/controllers/users_controller.rb
154
+ - test/dummy/app/helpers/application_helper.rb
155
+ - test/dummy/app/models/user.rb
156
+ - test/dummy/app/views/layouts/application.html.erb
157
+ - test/dummy/app/views/sessions/home.html.erb
158
+ - test/dummy/app/views/sessions/login.html.erb
159
+ - test/dummy/app/views/sessions/profile.html.erb
160
+ - test/dummy/app/views/sessions/setting.html.erb
161
+ - test/dummy/app/views/users/new.html.erb
162
+ - test/dummy/config/application.rb
163
+ - test/dummy/config/boot.rb
164
+ - test/dummy/config/database.yml
165
+ - test/dummy/config/environment.rb
166
+ - test/dummy/config/environments/development.rb
167
+ - test/dummy/config/environments/production.rb
168
+ - test/dummy/config/environments/test.rb
169
+ - test/dummy/config/initializers/backtrace_silencers.rb
170
+ - test/dummy/config/initializers/discourse_config.rb
171
+ - test/dummy/config/initializers/inflections.rb
172
+ - test/dummy/config/initializers/mime_types.rb
173
+ - test/dummy/config/initializers/secret_token.rb
174
+ - test/dummy/config/initializers/session_store.rb
175
+ - test/dummy/config/initializers/wrap_parameters.rb
176
+ - test/dummy/config/locales/en.yml
177
+ - test/dummy/config/routes.rb
178
+ - test/dummy/config.ru
179
+ - test/dummy/db/migrate/20120319110639_create_users.rb
180
+ - test/dummy/db/schema.rb
181
+ - test/dummy/db/seeds.rb
182
+ - test/dummy/log/development.log
183
+ - test/dummy/public/404.html
184
+ - test/dummy/public/422.html
185
+ - test/dummy/public/500.html
186
+ - test/dummy/public/favicon.ico
187
+ - test/dummy/Rakefile
188
+ - test/dummy/README.rdoc
189
+ - test/dummy/script/rails
190
+ - test/dummy/tmp/cache/assets/CAF/FF0/sprockets%2F7d59289db40c84ab90ba221598408d31
191
+ - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
192
+ - test/dummy/tmp/cache/assets/CDE/490/sprockets%2F48dba258a70774e9038bbc1280fe8134
193
+ - test/dummy/tmp/cache/assets/D2D/420/sprockets%2F9a1401b402e78bf1b5e9c31c01fe760d
194
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
195
+ - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
196
+ - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
197
+ - test/dummy/tmp/cache/assets/D69/D30/sprockets%2F34a9c65c0c96b635e0be0d76cd25af25
198
+ - test/dummy/tmp/cache/assets/D71/280/sprockets%2Fff59dd175fb96b014fe2bc490554d0f1
199
+ - test/dummy/tmp/cache/assets/D99/400/sprockets%2Fc4a46e4d6b50babbb4723883ae376e4f
200
+ - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
201
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
202
+ - test/integration/navigation_test.rb
203
+ - test/test_helper.rb