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
c4696118
Commit
c4696118
authored
Sep 27, 2022
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
app_credentials added
parent
55baea65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
app.py
app.py
+3
-1
No files found.
app.py
View file @
c4696118
...
...
@@ -9,6 +9,7 @@ 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
,
...
...
@@ -29,8 +30,9 @@ 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
(
app_config
.
APP_ID
,
app_c
onfig
.
APP_PASSWORD
)
app_c
redentials
=
app_credentials
)
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