All threads / How do I integrate Doorkeeper gem with a Multitenant SaaS Application?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

How do I integrate Doorkeeper gem with a Multitenant SaaS Application?

Aniket Rao asked in General

So I have a Multitenant SaaS Application where users signup, pay, create an account and start using the service. Now I have received a requirement where this service needs to have a andriod client which needs to be global to the application and not the tenant. Now how do I make my SaaS application to act as a OAuth2 provider and authenticate and authorize the client?

If the user wants to sign in via the Android Client, at that moment I do not know which tenant/account the user belongs to so I cannot confirm the subdomain in play for confirmation.

Can anybody suggest a good way to handle this?

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,629+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.