Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to have the redirect_uri contain a specific port?

For example:

example.com:8080

Assuming that example.com is my registered domain, is the 8080 allowed? I have tried to put it as part of my OAuth Domain, but get this error: OAuth Domain should not contain protocol or port. If I leave the port off, it does attempt to redirect properly, but my application will not be living on my main web server.

share|improve this question
    
This should probably be a feature request, if you want it. I don't think it's supported currently. – Brock Adams Mar 12 '14 at 20:28

Remove the protocol and it should work.

On my localhost, I am testing OAuth on a random port and it works fine, while the App setting for redirect_uri is just localhost.

share|improve this answer
    
localhost is a special case. Since the OP states he is using a domain, this technique will probably not work for him. – Brock Adams Nov 12 '14 at 22:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .