Commit 4267a5d7 by Oleksandr Barabash

removed redundant permissions, api url fixed

parent e2be8dda
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from .messaging_extension_action_preview_bot import (
TeamsMessagingExtensionsActionPreviewBot,
)
__all__ = ["TeamsMessagingExtensionsActionPreviewBot"]
...@@ -55,26 +55,10 @@ manifest = { ...@@ -55,26 +55,10 @@ manifest = {
"orgWide": [], "orgWide": [],
"resourceSpecific": [ "resourceSpecific": [
{ {
"name": "Channel.Create.Group",
"type": "Application"
},
{
"name": "Channel.Delete.Group",
"type": "Application"
},
{
"name": "ChannelMeeting.ReadBasic.Group", "name": "ChannelMeeting.ReadBasic.Group",
"type": "Application" "type": "Application"
}, },
{ {
"name": "ChannelMeetingArtifact.Read.Group",
"type": "Application"
},
{
"name": "ChannelMeetingParticipant.Read.Group",
"type": "Application"
},
{
"name": "ChannelMessage.Read.Group", "name": "ChannelMessage.Read.Group",
"type": "Application" "type": "Application"
}, },
...@@ -103,62 +87,6 @@ manifest = { ...@@ -103,62 +87,6 @@ manifest = {
"type": "Application" "type": "Application"
}, },
{ {
"name": "TeamsAppInstallation.Read.Group",
"type": "Application"
},
{
"name": "TeamsActivity.Send.Group",
"type": "Application"
},
{
"name": "TeamSettings.ReadWrite.Group",
"type": "Application"
},
{
"name": "TeamsTab.Create.Group",
"type": "Application"
},
{
"name": "TeamsTab.Delete.Group",
"type": "Application"
},
{
"name": "TeamsTab.Read.Group",
"type": "Application"
},
{
"name": "TeamsTab.ReadWrite.Group",
"type": "Application"
},
{
"name": "ChannelMeeting.ReadBasic.Group",
"type": "Delegated"
},
{
"name": "ChannelMeetingParticipant.Read.Group",
"type": "Delegated"
},
{
"name": "InAppPurchase.Allow.Group",
"type": "Delegated"
},
{
"name": "Calls.AccessMedia.Chat",
"type": "Application"
},
{
"name": "Calls.JoinGroupCalls.Chat",
"type": "Application"
},
{
"name": "ChannelMeetingNotification.Send.Group",
"type": "Application"
},
{
"name": "Chat.Manage.Chat",
"type": "Application"
},
{
"name": "ChatMember.Read.Chat", "name": "ChatMember.Read.Chat",
"type": "Application" "type": "Application"
}, },
...@@ -167,96 +95,8 @@ manifest = { ...@@ -167,96 +95,8 @@ manifest = {
"type": "Application" "type": "Application"
}, },
{ {
"name": "ChatMessageReadReceipt.Read.Chat",
"type": "Application"
},
{
"name": "ChatSettings.Read.Chat",
"type": "Application"
},
{
"name": "ChatSettings.ReadWrite.Chat",
"type": "Application"
},
{
"name": "OnlineMeeting.ReadBasic.Chat",
"type": "Application"
},
{
"name": "OnlineMeetingArtifact.Read.Chat",
"type": "Application"
},
{
"name": "OnlineMeetingNotification.Send.Chat",
"type": "Application"
},
{
"name": "TeamsAppInstallation.Read.Chat", "name": "TeamsAppInstallation.Read.Chat",
"type": "Application" "type": "Application"
},
{
"name": "TeamsActivity.Send.Chat",
"type": "Application"
},
{
"name": "TeamsTab.Create.Chat",
"type": "Application"
},
{
"name": "TeamsTab.Delete.Chat",
"type": "Application"
},
{
"name": "TeamsTab.Read.Chat",
"type": "Application"
},
{
"name": "TeamsTab.ReadWrite.Chat",
"type": "Application"
},
{
"name": "OnlineMeetingParticipant.Read.Chat",
"type": "Application"
},
{
"name": "ChannelMeetingIncomingAudio.Detect.Group",
"type": "Delegated"
},
{
"name": "InAppPurchase.Allow.Chat",
"type": "Delegated"
},
{
"name": "LiveShareSession.ReadWrite.Chat",
"type": "Delegated"
},
{
"name": "LiveShareSession.ReadWrite.Group",
"type": "Delegated"
},
{
"name": "OnlineMeeting.ReadBasic.Chat",
"type": "Delegated"
},
{
"name": "OnlineMeetingIncomingAudio.Detect.Chat",
"type": "Delegated"
},
{
"name": "OnlineMeetingParticipant.Read.Chat",
"type": "Delegated"
},
{
"name": "OnlineMeetingParticipant.ToggleIncomingAudio.Chat",
"type": "Delegated"
},
{
"name": "CameraStream.Read.User",
"type": "Delegated"
},
{
"name": "InAppPurchase.Allow.User",
"type": "Delegated"
} }
] ]
} }
...@@ -310,8 +150,9 @@ class TeamsAppGenerator: ...@@ -310,8 +150,9 @@ class TeamsAppGenerator:
supportsFiles=False) supportsFiles=False)
manifest.update(dict(bots=[bot, ])) manifest.update(dict(bots=[bot, ]))
# WebAppInfo # WebAppInfo
default_domain = urlparse(TaskModuleConfig.URL).hostname
web_app_info = dict(id=AppConfig.CLIENT_ID, web_app_info = dict(id=AppConfig.CLIENT_ID,
resource=f"api://{TaskModuleConfig.MARS}/" resource=f"api://{default_domain}/"
f"botid-{AppConfig.CLIENT_ID}") f"botid-{AppConfig.CLIENT_ID}")
manifest.update(dict(webApplicationInfo=web_app_info)) manifest.update(dict(webApplicationInfo=web_app_info))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment