Project

mtwarden

0.01
Low commit activity in last 3 years
No release in over a year
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
 Dependencies

Development

Runtime

~> 3.1
~> 2.102
~> 1.14
~> 2.0
~> 1.14
~> 3.10
~> 1.2
~> 51.3
~> 53.3
~> 46.3
~> 28.3
~> 27.3
~> 16.3
~> 10.3
~> 49.3
~> 56.3
~> 45.3
~> 25.3
~> 23.3
~> 18.3
~> 11.3
~> 5.3
~> 0.14.3
~> 5.2, >= 5.2.4.3
~> 1.2
~> 3.2
 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