You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the Emulator CLI with the same ID and password
Run Web Chat, pointing to the Emulator Core
Send "hi"
Expected
It should works, the bot should response
Actual
When Emulator Core verify the signature from POST /directline/conversations/…/activities, the Emulator Core jsonwebtoken think it is wrong and return 401 back to the bot.
The text was updated successfully, but these errors were encountered:
In the original code, base64url.toBase64(key.n) is just translating Base64Url into Base64. It is not encoding, just turning +/ into -_, and changing the padding =.
In @justinwilaby code, Buffer.from(key.n).toString('base64') is encoding a Base64 into an extra Base64.
This commit broke it, e915ec1#diff-c02a923b1d3cf43295b9353b9c20e2fe.
Repro
Expected
It should works, the bot should response
Actual
When Emulator Core verify the signature from POST /directline/conversations/…/activities, the Emulator Core
jsonwebtoken
think it is wrong and return 401 back to the bot.The text was updated successfully, but these errors were encountered: