Skip to content

Conversation

mdrichardson
Copy link
Contributor

@mdrichardson mdrichardson commented Oct 13, 2020

Fixes #1396

  • Added new Skill constant to RoleTypes
  • Updated BotframeworkHttpCllient to set the Role in the Recipient of the outgoing activity clone to RoleTypes.Skill
  • Updated ChannelServiceHanlder to add an anonymous skill AppId claim when auth is disabled.
  • Updated AppCredentials.ShouldSetToken() logic to avoid sending a token when the AppId is not set or when it is set to the anonymous skill appId.
  • Updated SkillValidation.IsSkillClaim to return true for anonymous skills.
  • Updated JwtTokenValidation.AuthenticateRequest to check the Role property in the incoming activity to determine if the request is coming from another bot or the channel.
  • Added AuthenticationConstants.AnonymousSkillAppId constant.
  • Added AuthenticationConstants.AnonymousAuthType constant and updated related code to use it instead of using hardcoded "anonymous"
  • Added unit tests for new logic.

Testing

Try any skill sample from the emulator without using AppIds and Passwords

@mdrichardson mdrichardson marked this pull request as ready for review October 15, 2020 21:44
@axelsrz axelsrz merged commit a30301b into microsoft:main Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants