This repository has been archived by the owner on Jun 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
manifest-outlook-token-viewer.xml
204 lines (200 loc) · 9.47 KB
/
manifest-outlook-token-viewer.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE in the project root for license information. -->
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
xsi:type="MailApp">
<Id>baad3e9f-66ec-4f6e-a567-23e467df0502</Id>
<Version>1.0.0.0</Version>
<ProviderName>Outlook Dev Center</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Outlook Token Viewer"/>
<Description DefaultValue="Gets the callback token for the current message or appointment."/>
<HighResolutionIconUrl DefaultValue="https://localhost:44359/add-in/images/hi-res-icon.png"/>
<Hosts>
<Host Name="Mailbox"/>
</Hosts>
<Requirements>
<Sets>
<Set Name="MailBox" MinVersion="1.1"/>
</Sets>
</Requirements>
<FormSettings>
<Form xsi:type="ItemRead">
<DesktopSettings>
<SourceLocation DefaultValue="https://localhost:44359/add-in/TaskPane/TaskPane.html"/>
<RequestedHeight>250</RequestedHeight>
</DesktopSettings>
</Form>
</FormSettings>
<Permissions>ReadWriteMailbox</Permissions>
<Rule xsi:type="RuleCollection" Mode="Or">
<Rule xsi:type="ItemIs" ItemType="Message" FormType="Read"/>
<Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read"/>
</Rule>
<DisableEntityHighlighting>false</DisableEntityHighlighting>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="funcFile"/>
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<OfficeTab id="TabDefault">
<Group id="msgReadCmdGroup">
<Label resid="groupLabel"/>
<Control xsi:type="Button" id="showTokensButton">
<Label resid="taskPaneButtonLabel"/>
<Supertip>
<Title resid="taskPaneButtonTitle"/>
<Description resid="taskPaneButtonDesc"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="icon-16"/>
<bt:Image size="32" resid="icon-32"/>
<bt:Image size="80" resid="icon-80"/>
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="taskPaneUrl"/>
</Action>
</Control>
<Control xsi:type="Button" id="validateIdTokenButton">
<Label resid="validateButtonLabel"/>
<Supertip>
<Title resid="validateButtonTitle"/>
<Description resid="validateButtonDesc"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="icon-16"/>
<bt:Image size="32" resid="icon-32"/>
<bt:Image size="80" resid="icon-80"/>
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>validateIdToken</FunctionName>
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="icon-16" DefaultValue="https://localhost:44359/add-in/images/icon-16.png"/>
<bt:Image id="icon-32" DefaultValue="https://localhost:44359/add-in/images/icon-32.png"/>
<bt:Image id="icon-80" DefaultValue="https://localhost:44359/add-in/images/icon-80.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="funcFile" DefaultValue="https://localhost:44359/add-in/FunctionFile/Functions.html"/>
<bt:Url id="taskPaneUrl" DefaultValue="https://localhost:44359/add-in/TaskPane/TaskPane.html"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="groupLabel" DefaultValue="Token Viewer"/>
<bt:String id="taskPaneButtonLabel" DefaultValue="Get Callback Token"/>
<bt:String id="taskPaneButtonTitle" DefaultValue="Get Callback Token"/>
<bt:String id="validateButtonLabel" DefaultValue="Validate ID Token"/>
<bt:String id="validateButtonTitle" DefaultValue="Validate ID Token"/>
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="taskPaneButtonDesc" DefaultValue="Opens a task pane showing the callback token for the currently selected message or appointment"/>
<bt:String id="validateButtonDesc" DefaultValue="Sends the identity token to a Web API for validation"/>
</bt:LongStrings>
</Resources>
<!-- VersionOverrides for the v1.1 schema -->
<VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides/1.1" xsi:type="VersionOverridesV1_1">
<Hosts>
<Host xsi:type="MailHost">
<DesktopFormFactor>
<FunctionFile resid="funcFile"/>
<ExtensionPoint xsi:type="MessageReadCommandSurface">
<OfficeTab id="TabDefault">
<Group id="msgReadCmdGroup">
<Label resid="groupLabel"/>
<Control xsi:type="Button" id="showTokensButton">
<Label resid="taskPaneButtonLabel"/>
<Supertip>
<Title resid="taskPaneButtonTitle"/>
<Description resid="taskPaneButtonDesc"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="icon-16"/>
<bt:Image size="32" resid="icon-32"/>
<bt:Image size="80" resid="icon-80"/>
</Icon>
<Action xsi:type="ShowTaskpane">
<SourceLocation resid="taskPaneUrl"/>
</Action>
</Control>
<Control xsi:type="Button" id="validateIdTokenButton">
<Label resid="validateButtonLabel"/>
<Supertip>
<Title resid="validateButtonTitle"/>
<Description resid="validateButtonDesc"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="icon-16"/>
<bt:Image size="32" resid="icon-32"/>
<bt:Image size="80" resid="icon-80"/>
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>validateIdToken</FunctionName>
</Action>
</Control>
<Control xsi:type="Button" id="validateSsoTokenButton">
<Label resid="validateSsoButtonLabel"/>
<Supertip>
<Title resid="validateSsoButtonTitle"/>
<Description resid="validateSsoButtonDesc"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="icon-16"/>
<bt:Image size="32" resid="icon-32"/>
<bt:Image size="80" resid="icon-80"/>
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>validateSsoToken</FunctionName>
</Action>
</Control>
</Group>
</OfficeTab>
</ExtensionPoint>
</DesktopFormFactor>
</Host>
</Hosts>
<Resources>
<bt:Images>
<bt:Image id="icon-16" DefaultValue="https://localhost:44359/add-in/images/icon-16.png"/>
<bt:Image id="icon-32" DefaultValue="https://localhost:44359/add-in/images/icon-32.png"/>
<bt:Image id="icon-80" DefaultValue="https://localhost:44359/add-in/images/icon-80.png"/>
</bt:Images>
<bt:Urls>
<bt:Url id="funcFile" DefaultValue="https://localhost:44359/add-in/FunctionFile/Functions.html"/>
<bt:Url id="taskPaneUrl" DefaultValue="https://localhost:44359/add-in/TaskPane/TaskPane.html"/>
</bt:Urls>
<bt:ShortStrings>
<bt:String id="groupLabel" DefaultValue="Token Viewer"/>
<bt:String id="taskPaneButtonLabel" DefaultValue="View Tokens"/>
<bt:String id="taskPaneButtonTitle" DefaultValue="View Tokens"/>
<bt:String id="validateButtonLabel" DefaultValue="Validate ID Token"/>
<bt:String id="validateButtonTitle" DefaultValue="Validate ID Token"/>
<bt:String id="validateSsoButtonLabel" DefaultValue="Validate SSO Token"/>
<bt:String id="validateSsoButtonTitle" DefaultValue="Validate SSO Token"/>
</bt:ShortStrings>
<bt:LongStrings>
<bt:String id="taskPaneButtonDesc" DefaultValue="Opens a task pane showing the callback token for the currently selected message or appointment"/>
<bt:String id="validateButtonDesc" DefaultValue="Sends the identity token to a Web API for validation"/>
<bt:String id="validateSsoButtonDesc" DefaultValue="Sends the SSO token to a Web API for validation"/>
</bt:LongStrings>
</Resources>
<WebApplicationInfo>
<Id>YOUR_APP_ID</Id>
<Resource>api://localhost:44359/YOUR_APP_ID</Resource>
<Scopes>
<Scope>user.read</Scope>
<Scope>files.read.all</Scope>
</Scopes>
</WebApplicationInfo>
</VersionOverrides>
</VersionOverrides>
</OfficeApp>