Switching Tenants and logging in user via Doorkeeper - ruby-on-rails

I am trying to make doorkeeper work with my multitenant application which runs on Apartment Gem. I am trying to figure out a way to load schema for doorkeeper gem to find and authenticate the user.
Any suggestions on how to proceed?

Related

How to create a user authentication using rails as backend and ember as frontend

I'm working on eCommerce for my internship project. But I don't know how to create the user authentication using rails and ember
First I assume the following things:
You are using ember to develop your frontend and will consume APIs from the backend.
You are using rails to create the necessary API.
If you want to authenticate users before using your API, check out the doorkeeper and devise gem. Devise takes care of things like storing your user details in the database, resetting the password, etc. The Doorkeeper gem is used to provide authentication and authorization to APIs.
Doorkeeper Link: https://github.com/doorkeeper-gem/doorkeeper
Devise Link: https://github.com/heartcombo/devise

SSO integration using Rails for WordPress

I am building Rails Application which re-directs users to a WordPress Site. All exisiting users are in Rails Database.Now I want to use SSO from Rails App to Wordpress.
I came across this solution but
I am using custom authentication method instead of devise gem as called out in the solution.
Is there any other alternate methods to solve this?

Rails Authentication and Authorization - Best approach?

I've been battling at how to accomplish this for a while and even started working on different solutions only to notice it's not very practical or could lead to problems.
Scenario: A user can create an Admin account and invite (mail invite) another user as a Client. I was thinking of using the devise_invitable gem to handle the invitation process. I'm not sure if I should have 2 models (Admin/Client).
Gems I've been considering:
devise
devise_invitable
cancancan
pundit
rollify
The thing is that whatever setup I use for authentication and authorization must comply with devise_invitable gem given that its a load of my mind to build that functionality myself.
Devise and Oauth 2.0. If you need an admin panel you can use rails_admin or there are a variety of admin gems as well, Or you can make your own.

Rails using Devise LDAP authenticable gem to get all LDAP users

I've been using Devise's LDAP_authenticable gem for weeks now with a Rails 4 application and it works great for authenticating and finding a users LDAP information when I have someone's samaccountname.
Is there no way to use this gem to simply view all users in a LDAP Active Directory?
This seems pretty common, I was hoping that someone has already discovered how to do this?

rails sorcery gem and ldap authentication using net-ldap and/or activeldap

I have a rails 3.1.1 app which is using sorcery gem for the authentication. I was wondering if I can hook in LDAP in there so that I can authenticate against an ldap server instead of a database table. Has anyone implemented this?
I have done it with devise and devise-ldap auth.
Here are some of the links I found in my search.
https://github.com/cschiewek/devise_ldap_authenticatable
http://corrupt.net/2010/07/05/LDAP-Authentication-With-Devise/

Resources