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
16d449ab
Commit
16d449ab
authored
Jul 09, 2023
by
Oleksandr Barabash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mars-auth fixed
parent
6f9fb07e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
en.yml
assets/strings/en.yml
+1
-1
messaging_extension_action_preview_bot.py
bots/messaging_extension_action_preview_bot.py
+2
-3
No files found.
assets/strings/en.yml
View file @
16d449ab
...
@@ -20,7 +20,7 @@ en:
...
@@ -20,7 +20,7 @@ en:
cmd_portal
:
"
portal"
cmd_portal
:
"
portal"
cmd_mars_
service
:
"
mars-auth"
cmd_mars_
auth
:
"
mars-auth"
portal_text
:
"
Open
secured
portal"
portal_text
:
"
Open
secured
portal"
...
...
bots/messaging_extension_action_preview_bot.py
View file @
16d449ab
...
@@ -385,9 +385,9 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
...
@@ -385,9 +385,9 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
cmd_help
=
i18n
.
t
(
"cmd_help"
)
cmd_help
=
i18n
.
t
(
"cmd_help"
)
cmd_portal
=
i18n
.
t
(
"cmd_portal"
)
cmd_portal
=
i18n
.
t
(
"cmd_portal"
)
cmd_sharepoint_acc
=
i18n
.
t
(
"cmd_sharepoint_acc"
)
cmd_sharepoint_acc
=
i18n
.
t
(
"cmd_sharepoint_acc"
)
cmd_mars_
service
=
i18n
.
t
(
"cmd_mars_service
"
)
cmd_mars_
auth
=
i18n
.
t
(
"cmd_mars_auth
"
)
if
message_lower
==
cmd_mars_
service
.
lower
():
if
message_lower
==
cmd_mars_
auth
.
lower
():
header
=
i18n
.
t
(
"text_service_acc_auth"
)
header
=
i18n
.
t
(
"text_service_acc_auth"
)
title
=
i18n
.
t
(
"text_authorize"
)
title
=
i18n
.
t
(
"text_authorize"
)
url
=
f
"https://{AppConfig.MARS_FQDN}/service-auth"
url
=
f
"https://{AppConfig.MARS_FQDN}/service-auth"
...
@@ -401,7 +401,6 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
...
@@ -401,7 +401,6 @@ class TeamsMessagingExtensionsActionPreviewBot(TeamsActivityHandler):
)
)
return
return
if
message_lower
==
cmd_help
.
lower
():
if
message_lower
==
cmd_help
.
lower
():
tenant_id
=
turn_context
.
activity
.
conversation
.
tenant_id
tenant_id
=
turn_context
.
activity
.
conversation
.
tenant_id
conversation_id
=
turn_context
.
activity
.
conversation
.
id
conversation_id
=
turn_context
.
activity
.
conversation
.
id
...
...
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