Any ways to Displays an Authenticated images in AdaptiveCards ?
See original GitHub issuePlatform
What platform is your issue or question related to? (Delete other platforms).
Nodejs
host
Are you an author (like sending something to Outlook), or a host that is rendering your own cards?
Version of SDK
Bot builder v3
Issue
Based on adaptive cards schema document looks like we should use URL property where value should be direct URL to the image Or Data URIs are already supported by the nodejs Adaptive Card renderer.
I have BOT web app built using bot builder v3 sdk. I am planning to use adaptive cards to display users profile images which are stored on our secured server (most likely behind the firewall or azure blog storage ) and these are not available anonymously.
I would like to know if Adaptive Card’s renderer will be able to parse/download authenticated images if they are using same Bot Framework authentication
{
"type": "AdaptiveCard",
"body": [
{
"type": "Image",
"style": "Person",
"url": "",
"size": "Small"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
@matthidinger Is there a solution for this yet? We are storing images in SharePoint and want to show them on Adaptive Cards in Teams. It works fine if the user is logged in to SharePoint but the images don’t load if the user is not signed in.
And also, we can’t use data uri as they are only supported in Adaptive Cards 1.2 and Teams only supports v1.0 as of now.
Any way to handle this scenario?
Dupe of #4763