maestrano-rails 0.15.0 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/maestrano/rails/saml_base_controller.rb +1 -1
  3. data/maestrano-rails.gemspec +3 -3
  4. data/test/dummy_activerecord/log/test.log +1004 -0
  5. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/2-0w2lrUYGJTWSS8ctq_qa38uSr88P2L-iV2bXyyGuA.cache +2 -0
  6. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/5g7dhxVp4YbZmFw_-T3aU2oYq2Z9Jgtps0CKneXYSS0.cache +2 -0
  7. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/9j4Cn3Bg7rj2--N8lWHQ-aSIKt0CZxl7GNjlSaHb7L0.cache +0 -0
  8. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/BQtyJR3ccqed7_s43p3BPj3IL18LWu1Fo1ZnzWC3qcc.cache +2 -0
  9. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/GDQMRgyhp21p2xg_ITm3PdEDJXU-mgllQ2Mij3aSig4.cache +1 -0
  10. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/HmDZuiDF0OtgSoq7e2rtPrN16sGrNzJO1GrvmJBFqYs.cache +0 -0
  11. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/IgIskv_-aTzPU_wM_Xr1bhk_nLAf8zYrjJonfNtAv6E.cache +1 -0
  12. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/IrC3CI4UK9epEnLL0YUsgNBcThnYcTbaNjMC5uPv1Uo.cache +1 -0
  13. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/K_kmfMGNdm_wfvEnsfYglN-C8fj94rbCQJSnAI03mNU.cache +1 -0
  14. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/LN4-PLL3b8DkfopaNEJ8U-nu9FuSHjEL4nELYoYCub8.cache +0 -0
  15. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/LniLozFK0AHveFRcKmFzbr_tFBteoecaWgVBQbJwaL0.cache +1 -0
  16. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/M6sHCm5v32qRTBidHBsrTORDxaA9SCVgH3jnRn8iNLk.cache +2 -0
  17. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/N6i2RwsdhSsA60KxpXlF7RYb3gLVu2mOQlWzPTMcNw4.cache +1 -0
  18. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/POVOiJI4HFOnKUqmwmHBWI-64koorns1IzsUwQdJwL0.cache +0 -0
  19. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/TM6G95HBN6Kv_sF1SaADJyoSpQQSLmMnUXVn2f1jlnY.cache +1 -0
  20. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/VNCapNKJLeponthNeFJhaBYs92UBT3P8PugENHP0474.cache +2 -0
  21. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/W1I750hXtFauIXfdF_h8f0H6Eh9fPjn1nb3WDnJGJ_0.cache +2 -0
  22. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/WHb_lDwqFJu6BaJF8_AHwWMmgY9AIS0RUjJZATvHGy8.cache +0 -0
  23. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/WkKqqsOutgzMPu_Ym1AolTwC2_fRzqxbvRFpO9Lgh5s.cache +0 -0
  24. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/Wo3dLIbJvLLO5QrL7Lxqf8CcxQPjTVgZjmAHci0eYlg.cache +1 -0
  25. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/aAuuIrhNOw2g3r2XWyh_9bURa6E2xn_5BCVi43ab-Ps.cache +0 -0
  26. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/b7lBpkBxQaCxHBBRf-QF0CiQKnRE8kYGLUzgAPTjf_k.cache +2 -0
  27. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/elwOvgAJ85O6bhimWI8AJJbAOJO-_oUSslLhr9GEfFc.cache +1 -0
  28. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/f8WWrWAptfo1qSmHsTYrCJzb_vYG0wpQ9xvPvb0F6yI.cache +2 -0
  29. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/hcPk5eM7VJPi2ZM7DxeJRgnl-LSUUd_GrYrFi2mj0Yc.cache +1 -0
  30. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/l_tJ9WwBL9Q8XjxQN56nGuGtCrP7kGBvE8e76g8tRC0.cache +2 -0
  31. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/qY82QbvY3JrynAsb6pAVt8teuBrKIkOQ4Yw25pqPvE0.cache +1 -0
  32. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/rjZFcBcZBcZzhVbfMwVzSmiPIhOG3lI-TPXRAVtpN6I.cache +1 -0
  33. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/spcLVj7sWjAbzSoM2eka7e_jHpvNnVKRzuuDwd0m-pQ.cache +1 -0
  34. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/uESU-1lgcxaDZ5lrTLLAlg8GUd-Igwr2gRavnaveWXU.cache +0 -0
  35. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/y66z-kCCKl0cyGdSI_hQzkRNjxRApQedRgJVTu3BuRo.cache +2 -0
  36. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/yJMqE54-t1my_dumhIg6mamMyRx0qADs7nY7cks0l-Q.cache +1 -0
  37. data/test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/zcBfaDXG5wGN1mPgJL8V1Y7f3VJ7zCZzS4q4zY6CkEM.cache +1 -0
  38. data/test/tmp/app/models/monster.rb +18 -0
  39. metadata +69 -9
  40. data/test/tmp/app/controllers/maestrano/account/group_users_controller.rb +0 -27
  41. data/test/tmp/app/controllers/maestrano/account/groups_controller.rb +0 -37
  42. data/test/tmp/app/controllers/maestrano/auth/saml_controller.rb +0 -57
  43. data/test/tmp/config/routes.rb +0 -60
@@ -0,0 +1,2 @@
1
+ "%����͹mm�
2
+ a�l�|a56���v�6}��(&5
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{I"environment-version:ETTI"environment-paths;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ofile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery.js;TTI"sfile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs.js;TTI"2file-digest://app/assets/javascripts/pages.js;TTI")file-digest://app/assets/javascripts;TTI"0file-digest://app/assets/javascripts/jquery;TTI")file-digest://app/assets/stylesheets;TTI"0file-digest://app/assets/stylesheets/jquery;TTI"efile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts;TTI"lfile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery;TTI"4file-digest://app/assets/javascripts/jquery_ujs;TTI"4file-digest://app/assets/stylesheets/jquery_ujs;TTI"pfile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"3file-digest://app/assets/stylesheets/pages.css;TT
@@ -0,0 +1 @@
1
+ I"�/home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery.js?type=application/javascript&pipeline=self&id=28d0ffb8e94f2139ffe500090a66102550dbf9e4d8413d3d5f3b8984122e73fe:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/pages.js?type=application/javascript&pipeline=self&id=f21a8bd7e0b2a6ab84aac71ccceabb2ba5911329e5b1c69b1d95957db6025971:ET
@@ -0,0 +1 @@
1
+ "%֧�NTZq�בH�L��#p3��Jg!��)
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=1ab6620f87c6997d2f89daee17a0164c32ffaab01d3c002fcd8aea03c4b60a13:ET
@@ -0,0 +1 @@
1
+ "%�U7��r��� ����ڥ�2�)d*�d��/po�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"ofile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery.js;TT
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=01b9f07f1ea6ab1ad1acaf3ae273ef102f47c07283f07c61b57fbd7d9d1c0451:ET
@@ -0,0 +1 @@
1
+ "%����"m�J���S��E�j!�/�d�]�/[���
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"8file-digest://app/assets/javascripts/application.js;TTI")file-digest://app/assets/javascripts;TTI"0file-digest://app/assets/javascripts/jquery;TTI")file-digest://app/assets/stylesheets;TTI"0file-digest://app/assets/stylesheets/jquery;TTI"efile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts;TTI"lfile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery;TTI"ofile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery.js;TTI"4file-digest://app/assets/javascripts/jquery_ujs;TTI"4file-digest://app/assets/stylesheets/jquery_ujs;TTI"pfile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs;TTI"sfile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs.js;TTI"2file-digest://app/assets/javascripts/pages.js;TT
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"2file-digest://app/assets/javascripts/pages.js;TT
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=69b4f28f43576ad32e7df804403a72dfb9c29bd8df946b59208af06ab3cc770f:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"9file-digest://app/assets/stylesheets/application.css;TTI")file-digest://app/assets/stylesheets;TTI"3file-digest://app/assets/stylesheets/pages.css;TT
@@ -0,0 +1 @@
1
+ "%��P�h}�����/Qx.o":9t9��V�v�
@@ -0,0 +1,2 @@
1
+ "%"%JϔZ�����X�X��=F�آ�f
2
+ �@��
@@ -0,0 +1 @@
1
+ I"�/home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs.js?type=application/javascript&pipeline=self&id=f29eb803616a013f7efe7b152742a3120421f48d14deaed2f8db5c158663262b:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TTI"3file-digest://app/assets/stylesheets/pages.css;TT
@@ -0,0 +1 @@
1
+ "%|�<�i�Xc�0�ګ��r�.Cn���WJ�
@@ -0,0 +1 @@
1
+ "%h�,"x!�ň�yf_C� _��V-� G�:P�
@@ -0,0 +1 @@
1
+ "%���h��;����*���b(��n��Gn��L
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash{ I"environment-version:ETTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"sfile-digest:///home/bruno/.rvm/gems/ruby-2.2.1/gems/jquery-rails-4.1.0/vendor/assets/javascripts/jquery_ujs.js;TT
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/pages.css?type=text/css&pipeline=self&id=1f4c61808774a4edfb5283514dae20e34c959807edb6b8819ddd38f402562a51:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=8f7206dbdc8a321d9b64c58507304a071e0ae944b05674ddac4f1e3fd9fc331b:ET
@@ -0,0 +1,18 @@
1
+ class Monster
2
+ include Mongoid::Document
3
+ # Enable Maestrano for this user
4
+ maestrano_user_via :provider, :uid, :tenant do |user,maestrano|
5
+ user.name = maestrano.first_name
6
+ user.surname = maestrano.last_name
7
+ user.email = maestrano.email
8
+
9
+ # user.country_alpha2 = maestrano.country
10
+ # user.some_required_field = 'some-appropriate-default-value'
11
+ end
12
+
13
+ ## User source identification fields
14
+ field :provider, type: String, default: ""
15
+ field :uid, type: String, default: ""
16
+ field :tenant, type: String, default: ""
17
+
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maestrano-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
@@ -162,6 +162,39 @@ files:
162
162
  - test/dummy_activerecord/public/500.html
163
163
  - test/dummy_activerecord/public/favicon.ico
164
164
  - test/dummy_activerecord/script/rails
165
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/2-0w2lrUYGJTWSS8ctq_qa38uSr88P2L-iV2bXyyGuA.cache
166
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/5g7dhxVp4YbZmFw_-T3aU2oYq2Z9Jgtps0CKneXYSS0.cache
167
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/9j4Cn3Bg7rj2--N8lWHQ-aSIKt0CZxl7GNjlSaHb7L0.cache
168
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/BQtyJR3ccqed7_s43p3BPj3IL18LWu1Fo1ZnzWC3qcc.cache
169
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/GDQMRgyhp21p2xg_ITm3PdEDJXU-mgllQ2Mij3aSig4.cache
170
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/HmDZuiDF0OtgSoq7e2rtPrN16sGrNzJO1GrvmJBFqYs.cache
171
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/IgIskv_-aTzPU_wM_Xr1bhk_nLAf8zYrjJonfNtAv6E.cache
172
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/IrC3CI4UK9epEnLL0YUsgNBcThnYcTbaNjMC5uPv1Uo.cache
173
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/K_kmfMGNdm_wfvEnsfYglN-C8fj94rbCQJSnAI03mNU.cache
174
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/LN4-PLL3b8DkfopaNEJ8U-nu9FuSHjEL4nELYoYCub8.cache
175
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/LniLozFK0AHveFRcKmFzbr_tFBteoecaWgVBQbJwaL0.cache
176
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/M6sHCm5v32qRTBidHBsrTORDxaA9SCVgH3jnRn8iNLk.cache
177
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/N6i2RwsdhSsA60KxpXlF7RYb3gLVu2mOQlWzPTMcNw4.cache
178
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/POVOiJI4HFOnKUqmwmHBWI-64koorns1IzsUwQdJwL0.cache
179
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/TM6G95HBN6Kv_sF1SaADJyoSpQQSLmMnUXVn2f1jlnY.cache
180
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/VNCapNKJLeponthNeFJhaBYs92UBT3P8PugENHP0474.cache
181
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/W1I750hXtFauIXfdF_h8f0H6Eh9fPjn1nb3WDnJGJ_0.cache
182
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/WHb_lDwqFJu6BaJF8_AHwWMmgY9AIS0RUjJZATvHGy8.cache
183
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/WkKqqsOutgzMPu_Ym1AolTwC2_fRzqxbvRFpO9Lgh5s.cache
184
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/Wo3dLIbJvLLO5QrL7Lxqf8CcxQPjTVgZjmAHci0eYlg.cache
185
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/aAuuIrhNOw2g3r2XWyh_9bURa6E2xn_5BCVi43ab-Ps.cache
186
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/b7lBpkBxQaCxHBBRf-QF0CiQKnRE8kYGLUzgAPTjf_k.cache
187
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/elwOvgAJ85O6bhimWI8AJJbAOJO-_oUSslLhr9GEfFc.cache
188
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/f8WWrWAptfo1qSmHsTYrCJzb_vYG0wpQ9xvPvb0F6yI.cache
189
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/hcPk5eM7VJPi2ZM7DxeJRgnl-LSUUd_GrYrFi2mj0Yc.cache
190
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/l_tJ9WwBL9Q8XjxQN56nGuGtCrP7kGBvE8e76g8tRC0.cache
191
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/qY82QbvY3JrynAsb6pAVt8teuBrKIkOQ4Yw25pqPvE0.cache
192
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/rjZFcBcZBcZzhVbfMwVzSmiPIhOG3lI-TPXRAVtpN6I.cache
193
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/spcLVj7sWjAbzSoM2eka7e_jHpvNnVKRzuuDwd0m-pQ.cache
194
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/uESU-1lgcxaDZ5lrTLLAlg8GUd-Igwr2gRavnaveWXU.cache
195
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/y66z-kCCKl0cyGdSI_hQzkRNjxRApQedRgJVTu3BuRo.cache
196
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/yJMqE54-t1my_dumhIg6mamMyRx0qADs7nY7cks0l-Q.cache
197
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/zcBfaDXG5wGN1mPgJL8V1Y7f3VJ7zCZzS4q4zY6CkEM.cache
165
198
  - test/dummy_activerecord/tmp/cache/assets/test/sprockets/070df203a09a9d4a368db8396165a105
166
199
  - test/dummy_activerecord/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
167
200
  - test/dummy_activerecord/tmp/cache/assets/test/sprockets/2a43a943daba23e5e37e8edf97cb0bdb
@@ -287,10 +320,7 @@ files:
287
320
  - test/models/maestrano_user_via_test.rb
288
321
  - test/test_files/config/routes.rb
289
322
  - test/test_helper.rb
290
- - test/tmp/app/controllers/maestrano/account/group_users_controller.rb
291
- - test/tmp/app/controllers/maestrano/account/groups_controller.rb
292
- - test/tmp/app/controllers/maestrano/auth/saml_controller.rb
293
- - test/tmp/config/routes.rb
323
+ - test/tmp/app/models/monster.rb
294
324
  homepage: https://maestrano.com
295
325
  licenses:
296
326
  - MIT
@@ -374,6 +404,39 @@ test_files:
374
404
  - test/dummy_activerecord/public/500.html
375
405
  - test/dummy_activerecord/public/favicon.ico
376
406
  - test/dummy_activerecord/script/rails
407
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/2-0w2lrUYGJTWSS8ctq_qa38uSr88P2L-iV2bXyyGuA.cache
408
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/5g7dhxVp4YbZmFw_-T3aU2oYq2Z9Jgtps0CKneXYSS0.cache
409
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/9j4Cn3Bg7rj2--N8lWHQ-aSIKt0CZxl7GNjlSaHb7L0.cache
410
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/BQtyJR3ccqed7_s43p3BPj3IL18LWu1Fo1ZnzWC3qcc.cache
411
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/GDQMRgyhp21p2xg_ITm3PdEDJXU-mgllQ2Mij3aSig4.cache
412
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/HmDZuiDF0OtgSoq7e2rtPrN16sGrNzJO1GrvmJBFqYs.cache
413
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/IgIskv_-aTzPU_wM_Xr1bhk_nLAf8zYrjJonfNtAv6E.cache
414
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/IrC3CI4UK9epEnLL0YUsgNBcThnYcTbaNjMC5uPv1Uo.cache
415
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/K_kmfMGNdm_wfvEnsfYglN-C8fj94rbCQJSnAI03mNU.cache
416
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/LN4-PLL3b8DkfopaNEJ8U-nu9FuSHjEL4nELYoYCub8.cache
417
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/LniLozFK0AHveFRcKmFzbr_tFBteoecaWgVBQbJwaL0.cache
418
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/M6sHCm5v32qRTBidHBsrTORDxaA9SCVgH3jnRn8iNLk.cache
419
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/N6i2RwsdhSsA60KxpXlF7RYb3gLVu2mOQlWzPTMcNw4.cache
420
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/POVOiJI4HFOnKUqmwmHBWI-64koorns1IzsUwQdJwL0.cache
421
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/TM6G95HBN6Kv_sF1SaADJyoSpQQSLmMnUXVn2f1jlnY.cache
422
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/VNCapNKJLeponthNeFJhaBYs92UBT3P8PugENHP0474.cache
423
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/W1I750hXtFauIXfdF_h8f0H6Eh9fPjn1nb3WDnJGJ_0.cache
424
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/WHb_lDwqFJu6BaJF8_AHwWMmgY9AIS0RUjJZATvHGy8.cache
425
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/WkKqqsOutgzMPu_Ym1AolTwC2_fRzqxbvRFpO9Lgh5s.cache
426
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/Wo3dLIbJvLLO5QrL7Lxqf8CcxQPjTVgZjmAHci0eYlg.cache
427
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/aAuuIrhNOw2g3r2XWyh_9bURa6E2xn_5BCVi43ab-Ps.cache
428
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/b7lBpkBxQaCxHBBRf-QF0CiQKnRE8kYGLUzgAPTjf_k.cache
429
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/elwOvgAJ85O6bhimWI8AJJbAOJO-_oUSslLhr9GEfFc.cache
430
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/f8WWrWAptfo1qSmHsTYrCJzb_vYG0wpQ9xvPvb0F6yI.cache
431
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/hcPk5eM7VJPi2ZM7DxeJRgnl-LSUUd_GrYrFi2mj0Yc.cache
432
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/l_tJ9WwBL9Q8XjxQN56nGuGtCrP7kGBvE8e76g8tRC0.cache
433
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/qY82QbvY3JrynAsb6pAVt8teuBrKIkOQ4Yw25pqPvE0.cache
434
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/rjZFcBcZBcZzhVbfMwVzSmiPIhOG3lI-TPXRAVtpN6I.cache
435
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/spcLVj7sWjAbzSoM2eka7e_jHpvNnVKRzuuDwd0m-pQ.cache
436
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/uESU-1lgcxaDZ5lrTLLAlg8GUd-Igwr2gRavnaveWXU.cache
437
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/y66z-kCCKl0cyGdSI_hQzkRNjxRApQedRgJVTu3BuRo.cache
438
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/yJMqE54-t1my_dumhIg6mamMyRx0qADs7nY7cks0l-Q.cache
439
+ - test/dummy_activerecord/tmp/cache/assets/sprockets/v3.0/zcBfaDXG5wGN1mPgJL8V1Y7f3VJ7zCZzS4q4zY6CkEM.cache
377
440
  - test/dummy_activerecord/tmp/cache/assets/test/sprockets/070df203a09a9d4a368db8396165a105
378
441
  - test/dummy_activerecord/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705
379
442
  - test/dummy_activerecord/tmp/cache/assets/test/sprockets/2a43a943daba23e5e37e8edf97cb0bdb
@@ -499,7 +562,4 @@ test_files:
499
562
  - test/models/maestrano_user_via_test.rb
500
563
  - test/test_files/config/routes.rb
501
564
  - test/test_helper.rb
502
- - test/tmp/app/controllers/maestrano/account/group_users_controller.rb
503
- - test/tmp/app/controllers/maestrano/account/groups_controller.rb
504
- - test/tmp/app/controllers/maestrano/auth/saml_controller.rb
505
- - test/tmp/config/routes.rb
565
+ - test/tmp/app/models/monster.rb
@@ -1,27 +0,0 @@
1
- class Maestrano::Account::GroupUsersController < Maestrano::Rails::WebHookController
2
-
3
- # DELETE /maestrano/account/groups/cld-1/users/usr-1/:tenant
4
- # Remove a user from a group
5
- def destroy
6
- # Set the right uid based on Maestrano.param('sso.creation_mode')
7
- user_uid = Maestrano.mask_user(params[:id],params[:group_id])
8
- group_uid = params[:group_id]
9
- tenant = params[:tenant]
10
-
11
- # Perform association deletion steps here
12
- # --
13
- # If Maestrano.param('sso.creation_mode') is set to virtual
14
- # then you might want to just delete/cancel/block the user
15
- #
16
- # E.g
17
- # user = User.find_by_tenant_and_uid(tenant, user_uid)
18
- # organization = Organization.find_by_tenant_and_uid(tenant ,group_uid)
19
- #
20
- # if Maestrano.param('sso.creation_mode') == 'virtual'
21
- # user.destroy
22
- # else
23
- # organization.remove_user(user)
24
- # user.block_access! if user.reload.organizations.empty?
25
- # end
26
- end
27
- end
@@ -1,37 +0,0 @@
1
- class Maestrano::Account::GroupsController < Maestrano::Rails::WebHookController
2
-
3
- # DELETE /maestrano/account/groups/cld-1/:tenant
4
- # Delete an entire group
5
- def destroy
6
- group_uid = params[:id]
7
- tenant = params[:tenant]
8
-
9
- # Perform deletion steps here
10
- # --
11
- # If you need to perform a final checkout
12
- # then you can call Maestrano::Account::Bill.create({.. final checkout details ..})
13
- # --
14
- # If Maestrano.param('sso.creation_mode') is set to virtual
15
- # then you might want to delete/cancel/block all users under
16
- # that group
17
- # --
18
- # E.g:
19
- # organization = Organization.find_by_tenant_and_uid(tenant, group_uid)
20
- #
21
- # amount_cents = organization.calculate_total_due_remaining
22
- # Maestrano::Account::Bill.create({
23
- # group_id: group_uid,
24
- # price_cents: amount_cents,
25
- # description: "Final Payout"
26
- # })
27
- #
28
- # if Maestrano.param('sso.creation_mode') == 'virtual'
29
- # organization.members.where(provider:'maestrano').each do |user|
30
- # user.destroy
31
- # end
32
- #
33
- # organization.destroy
34
- # render json: {success: true}
35
- #
36
- end
37
- end
@@ -1,57 +0,0 @@
1
- class Maestrano::Auth::SamlController < Maestrano::Rails::SamlBaseController
2
-
3
- #== POST '/maestrano/auth/saml/consume/:tenant'
4
- # Final phase of the Single Sign-On handshake. Find or create
5
- # the required resources (user and group) and sign the user
6
- # in
7
- #
8
- # This action is left to you to customize based on your application
9
- # requirements. Below is presented a potential way of writing
10
- # the action.
11
- #
12
- # Assuming you have enabled maestrano on a user model
13
- # called 'User' and a group model called 'Organization'
14
- # the action could be written the following way
15
- def consume
16
- ### 1)Find or create the user and the group
17
- ### --
18
- ### The class method 'find_or_create_for_maestrano' is provided
19
- ### by the maestrano-rails gem on the model you have maestrano-ized.
20
- ### The method uses the mapping defined in the model 'maestrano_*_via'
21
- ### block to create the resource if it does not exist
22
- ### The 'user_auth_hash' and 'group_auth_hash' methods are provided
23
- ### by the controller.
24
- ### --
25
- # user = User.find_or_create_for_maestrano(user_auth_hash)
26
- # organization = Organization.find_or_create_for_maestrano(group_auth_hash)
27
- #
28
- # user.tenant = params[:tenant]
29
- # user.save
30
- # organization.tenant = params[:tenant]
31
- # organization.save
32
- #
33
- #
34
- ### 2) Add the user to the group if not already a member
35
- ### --
36
- ### The 'user_group_rel_hash' method is provided by the controller.
37
- ### The role attribute provided by maestrano is one of the following:
38
- ### 'Member', 'Power User', 'Admin', 'Super Admin'
39
- ### The 'member_of?' and 'add_member' methods are not provided by
40
- ### maestrano and are left to you to implement on your models
41
- ### --
42
- # unless user.member_of?(organization)
43
- # organization.add_member(user,role: user_group_rel_hash[:role])
44
- # end
45
- #
46
- #
47
- ### Sign the user in and redirect to application root
48
- ### --
49
- ### The 'sign_in' method is not provided by maestrano but should already
50
- ### be there if you are using an authentication framework like Devise
51
- ### --
52
- # sign_in(user)
53
- # redirect_to root_path
54
-
55
- raise NotImplemented.new("The consume action should be customized to fit your application needs")
56
- end
57
- end
@@ -1,60 +0,0 @@
1
- Dummy::Application.routes.draw do
2
- maestrano_routes
3
-
4
- # The priority is based upon order of creation:
5
- # first created -> highest priority.
6
-
7
- # Sample of regular route:
8
- # match 'products/:id' => 'catalog#view'
9
- # Keep in mind you can assign values other than :controller and :action
10
-
11
- # Sample of named route:
12
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
13
- # This route can be invoked with purchase_url(:id => product.id)
14
-
15
- # Sample resource route (maps HTTP verbs to controller actions automatically):
16
- # resources :products
17
-
18
- # Sample resource route with options:
19
- # resources :products do
20
- # member do
21
- # get 'short'
22
- # post 'toggle'
23
- # end
24
- #
25
- # collection do
26
- # get 'sold'
27
- # end
28
- # end
29
-
30
- # Sample resource route with sub-resources:
31
- # resources :products do
32
- # resources :comments, :sales
33
- # resource :seller
34
- # end
35
-
36
- # Sample resource route with more complex sub-resources
37
- # resources :products do
38
- # resources :comments
39
- # resources :sales do
40
- # get 'recent', :on => :collection
41
- # end
42
- # end
43
-
44
- # Sample resource route within a namespace:
45
- # namespace :admin do
46
- # # Directs /admin/products/* to Admin::ProductsController
47
- # # (app/controllers/admin/products_controller.rb)
48
- # resources :products
49
- # end
50
-
51
- # You can have the root of your site routed with "root"
52
- # just remember to delete public/index.html.
53
- # root :to => 'welcome#index'
54
-
55
- # See how all your routes lay out with "rake routes"
56
-
57
- # This is a legacy wild controller route that's not recommended for RESTful applications.
58
- # Note: This route will make all actions in every controller accessible via GET requests.
59
- # match ':controller(/:action(/:id))(.:format)'
60
- end