Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cake-bot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
cake-bot
Commits
81b6291c
Commit
81b6291c
authored
Sep 28, 2022
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted BotFrameworkAdapterSettings
parent
71537d27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
app.py
app.py
+5
-9
No files found.
app.py
View file @
81b6291c
...
...
@@ -5,23 +5,20 @@ import traceback
from
datetime
import
datetime
from
http
import
HTTPStatus
import
marshmallow_dataclass
from
aiohttp
import
web
from
aiohttp.web
import
Request
,
Response
,
json_response
from
azure.cosmos
import
PartitionKey
from
azure.identity
import
ManagedIdentityCredential
from
botbuilder.core
import
(
BotFrameworkAdapterSettings
,
TurnContext
,
BotFrameworkAdapter
,
)
from
botbuilder.schema
import
Activity
,
ActivityTypes
from
marshmallow
import
ValidationError
,
EXCLUDE
from
marshmallow
import
EXCLUDE
from
bots
import
TeamsMessagingExtensionsActionPreviewBot
from
bots.exceptions
import
ConversationNotFound
,
DataParsingError
from
config
import
AppConfig
,
COSMOS_CLIENT
,
CosmosDBConfig
,
KEY_VAULT_CLIENT
from
entities.json.notification
import
Notification
,
NotificationCosmos
from
config
import
AppConfig
,
COSMOS_CLIENT
,
KEY_VAULT_CLIENT
from
entities.json.notification
import
Notification
from
utils.cosmos_client
import
ItemNotFound
from
utils.json_func
import
json_loads
from
utils.log
import
Log
...
...
@@ -30,9 +27,8 @@ app_config = AppConfig()
# Create adapter.
# See https://aka.ms/about-bot-adapter to learn more about how bots work.
app_credentials
=
ManagedIdentityCredential
(
client_id
=
AppConfig
.
CLIENT_ID
)
app_settings
=
BotFrameworkAdapterSettings
(
AppConfig
.
CLIENT_ID
,
app_credentials
=
app_credentials
)
app_settings
=
BotFrameworkAdapterSettings
(
app_config
.
APP_ID
,
app_config
.
APP_PASSWORD
)
ADAPTER
=
BotFrameworkAdapter
(
app_settings
)
TAG
=
__name__
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment