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

Initialize security context for Skill ContinueConversationAsync calls #3244

Merged
merged 4 commits into from
Jan 14, 2020

Conversation

gabog
Copy link
Contributor

@gabog gabog commented Jan 9, 2020

Relates to #3245

Adds code to initialize _appCredentialMap and _connectorClients cache with default instances during ContinueConversationAsync calls.

This PR also adds the serviceUrl of the reference activity to the AppCredentials.TrustServiceUrl list.

This is needed because these in memory objects are not initialized unless the channel invokes the bot first. In some proactive scenarios and skills, the server may not have been initialized and this cases a 401 when the bot tries to respond to the channel.

@gabog gabog marked this pull request as ready for review January 10, 2020 20:14
Copy link
Contributor

@tomlm tomlm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

…t is only done when the request has been handled by the skill infrastructure.
@gabog gabog changed the title Initialize security context for ContinueConversationAsync calls Initialize security context for Skill ContinueConversationAsync calls Jan 14, 2020
@gabog gabog merged commit 8cb2f0b into 4.7 Jan 14, 2020
@gabog gabog deleted the gabog/TrustedServicesFixForProactive branch January 14, 2020 21:29
gabog added a commit that referenced this pull request Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants