passport-oauth2 icon indicating copy to clipboard operation
passport-oauth2 copied to clipboard

Dynamic token URL?

Open alexmic opened this issue 9 years ago • 2 comments

I'm writing an oAuth 2.0 flow for integrating with Vend POS and they return a domain_prefix along with the authorization code which is supposed to be used as a subdomain when requesting an access token i.e https://{domain_prefix}.vendhq.com/api/1.0/token. What's the best way of achieving that?

Vend docs: https://developers.vendhq.com/documentation/oauth.html

alexmic avatar Jan 25 '16 13:01 alexmic

hi @alexmic I have the same issue with using the vend API as well. How did you solve it?

As a last resort I'm thinking of just prompting the user to enter their domain.

murraybauer avatar Dec 29 '16 11:12 murraybauer

I've added this functionality here

https://github.com/theogravity/passport-oauth2-alt

theogravity avatar Feb 24 '17 22:02 theogravity