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

[SDK-3653] Add proxy support to Management Client #747

Merged
merged 4 commits into from Oct 11, 2022
Merged

Conversation

adamjmcgrath
Copy link
Member

@adamjmcgrath adamjmcgrath commented Oct 11, 2022

Changes

Pass proxy param to rest-facade client to enable proxy support

const { ManagementClient } = require('auth0');

const client = new ManagementClient({
  token: '{YOUR_API_V2_TOKEN}',
  domain: '{YOUR_ACCOUNT}.auth0.com',
  proxy: 'https://myproxy.com:1234'
});

References

See https://github.com/ngonzalvez/rest-facade#proxy-support
Fixes #613

Testing

  • This change adds unit test coverage

Checklist

@adamjmcgrath adamjmcgrath added the small Small review label Oct 11, 2022
@adamjmcgrath adamjmcgrath requested a review from a team as a code owner October 11, 2022 09:36
src/management/index.js Outdated Show resolved Hide resolved
Co-authored-by: Ewan Harris <ewanharris93@gmail.com>
@adamjmcgrath adamjmcgrath merged commit 209cc74 into master Oct 11, 2022
@adamjmcgrath adamjmcgrath deleted the proxy-support branch October 11, 2022 12:56
@adamjmcgrath adamjmcgrath mentioned this pull request Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add proxy support
2 participants