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

MessageBird API New Request Verification Method and Breaking Changes #467

Conversation

ahmetkocadogan
Copy link
Contributor

issue #466

This update adds the new and suggested way of request verification with MessageBird API.

MessageBird NuGet package is updated to the version 3.2.0
Removed old request verification method and replaced it with new request verification method.
Required code for WhatsApp sticker messages has been added but commented because MessageBird Nuget package 3.2.0 does not support it yet, my PR is waiting to be reviewed and when it is merged, i'll uncomment and update the adapter code.
See : messagebird/csharp-rest-api#111

Breaking Changes:

MessageBirdUseWhatsAppSandbox parameter is removed due to the changes in MessageBird C# NuGet package. This is no longer needed according to MessageBird. See messagebird/csharp-rest-api#87

public string MessageBirdWebhookEndpointUrl { get; set; } is added to AdapterOptions and should be added in appsettings.json file. This parameter should be the endpoint url for receiving MessageBird WhatsApp messages, like https://www.botdomainname.com/api/messagebird . This url is being used in the request verification method.
For more info , see https://developers.messagebird.com/api/#verifying-http-requests

@rvinothrajendran fyi. You can update the component for Composer according to these changes. Thank you.

@garypretty garypretty merged commit 5929759 into BotBuilderCommunity:develop Mar 16, 2022
@ahmetkocadogan
Copy link
Contributor Author

@rvinothrajendran @garypretty thank you

garypretty added a commit that referenced this pull request Mar 17, 2022
* Swallow handoff events and suppport datetime (#404)

* Swallow handoff events and suppport datetime

Ensure handoff events handled by the handoff middleware are swallowed and not passed to the user. Update ServiceNow controller / middleware to handle datetimepicker. Update readme.

* Fix link / multi link support and add card support

* Update TokenExchangeSkillHandler tags and package info (#397)

Fixes: #396

* Added TextRecognizer middlware compoent (#402)

* Added TextRecognizer middlware compoent

* Added readme file for TextRecognizer middleware

* Updated readme.md file

* Replace with Bot_Builder_Version tag

* add it to the turn state and remove from conversation state

* Updated read.md file

* Add Sentiment Analysis Middleware Component (#400)

* chore: update the SentimentAnalyzer reference for Sentiment Analysis Middleware

* chore: add the Sentiment Analysis Middleware component

* chore: modified the description.

* Update README.md

Add all the relevant details

* chore: add solution file and fixed the null check

* chore: add it to the turn state and remove from conversation state after discussing with SDK team

Co-authored-by: Gary Pretty <[email protected]>

* ServiceNow Component Updates (#407)

* Swallow handoff events and suppport datetime

Ensure handoff events handled by the handoff middleware are swallowed and not passed to the user. Update ServiceNow controller / middleware to handle datetimepicker. Update readme.

* Fix link / multi link support and add card support

* Updates for images / carousels

* Add Google Business Messaging Adapter Component (#408)

* Add Google Business Messaging Component

* Update project file and component registration

* Add package icon

* Include schemas in project

* Add incoming message validation and partnerKey property

* Change to UTF8 encoding in the body validation when requesting authorization (#439)

* StreamReader overload to specify UTF8 encoding type

StreamReader overload to UTF8 encoding type in order to have more compatibility with the character sets of other languages ​​apart from English.  
since this can generate incompatibility in certain cases such as in #435

* Change from ASCII to UTF8 encoding in _requestBodyByte

Change from ASCII to UTF8 encoding type in the body request to have more compatibility with the character sets of other languages ​​apart from English.  
since this can generate incompatibility in certain cases such as in #435

* Include gifs in cards library readme (#431)

Co-authored-by: Kyle Delaney <[email protected]>

* Update cards library sample dependencies (#430)

Co-authored-by: Kyle <[email protected]>

* Added null conditional operators for default case and outputText Case to handle  Null reference exception (#425)

* Resolved the issue by adding text inside the hero card, changed item.header to display title for the single link response type. (#426)

* Modifications made in the else part of picker case and boolean case  to render the text within the hero card instead of separate message. (#424)

* Limiting the number of buttons to 50  and cards to 10 that can be rendered in a Hero card carousel. (#423)

* A new response type called OutPutHTML is released in the latest build. With this release, the rich text is not shown and line breaks are missing, displays as a plain text. (#428)

* UI change to Incident card Keys/Titles like Short description  to be bold in the card response type. (#422)

* Added Multi select choice input (#420)

* Added Multi select choice input

* Create README.md

* Document has updated

* URL is not constructed properly (#427)

* Checking for the takeControl flag  along with the responseMessage.completed flag to hand over back the user to MS Bot (#421)

* Removed unnecessary param in the payload (#429)

* Removed unnecessary param in the payload

* Revert "Removed unnecessary param in the payload"

This reverts commit 4003a9f.

* Removed unnecessary param in the payload

* Fix for Ticket Details are truncating and not wrapping (#452)

Co-authored-by: Palanikumar Ravichandran <[email protected]>

* Update token exchange skill handler readme (#440)

* Update readme.md

* Update readme.md

* Update readme.md

Co-authored-by: Gary Pretty <[email protected]>

* Expire Conversation Trigger for Bot composer (#456)

* Added expire conversation trigger

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

Co-authored-by: Gary Pretty <[email protected]>

* Bump RestSharp in /libraries/Bot.Builder.Community.Adapters.Zoom (#445)

Bumps [RestSharp](https://github.com/restsharp/RestSharp) from 106.10.2-alpha.0.8 to 106.12.0.
- [Release notes](https://github.com/restsharp/RestSharp/releases)
- [Changelog](https://github.com/restsharp/RestSharp/blob/dev/releasenotes.md)
- [Commits](https://github.com/restsharp/RestSharp/commits/106.12)

---
updated-dependencies:
- dependency-name: RestSharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gary Pretty <[email protected]>

* Added custom Bot composer dialog Inputs (#457)

* Added custom inputs

* Added custom dialog inputs

* Added custom dialog inputs

Co-authored-by: Gary Pretty <[email protected]>

* Move Facebook, Slack, Twilio, Webex adapters (#461)

* Copy Facebook Adapter

* Delete schema files

* Rename project file.

* -Change namespace
-Remove unused usings
-Remove Microsoft copyright notice

* Add README, project file, update solution

* Add Slack, Twilio, Webex initial copy from MS repo

* Slack - update namespace, remove MS copyright notice, remove ununsed usings

* Twilio - update namespaces, remove MS copyright

* Webex - update namespace, remove copyright

* Remove schemas, icons

* Add fully qualified name to Schema

* Add Facebook, Slack, Twilio, Webex tests from MS repo

* Update adapters tests

* Update READMEs

* Remove old project file

* Remove old project files.

* MessageBird adapter for BotComposer (#460)

* MessageBird adapter for BotComposer

* MessageBird adapter for BotComposer

* MessageBird adapter for BotComposer

* MessageBird adapter for BotComposer

* Update BotBuilderCommunity.MessageBirdAdapter.schema

Co-authored-by: Gary Pretty <[email protected]>

* Google adapter fix for Access Token (#463)

Co-authored-by: Gary Pretty <[email protected]>

* MessageBird API New Request Verification Method and Breaking Changes (#467)

* #466

* switch statement added, if/else blokcs are removed.

* added caption support for MediaContent's like image, video, audio, file

* fixed some unnecessary indentations

* Changed sample , image caption and added Sample project to the solution file

* fix content type for samples

* added sample code to readme file

* more fixing readme file

* updating composer component to reflect the breaking changes of the adapter, NuGet tags and description

* reverting a tag for NuGet

* Move Samples for Facebook, Slack, Twilio, Webex adapters (#472)

* Copy Facebook Adapter

* Delete schema files

* Rename project file.

* -Change namespace
-Remove unused usings
-Remove Microsoft copyright notice

* Add README, project file, update solution

* Add Slack, Twilio, Webex initial copy from MS repo

* Slack - update namespace, remove MS copyright notice, remove ununsed usings

* Twilio - update namespaces, remove MS copyright

* Webex - update namespace, remove copyright

* Remove schemas, icons

* Add fully qualified name to Schema

* Add Facebook, Slack, Twilio, Webex tests from MS repo

* Update adapters tests

* Update READMEs

* Remove old project file

* Remove old project files.

* Add Facebook, Twilio, Slack, Webex adapter samples.

* Update namespaces, remove copyright notice, update adapter package references, update READMEs.

* Update namespaces.

* Update READMEs.

* Update test projects target framework to netcoreapp3.1.

Co-authored-by: Eric Dahlvang <[email protected]>
Co-authored-by: Vinoth Rajendran <[email protected]>
Co-authored-by: Arafat Tehsin <[email protected]>
Co-authored-by: Ricardo Zamudio <[email protected]>
Co-authored-by: Kyle Delaney <[email protected]>
Co-authored-by: Kyle Delaney <[email protected]>
Co-authored-by: Amit-singh96 <[email protected]>
Co-authored-by: newlogics <[email protected]>
Co-authored-by: Palanikumar Ravichandran <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Monica Rivera <[email protected]>
Co-authored-by: lauren-mills <[email protected]>
Co-authored-by: ahmetkocadogan <[email protected]>
garypretty added a commit that referenced this pull request Jun 9, 2022
* Swallow handoff events and suppport datetime (#404)

* Swallow handoff events and suppport datetime

Ensure handoff events handled by the handoff middleware are swallowed and not passed to the user. Update ServiceNow controller / middleware to handle datetimepicker. Update readme.

* Fix link / multi link support and add card support

* Update TokenExchangeSkillHandler tags and package info (#397)

Fixes: #396

* Added TextRecognizer middlware compoent (#402)

* Added TextRecognizer middlware compoent

* Added readme file for TextRecognizer middleware

* Updated readme.md file

* Replace with Bot_Builder_Version tag

* add it to the turn state and remove from conversation state

* Updated read.md file

* Add Sentiment Analysis Middleware Component (#400)

* chore: update the SentimentAnalyzer reference for Sentiment Analysis Middleware

* chore: add the Sentiment Analysis Middleware component

* chore: modified the description.

* Update README.md

Add all the relevant details

* chore: add solution file and fixed the null check

* chore: add it to the turn state and remove from conversation state after discussing with SDK team

Co-authored-by: Gary Pretty <[email protected]>

* ServiceNow Component Updates (#407)

* Swallow handoff events and suppport datetime

Ensure handoff events handled by the handoff middleware are swallowed and not passed to the user. Update ServiceNow controller / middleware to handle datetimepicker. Update readme.

* Fix link / multi link support and add card support

* Updates for images / carousels

* Add Google Business Messaging Adapter Component (#408)

* Add Google Business Messaging Component

* Update project file and component registration

* Add package icon

* Include schemas in project

* Add incoming message validation and partnerKey property

* Change to UTF8 encoding in the body validation when requesting authorization (#439)

* StreamReader overload to specify UTF8 encoding type

StreamReader overload to UTF8 encoding type in order to have more compatibility with the character sets of other languages ​​apart from English.  
since this can generate incompatibility in certain cases such as in #435

* Change from ASCII to UTF8 encoding in _requestBodyByte

Change from ASCII to UTF8 encoding type in the body request to have more compatibility with the character sets of other languages ​​apart from English.  
since this can generate incompatibility in certain cases such as in #435

* Include gifs in cards library readme (#431)

Co-authored-by: Kyle Delaney <[email protected]>

* Update cards library sample dependencies (#430)

Co-authored-by: Kyle <[email protected]>

* Added null conditional operators for default case and outputText Case to handle  Null reference exception (#425)

* Resolved the issue by adding text inside the hero card, changed item.header to display title for the single link response type. (#426)

* Modifications made in the else part of picker case and boolean case  to render the text within the hero card instead of separate message. (#424)

* Limiting the number of buttons to 50  and cards to 10 that can be rendered in a Hero card carousel. (#423)

* A new response type called OutPutHTML is released in the latest build. With this release, the rich text is not shown and line breaks are missing, displays as a plain text. (#428)

* UI change to Incident card Keys/Titles like Short description  to be bold in the card response type. (#422)

* Added Multi select choice input (#420)

* Added Multi select choice input

* Create README.md

* Document has updated

* URL is not constructed properly (#427)

* Checking for the takeControl flag  along with the responseMessage.completed flag to hand over back the user to MS Bot (#421)

* Removed unnecessary param in the payload (#429)

* Removed unnecessary param in the payload

* Revert "Removed unnecessary param in the payload"

This reverts commit 4003a9f.

* Removed unnecessary param in the payload

* Fix for Ticket Details are truncating and not wrapping (#452)

Co-authored-by: Palanikumar Ravichandran <[email protected]>

* Update token exchange skill handler readme (#440)

* Update readme.md

* Update readme.md

* Update readme.md

Co-authored-by: Gary Pretty <[email protected]>

* Expire Conversation Trigger for Bot composer (#456)

* Added expire conversation trigger

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

Co-authored-by: Gary Pretty <[email protected]>

* Bump RestSharp in /libraries/Bot.Builder.Community.Adapters.Zoom (#445)

Bumps [RestSharp](https://github.com/restsharp/RestSharp) from 106.10.2-alpha.0.8 to 106.12.0.
- [Release notes](https://github.com/restsharp/RestSharp/releases)
- [Changelog](https://github.com/restsharp/RestSharp/blob/dev/releasenotes.md)
- [Commits](https://github.com/restsharp/RestSharp/commits/106.12)

---
updated-dependencies:
- dependency-name: RestSharp
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gary Pretty <[email protected]>

* Added custom Bot composer dialog Inputs (#457)

* Added custom inputs

* Added custom dialog inputs

* Added custom dialog inputs

Co-authored-by: Gary Pretty <[email protected]>

* Move Facebook, Slack, Twilio, Webex adapters (#461)

* Copy Facebook Adapter

* Delete schema files

* Rename project file.

* -Change namespace
-Remove unused usings
-Remove Microsoft copyright notice

* Add README, project file, update solution

* Add Slack, Twilio, Webex initial copy from MS repo

* Slack - update namespace, remove MS copyright notice, remove ununsed usings

* Twilio - update namespaces, remove MS copyright

* Webex - update namespace, remove copyright

* Remove schemas, icons

* Add fully qualified name to Schema

* Add Facebook, Slack, Twilio, Webex tests from MS repo

* Update adapters tests

* Update READMEs

* Remove old project file

* Remove old project files.

* MessageBird adapter for BotComposer (#460)

* MessageBird adapter for BotComposer

* MessageBird adapter for BotComposer

* MessageBird adapter for BotComposer

* MessageBird adapter for BotComposer

* Update BotBuilderCommunity.MessageBirdAdapter.schema

Co-authored-by: Gary Pretty <[email protected]>

* Google adapter fix for Access Token (#463)

Co-authored-by: Gary Pretty <[email protected]>

* MessageBird API New Request Verification Method and Breaking Changes (#467)

* #466

* switch statement added, if/else blokcs are removed.

* added caption support for MediaContent's like image, video, audio, file

* fixed some unnecessary indentations

* Changed sample , image caption and added Sample project to the solution file

* fix content type for samples

* added sample code to readme file

* more fixing readme file

* updating composer component to reflect the breaking changes of the adapter, NuGet tags and description

* reverting a tag for NuGet

* Move Samples for Facebook, Slack, Twilio, Webex adapters (#472)

* Copy Facebook Adapter

* Delete schema files

* Rename project file.

* -Change namespace
-Remove unused usings
-Remove Microsoft copyright notice

* Add README, project file, update solution

* Add Slack, Twilio, Webex initial copy from MS repo

* Slack - update namespace, remove MS copyright notice, remove ununsed usings

* Twilio - update namespaces, remove MS copyright

* Webex - update namespace, remove copyright

* Remove schemas, icons

* Add fully qualified name to Schema

* Add Facebook, Slack, Twilio, Webex tests from MS repo

* Update adapters tests

* Update READMEs

* Remove old project file

* Remove old project files.

* Add Facebook, Twilio, Slack, Webex adapter samples.

* Update namespaces, remove copyright notice, update adapter package references, update READMEs.

* Update namespaces.

* Update READMEs.

* Update test projects target framework to netcoreapp3.1.

* Bug fix for mapping of item in reaction_event (#478)

* Bug fix for mapping of item in reaction_event

* restoring message body

* minor fixe

* fixed spacing

* fixed spacing

Co-authored-by: Anshul Sharma <[email protected]>

* Changing encoding from ASCII to UTF8 to support extended charset (#480)

* change split character (#477)

* Webex Adapter: Adding support for Markdown and set default text format to Markdown instead of plain text (#482)

* adding reference to Bot.Builder.Community.Adapters.Share

* handling format and passing MessageTextType to CreateMessageAsync and CreateMessageWithAttachmentsAsync

* Adding support for markdown and additional plain text

* Setting default text format to markdown

* Add activity to google event for GoogleBusinessMessagingRequestMapper (#483)

* Add activity to google event mapping

* update display name

Co-authored-by: Eric Dahlvang <[email protected]>
Co-authored-by: Vinoth Rajendran <[email protected]>
Co-authored-by: Arafat Tehsin <[email protected]>
Co-authored-by: Ricardo Zamudio <[email protected]>
Co-authored-by: Kyle Delaney <[email protected]>
Co-authored-by: Kyle Delaney <[email protected]>
Co-authored-by: Amit-singh96 <[email protected]>
Co-authored-by: newlogics <[email protected]>
Co-authored-by: Palanikumar Ravichandran <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Monica Rivera <[email protected]>
Co-authored-by: lauren-mills <[email protected]>
Co-authored-by: ahmetkocadogan <[email protected]>
Co-authored-by: Anshul21 <[email protected]>
Co-authored-by: Anshul Sharma <[email protected]>
Co-authored-by: Bastian Thiede <[email protected]>
Co-authored-by: Zhipeng Wang <[email protected]>
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.

3 participants