Search Messaging Extension / Images with OAuth authentication / SVG support / DATE/TIME-formatting

%3CLINGO-SUB%20id%3D%22lingo-sub-1119678%22%20slang%3D%22en-US%22%3ESearch%20Messaging%20Extension%20%2F%20Images%20with%20OAuth%20authentication%20%2F%20SVG%20support%20%2F%20DATE%2FTIME-formatting%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1119678%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20implementing%20a%20Teams%20App%20with%20a%20search%20messaging%20extension%20(manifest%3A%20composeExtensions%2Fcommands%2Fid%20%22search%22)%20which%20outputs%20an%20attachment%20list%20via%26nbsp%3B%3CSPAN%3Ebuilder%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3EThumbnailCard%2Fbuilder.CardImage%2Fbuilder.cardAction%2F...%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EI%20am%20encountering%20the%20following%20problems%3A%3C%2FSPAN%3E%3C%2FDIV%3E%3CUL%3E%3CLI%3E%3CSPAN%3EThe%20image%20URLs%20seem%20to%20be%20unauthenticated%20and%20so%20far%20I%20could%20not%20find%20any%20way%20to%20access%20the%20address%20object%20to%20obtain%20the%20session%20and%20access%20e.g.%20OAuth%20access%20tokens%20assigned%20with%20the%20current%20user%2Fsession.%20There%20are%20no%20headers%20sent%20which%20could%20be%20used%20for%20that.%20As%20the%20images%20contain%20sensitive%20data%2C%20only%20users%20authenticated%20against%20our%20service%20are%20able%20to%20request%20them%20via%20the%20public%20service.%3CBR%20%2F%3EI%20can%20use%20data%20URIs%20as%20a%20workaround%2C%20but%20they%20cannot%20be%20updated.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ESVG%20support%20(content-type%3A%26nbsp%3Bimage%2Fsvg%2Bxml)%20for%20images%20in%20the%20attachment%20list%2C%20to%20be%20able%20to%20provide%20scale%20independent%20icons.%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3ESupport%20for%20%22%7B%7BDATE%7D%7D%22%20and%20%22%7B%7BTIME%7D%7D%22%20formatting%20in%20the%20text%20attribute%20is%20missing%20(as%20stated%20in%20the%20docs).%20Is%20there%20any%20way%20to%20correctly%20display%20a%20date%2Ftime%20in%20the%20user's%20time%20zone%20and%20the%20user's%20formatting%20preferences%20there%3F%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EThank%20you%20and%20Regards%2C%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EDominik%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1119678%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Edate%20time%20conversion%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Edevelopment%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EImages%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMessaging%20Extension%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESearch%20Extension%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESVG%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Occasional Contributor

Hello!

 

I am implementing a Teams App with a search messaging extension (manifest: composeExtensions/commands/id "search") which outputs an attachment list via builder.ThumbnailCard/builder.CardImage/builder.cardAction/...

 
I am encountering the following problems:
  • The image URLs seem to be unauthenticated and so far I could not find any way to access the address object to obtain the session and access e.g. OAuth access tokens assigned with the current user/session. There are no headers sent which could be used for that. As the images contain sensitive data, only users authenticated against our service are able to request them via the public service.
    I can use data URIs as a workaround, but they cannot be updated.
  • SVG support (content-type: image/svg+xml) for images in the attachment list, to be able to provide scale independent icons.
  • Support for "{{DATE}}" and "{{TIME}}" formatting in the text attribute is missing (as stated in the docs). Is there any way to correctly display a date/time in the user's time zone and the user's formatting preferences there?
 
Thank you and Regards,
Dominik
0 Replies