Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

One app - many subdomains

How i should configure Callback URL for use app in many subdomains (near 1000) (sub1.example.com, sub2.example.com and etc)

Best Answer
0 Votes
9 REPLIES 9

This is an unusual use case. Can you please explain what you're doing?

 

You'll likely hit the character limit (3000) before you can add that many redirect URIs.

Best Answer
0 Votes
Thanks for your reply. We operate a Healthclub software from Fisikal.com. When our customers use the software each club leverages their own subdomain ie equinox.fisikal.com for example.

Our solution automatically assigns a subdomain based on the health club chains name.

We are keen to have a solution whereby we can allow each of the club chains to leverage our existing cuttingedge.fisikal.com.

Is this something you can accommodate?

Best wishes,

Rob Lander
CEO
www.fisikal.com
Best Answer
0 Votes

It's not something that we plan on supporting, at least in the near term.

 

We strongly recommend that apps that act on behalf of another company register an app on dev.fitbit.com for each of their customers. Otherwise, you'll need to use a more generic redirect URI for all of your customers' customers.

Best Answer
0 Votes
Sorry you misunderstand me. They are all within Fisikal. We put a subdomain on our software for our customers. All the end points map directly into Fisikal.com

Are you able to white label *cuttingedge.fisikal.com at all?



Best wishes,

Rob Lander
CEO
www.fisikal.com
Best Answer
0 Votes

No, we don't have that ability. The OAuth 2.0 specification requires an exact match for good security reasons. (Other OAuth 2.0 providers only match on hostname, not full URI, but even in that situation, it's unreasonable to expect to match more than a couple hostnames.)

Best Answer
0 Votes

We have the exact same issue. Is there a way to expand the 3,000 character limit? This only allows us access to roughly 42 different hostnames.

Best Answer
0 Votes

How much bigger would you need it to be? This is really going against our intent—we don't want to match a bunch of different hostnames for a single app. It's more of a convenience for apps that have multiple environments (QA, staging, production, etc).

Best Answer
0 Votes

We have over 130 different subdomains (and growing) but we found a different solution with logging in the user that is sent back through the state addition, then forwards them back to their original subdomain after completing the fitbit process. But we're not keen on sending information that could log someone in via the state method if at all possible.

Best Answer
0 Votes

@thidev wrote:

But we're not keen on sending information that could log someone in via the state method if at all possible.


Then don't pass that information. You can put whatever value in there you'd like. It doesn't have to be the same value of your cookie session or something. You could just use the subdomain of origin and no user-specific information.

Best Answer
0 Votes