Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested method to authenticate against sandbox / test environment? #542

Open
aaronbauman opened this issue Jul 27, 2018 · 1 comment
Open

Comments

@aaronbauman
Copy link
Contributor

I see many of the OAuth Service providers have hard-coded endpoints for production services.
e.g. login.salesforce.com, www.paypal.com, etc.

For my application, I need flexibility to set the endpoint base URL differently, based on my SLDC. What's the recommended way to do this? Just extend the class and override those methods?

If that's the recommendation, would you consider a patch to include a more robust framework to swap out the endpoints? Or is this overkill?

Thanks for your work on this.

@daviddesberg
Copy link
Owner

daviddesberg commented Jul 28, 2018

Yeah honestly with the way the code structure is right now your best bet is extending the class and overriding the methods, naming the derived class something indicating it targets a different environment.

If you have a proposal for making it cleaner let me know, I'd accept a PR that doesn't break BC and is reasonably clean - I know the design isn't currently ideal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants