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

Problem with multiple callback URLs

ANSWERED

I develop application which is available on diffrent subdomains, because every company can create own subdomain. So subdomains are created automatically and I have problem with setting callback url in that situation. Is it possible to set callback url as wildcard or something like that? Because I need that Fitbit API will accept callback URL from every subdomain of my domain.

 

Greetings
Mateusz

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

In accordance to the OAuth 2.0 specification, the redirect URIs must be an explicit match. You can specificy multiple callback URIs (one per line) in your app settings, but are limited to 3,000 characters.

 

A better solution is for you to have a generic callback URI that then redirects back to your company-specific subdomain. You can use the `state` parameter in the authorizatoin process to identify which subdomain your app should then redirect the user to from your generic callback URI.

View best answer in original post

Best Answer
2 REPLIES 2

In accordance to the OAuth 2.0 specification, the redirect URIs must be an explicit match. You can specificy multiple callback URIs (one per line) in your app settings, but are limited to 3,000 characters.

 

A better solution is for you to have a generic callback URI that then redirects back to your company-specific subdomain. You can use the `state` parameter in the authorizatoin process to identify which subdomain your app should then redirect the user to from your generic callback URI.

Best Answer

Thank You a lot!

Best Answer
0 Votes