-
-
Save KyMidd/c5ee63d3a47141e0991394c114e2ae40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def format_oauth_card(auth_url): | |
| return { | |
| "type": "message", | |
| "attachments": [ | |
| { | |
| "contentType": "application/vnd.microsoft.card.adaptive", | |
| "content": { | |
| "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | |
| "type": "AdaptiveCard", | |
| "version": "1.5", | |
| "body": [ | |
| { | |
| "type": "TextBlock", | |
| "text": "🔐 Sign in to authorize this Bot", | |
| "weight": "Bolder", | |
| "size": "Medium" | |
| }, | |
| { | |
| "type": "TextBlock", | |
| "text": "To continue, please sign in with your Microsoft account.", | |
| "wrap": True | |
| } | |
| ], | |
| "actions": [ | |
| { | |
| "type": "Action.OpenUrl", | |
| "title": "Sign in with Microsoft", | |
| "url": auth_url | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment