Project

mtwarden

0.01
No release in over 3 years
Low commit activity in last 3 years
MTWarden Rails 5.1 engine adds basecamp style user logins (multi-tenant authetication using warden gem) to your ruby on rails application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.1
~> 2.102
~> 1.14
~> 2.0
~> 1.14
~> 3.10
~> 1.2
~> 0.14.3
~> 5.2, >= 5.2.4.3
~> 1.2
~> 3.2
phcadmin7
~> 10.3
phctheme3
~> 25.3
phctheme6
~> 11.3
phctheme7
~> 5.3
phcadmin4
~> 28.3
phcadmin5
~> 27.3
phcadmin6
~> 16.3
phctheme4
~> 23.3
phctheme5
~> 18.3
phctheme2
~> 45.3
phcadmin1
~> 51.3
phcadmin3
~> 46.3
phctitleseo
~> 48.3
phcadmin2
~> 53.3
phcnotifi
~> 49.3
phctheme1
~> 56.3
 Project Readme

security Code Climate Gem Version License: MIT

MTWarden Rails 5.1 Multi-Tenancy Engine Documentation

PHC MTWarden Rails 5.1 engine adds a separate multi-tenant layer that handles all user registrations, multi-tenancy app functions, and login through subdomains using Warden authentication gem.

Step 1 - Add Mtwarden to your gemfile and run command

gem 'mtwarden', '~> 17.0'
bundle exec install  

Step 2 - Add and migrate mtwarden database tables

rake railties:install:migrations  
rake db:migrate  

Step 3 - Mount the Engine in your Routes File

Add this line at the top of the routes.rb file.

require 'mtwarden/constraints/subdomain_required'  

Step 4 - Mount the Engine in your Routes File

Add this line at the end of the routes.rb file.

mount Mtwarden::Engine, :at => '/'  

Step 5 - Constrain the routes you want secured under multi-tenancy in your routes.rb file.

All the routes you want to have multi-tenancy login functions goes in between the constraints block.

constraints(Mtwarden::Constraints::SubdomainRequired) do  
	# Routes Requiring Security & Multi-Tenancy Routes    
end