Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8496907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:58:41+00:00 2026-06-10T23:58:41+00:00

We are building an SaaS app, let’s call it http://mysaasapp.com . When users sign

  • 0

We are building an SaaS app, let’s call it http://mysaasapp.com. When users sign up, they access their instance using a subdomain name http://myinstance.mysaasapp.com or a custom domain name http://instance.mycompany.com and so on.

We are looking at integrating with other services (Facebook, twitter, etc) so that our users can link to accounts on those services within their instance. Twitter is very lenient when it comes to OAuth redirect callbacks (the callback/redirect URL can be set by us when we make the OAuth request). Facebook, however, is not so leninent, the callback/redirect domain is set within the App’s configuration on facebook.com

When users use a custom domain name on their instance, they can opt to make the subdomain (http://myinstance.mysaasapp.com) on our site inactive. This means we can’t set the callback domain for OAuth to be mysaasapp.com and expect it to work.

The solution would be to use an OAuth proxy (http://proxy.mysaasapp.com). We have used HybridAuth previously, and we believe we should be able to easily turn it into a OAuth proxy.

Having said that:

  • Should we use the OAuth proxy to only proxy Auth requests? Once we get the access tokens, should we continue proxying the request through the proxy or should we just connect to the provider directly from our instance? In other words, are there any OAuth secured APIs that restrict API calls (after authentication) to certain defined domains?

  • How should I secure the OAuth proxy so that requests can only originate from instances of our app and responses can only go to instances of our app?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:58:43+00:00Added an answer on June 10, 2026 at 11:58 pm

    So here’s what I ended up doing.

    I created a very simple web app which is built around HybridAuth. This webapp would be hosted at oauth.mydomain.com.

    What happens is that when the user at his own instance wants to connect to a provider such as Facebook, the app instance does a server to server connection to oauth.mydomain.com by posting the provider type and a few other information. The proxy returns a token.

    We then redirect the user to oauth.mydomain.com while passing the token as a get parameter. oauth.mydomain.com invalidates the token and stores the information in the user’s session.

    The user then proceeds to authenticate with the provider. When this is successful, oauth.mydomain.com POSTs the consumer tokens and keys back to the instance at a special endpoint.

    When posting is complete, we redirect them back to the page they were on at theirdomain.com

    I have decided not to proxy all requests (only auth requests are proxied) because this is a simple method and providers (at least the ones I have looked at) only implemented domain restrictions during the auth process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are evaluating Shiro for a custom Saas app that we are building. Seems
We are in the process of building a Multi-Tenant, SaaS type web app. Everything
My team is currently building a new SaaS application for our company ( Amilia.com
I am in the process of building a Ruby on Rails based SaaS app.
I'm building my first Django app to manage multiple SaaS products. This entails storing
Building a new Mobile Web Platform for Mobile Users to purchase & download content
Building a Django app on a VPS. I am not very experienced with setting
Building a website that has English & Japanese speaking users, with the Japanese users
Building an iPhone OS application that will allow users to anonymously post information to
Building a sample ASP.NET MVC app. Using the Membership API for authentication. For whatever

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.