Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

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 at 20:28

1 Answer 1

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 at 22:20

You must log in to answer this question.

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