Sha256: f8e4fbed2872a6e43a1c0a0657c5503adaf050cee82d95b9db5ceea217d29263
Contents?: true
Size: 1.75 KB
Versions: 5
Compression:
Stored size: 1.75 KB
Contents
[![security](https://hakiri.io/github/PHCNetworks/multi-tenancy-warden/master.svg)](https://hakiri.io/github/PHCNetworks/multi-tenancy-warden/master) [![Code Climate](https://codeclimate.com/github/PHCNetworks/multi-tenancy-warden/badges/gpa.svg)](https://codeclimate.com/github/PHCNetworks/multi-tenancy-warden) [![Dependency Status](https://gemnasium.com/badges/github.com/PHCNetworks/multi-tenancy-warden.svg)](https://gemnasium.com/github.com/PHCNetworks/multi-tenancy-warden) [![Gem Version](https://badge.fury.io/rb/mtwarden.svg)](https://badge.fury.io/rb/mtwarden) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/PHCNetworks/multi-tenancy-warden/blob/master/MIT-LICENSE) ### Mtwarden(MultiTenancyWarden) Documentation PHC mtwarden gem 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', '~> 3.6' 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 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
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
mtwarden-4.1.2 | README.md |
mtwarden-4.1.1 | README.md |
mtwarden-4.1.0 | README.md |
mtwarden-4.0.0 | README.md |
mtwarden-3.6.2 | README.md |