wictorwilen / express-msteams-host

Express utility for Microsoft Teams solutions
MIT License
13 stars 6 forks source link

How to configure proxy? #23

Open parag0kyndryl opened 2 years ago

parag0kyndryl commented 2 years ago

Hi,

Can you tell me how can I configure the proxy while using @BotDeclaration?

Any help is appreciated.

Thank You.

wictorwilen commented 2 years ago

Hi @parag0kyndryl - what do you mean with configure the proxy, what proxy are you talking about

parag0kyndryl commented 2 years ago

Basically, my server's network traffic must be routed via a proxy URL because I have a URL whitelisting in place. I'm just looking for a similar option while using this package.

Something like this: https://github.com/microsoftgraph/msgraph-sdk-javascript/blob/dev/src/IClientOptions.ts#L29 (I'm using this for Microsoft Graph API)

Edit: Updated the link

wictorwilen commented 2 years ago

@parag0kyndryl - the BotDeclaration only specifies the local endpoint (path) of the server. It does not have anything to do on how things are routed to the server.

parag0kyndryl commented 2 years ago

You're right, but express-msteams-host internally trying to reach https://login.botframework.com and that is where the issue is. My server is inside a corporate network and without specifying a proxy option the package can not connect to https://login.botframework.com

wictorwilen commented 2 years ago

It's not express-msteams-host that is trying to do this, it's the bot framework and it is required for bot framework to communicate with that endpoint. This might help you: https://docs.microsoft.com/en-us/composer/configure-composer-proxy?tabs=windows