microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
next/oauth-card-null-ref-bug

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

core/samples/PABot/not-working-sso-card.json

42lines · modecode

1{
2 "type": "message",
3 "serviceUrl": "https://smba.trafficmanager.net/amer/3f3d1cea-7a18-41af-872b-cfbbd5140984/",
4 "recipient": {
5 "id": "29:1MZX3EUlmSv_K_mgfehI7Xzhh4RXNf1hKlRAc7UEp_JhQOVOTXjNhky8-Xqly0SmFoVZ4Zar90hGk1wOMbxjrWA",
6 "name": "kavinsingh",
7 "aadObjectId": "a97f2770-b9c7-4371-85d7-49b0fddfbebc"
8 },
9 "conversation": {
10 "id": "a:14qv34G6WBRz7_5tPu2QNURrH0jKG1PK8Nqmu5PIoq_Yjgyyiyb4FsdxNyQjgc-d2o7gui_ZbmvSG0tupyyKL8Pc4tXqyq5RP_81ZegRjqij8TAv0ZYwldSrsEokunLZD",
11 "conversationType": "personal",
12 "tenantId": "3f3d1cea-7a18-41af-872b-cfbbd5140984"
13 },
14 "entities": [],
15 "attachments": [
16 {
17 "contentType": "application/vnd.microsoft.card.oauth",
18 "content": {
19 "text": "Please sign in to continue",
20 "connectionName": "graph-sso",
21 "tokenExchangeResource": {
22 "id": "f6cef222-1cae-4c72-93aa-d17004ff0784",
23 "uri": "api://botid-0e95584e-c47b-4243-9073-7c9bf890e04e/",
24 "providerId": "30dd229c-58e3-4a48-bdfd-91ec48eb906c"
25 },
26 "tokenPostResource": {
27 "sasUrl": "https://token.botframework.com/api/sas/postToken?expiry=1775669306\u0026id=key1\u0026state=2bf096c0fe794e18a2c7a7ce9564ef28\u0026hmac=Pxp%2fJqibGZLjXkrqcF%2bIaF3DQ35wIZ0xTB7GYdzHkqc%3d"
28 },
29 "buttons": [
30 {
31 "type": "signin",
32 "title": "Sign in",
33 "text": "Please sign in to continue",
34 "value": "https://token.botframework.com/api/oauth/signin?signin=2bf096c0fe794e18a2c7a7ce9564ef28"
35 }
36 ]
37 }
38 }
39 ],
40 "attachmentLayout": "list",
41 "inputHint": "acceptingInput"
42}
43