aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.42k stars 2.12k forks source link

Proxy support for Amplify SDK. #13048

Open zhengjie28 opened 7 months ago

zhengjie28 commented 7 months ago

Is this related to a new or existing framework?

React

Is this related to a new or existing API?

Authentication

Is this related to another service?

No response

Describe the feature you'd like to request

Hi team,

We had an internal application and all https request need to access via internal http proxy firstly. Therefore, I'm looking something like Configuring proxies for Node.js in Amplify JS SDK for Auth module. I have looked up all internet docs, tracing source code, and it seems not any way we can control http agent under the hood. So just need to confirm is it not possible for that currently?

We also consider amazon-cognito-identity-js, but still no luck.

Thanks for any advices.

Describe the solution you'd like

Describe alternatives you've considered

Not alternatives at all.

Additional context

No response

Is this something that you'd be interested in working on?

cwomack commented 7 months ago

Hello, @zhengjie28 and thank you for creating this issue. Since there's no "out of the box" support for proxies with Amplify, I've labeled this a feature request and will review it with the team internally. I'll also tag a related issue, #3168.

Just for a little more context and clarity, are you trying to proxy via a client-side dev server using webpack? Or were you trying to do this server-side?

cwomack commented 7 months ago

Also related to #12925