ciaranj / node-oauth

OAuth wrapper for node.js
MIT License
2.44k stars 660 forks source link

Enable differing domains for OAuth 2 requests #341

Open samsullivan opened 6 years ago

samsullivan commented 6 years ago

This solves #313 by only prepending this._baseSite to URLs if they don't start with /https?:/. For example, Facebook uses differing domains for these requests:

samsullivan commented 6 years ago

Maintainers: I didn't modify the constructor to make baseSite optional, because I wanted to keep my changes to a minimum. I'm happy to update this further, if you don't like this design.