question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any ways to Displays an Authenticated images in AdaptiveCards ?

See original GitHub issue

Platform

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:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vmancommented, Oct 2, 2019

@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?

0reactions
matthidingercommented, Nov 24, 2020

Dupe of #4763

Read more comments on GitHub >

github_iconTop Results From Across the Web

Any ways to Displays an Authenticated images in ...
I have BOT web app built using bot builder v3 sdk. I am planning to use adaptive cards to display users profile images...
Read more >
Image
Image. Displays an image. Acceptable formats are PNG, JPEG, and GIF ... style, ImageStyle, No, Controls how this Image is displayed.
Read more >
Including a user photo in an Adaptive Card
I have tried every method in the post below and none of them work, some of them worked just a few weeks ago...
Read more >
node.js - teams adaptive cards with jpg image
I send adaptive card to teams. When I use png image it works fine, when I use jpg the image is not displayed...
Read more >
Adaptive Card layout and design
A way of displaying a collection of name/value pairs. ImageSet. A way of displaying multiple images at once in a gallery format. Sample...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found