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
f476b1df
Commit
f476b1df
authored
Aug 17, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ids changed from client_id to app_id
parent
478e4f26
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
teams_app_generator.py
utils/teams_app_generator.py
+4
-4
No files found.
utils/teams_app_generator.py
View file @
f476b1df
...
...
@@ -85,7 +85,7 @@ class TeamsAppGenerator:
""" Generate manifest """
manifest
.
update
(
dict
(
version
=
APP_VERSION
))
# ID
manifest
.
update
(
dict
(
id
=
AppConfig
.
CLIENT
_ID
))
manifest
.
update
(
dict
(
id
=
AppConfig
.
APP
_ID
))
# Package name
manifest
.
update
(
dict
(
packageName
=
"net.azurewebsites.{}"
.
format
(
AppConfig
.
WEB_APP_NAME
)
...
...
@@ -97,7 +97,7 @@ class TeamsAppGenerator:
manifest
.
update
(
dict
(
description
=
details
))
# Bot
bot
=
dict
(
botId
=
AppConfig
.
CLIENT
_ID
,
bot
=
dict
(
botId
=
AppConfig
.
APP
_ID
,
scopes
=
[
"personal"
,
"team"
,
"groupchat"
],
isNotificationOnly
=
False
,
supportsCalling
=
False
,
...
...
@@ -106,9 +106,9 @@ class TeamsAppGenerator:
manifest
.
update
(
dict
(
bots
=
[
bot
,
]))
# WebAppInfo
default_domain
=
urlparse
(
TaskModuleConfig
.
URL
)
.
hostname
web_app_info
=
dict
(
id
=
AppConfig
.
CLIENT
_ID
,
web_app_info
=
dict
(
id
=
AppConfig
.
APP
_ID
,
resource
=
f
"api://{default_domain}/"
f
"botid-{AppConfig.
CLIENT
_ID}"
)
f
"botid-{AppConfig.
APP
_ID}"
)
manifest
.
update
(
dict
(
webApplicationInfo
=
web_app_info
))
# Valid domains
...
...
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