@jbrowse/plugin-authentication 2.4.2 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DropboxOAuthModel/configSchema.d.ts +105 -1
- package/dist/DropboxOAuthModel/configSchema.js +0 -8
- package/dist/DropboxOAuthModel/configSchema.js.map +1 -1
- package/dist/DropboxOAuthModel/model.d.ts +304 -8
- package/dist/DropboxOAuthModel/model.js +26 -35
- package/dist/DropboxOAuthModel/model.js.map +1 -1
- package/dist/DropboxOAuthModel/util.d.ts +1 -0
- package/dist/DropboxOAuthModel/util.js +28 -0
- package/dist/DropboxOAuthModel/util.js.map +1 -0
- package/dist/ExternalTokenModel/ExternalTokenEntryForm.d.ts +2 -2
- package/dist/ExternalTokenModel/ExternalTokenEntryForm.js +10 -11
- package/dist/ExternalTokenModel/ExternalTokenEntryForm.js.map +1 -1
- package/dist/ExternalTokenModel/configSchema.d.ts +36 -1
- package/dist/ExternalTokenModel/model.d.ts +93 -3
- package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.d.ts +15 -0
- package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +20 -0
- package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.js.map +1 -0
- package/dist/GoogleDriveOAuthModel/configSchema.d.ts +105 -1
- package/dist/GoogleDriveOAuthModel/model.d.ts +219 -20
- package/dist/GoogleDriveOAuthModel/model.js +38 -51
- package/dist/GoogleDriveOAuthModel/model.js.map +1 -1
- package/dist/GoogleDriveOAuthModel/util.d.ts +1 -0
- package/dist/GoogleDriveOAuthModel/util.js +17 -0
- package/dist/GoogleDriveOAuthModel/util.js.map +1 -0
- package/dist/HTTPBasicModel/HTTPBasicLoginForm.d.ts +2 -2
- package/dist/HTTPBasicModel/HTTPBasicLoginForm.js +17 -21
- package/dist/HTTPBasicModel/HTTPBasicLoginForm.js.map +1 -1
- package/dist/HTTPBasicModel/configSchema.d.ts +44 -1
- package/dist/HTTPBasicModel/model.d.ts +135 -3
- package/dist/HTTPBasicModel/model.js +24 -9
- package/dist/HTTPBasicModel/model.js.map +1 -1
- package/dist/OAuthModel/configSchema.d.ts +94 -1
- package/dist/OAuthModel/configSchema.js +1 -9
- package/dist/OAuthModel/configSchema.js.map +1 -1
- package/dist/OAuthModel/model.d.ts +263 -8
- package/dist/OAuthModel/model.js +165 -113
- package/dist/OAuthModel/model.js.map +1 -1
- package/dist/OAuthModel/util.d.ts +7 -0
- package/dist/OAuthModel/util.js +60 -0
- package/dist/OAuthModel/util.js.map +1 -0
- package/dist/index.d.ts +954 -105
- package/dist/util.d.ts +6 -0
- package/dist/util.js +23 -0
- package/dist/util.js.map +1 -0
- package/esm/DropboxOAuthModel/configSchema.d.ts +105 -1
- package/esm/DropboxOAuthModel/configSchema.js +0 -8
- package/esm/DropboxOAuthModel/configSchema.js.map +1 -1
- package/esm/DropboxOAuthModel/model.d.ts +304 -8
- package/esm/DropboxOAuthModel/model.js +26 -35
- package/esm/DropboxOAuthModel/model.js.map +1 -1
- package/esm/DropboxOAuthModel/util.d.ts +1 -0
- package/esm/DropboxOAuthModel/util.js +24 -0
- package/esm/DropboxOAuthModel/util.js.map +1 -0
- package/esm/ExternalTokenModel/ExternalTokenEntryForm.d.ts +2 -2
- package/esm/ExternalTokenModel/ExternalTokenEntryForm.js +10 -11
- package/esm/ExternalTokenModel/ExternalTokenEntryForm.js.map +1 -1
- package/esm/ExternalTokenModel/configSchema.d.ts +36 -1
- package/esm/ExternalTokenModel/model.d.ts +93 -3
- package/esm/GoogleDriveOAuthModel/GoogleDriveFilehandle.d.ts +15 -0
- package/esm/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +16 -0
- package/esm/GoogleDriveOAuthModel/GoogleDriveFilehandle.js.map +1 -0
- package/esm/GoogleDriveOAuthModel/configSchema.d.ts +105 -1
- package/esm/GoogleDriveOAuthModel/model.d.ts +219 -20
- package/esm/GoogleDriveOAuthModel/model.js +37 -49
- package/esm/GoogleDriveOAuthModel/model.js.map +1 -1
- package/esm/GoogleDriveOAuthModel/util.d.ts +1 -0
- package/esm/GoogleDriveOAuthModel/util.js +13 -0
- package/esm/GoogleDriveOAuthModel/util.js.map +1 -0
- package/esm/HTTPBasicModel/HTTPBasicLoginForm.d.ts +2 -2
- package/esm/HTTPBasicModel/HTTPBasicLoginForm.js +18 -22
- package/esm/HTTPBasicModel/HTTPBasicLoginForm.js.map +1 -1
- package/esm/HTTPBasicModel/configSchema.d.ts +44 -1
- package/esm/HTTPBasicModel/model.d.ts +135 -3
- package/esm/HTTPBasicModel/model.js +24 -9
- package/esm/HTTPBasicModel/model.js.map +1 -1
- package/esm/OAuthModel/configSchema.d.ts +94 -1
- package/esm/OAuthModel/configSchema.js +1 -9
- package/esm/OAuthModel/configSchema.js.map +1 -1
- package/esm/OAuthModel/model.d.ts +263 -8
- package/esm/OAuthModel/model.js +164 -86
- package/esm/OAuthModel/model.js.map +1 -1
- package/esm/OAuthModel/util.d.ts +7 -0
- package/esm/OAuthModel/util.js +30 -0
- package/esm/OAuthModel/util.js.map +1 -0
- package/esm/index.d.ts +954 -105
- package/esm/util.d.ts +6 -0
- package/esm/util.js +18 -0
- package/esm/util.js.map +1 -0
- package/package.json +3 -4
- package/src/DropboxOAuthModel/configSchema.ts +0 -8
- package/src/DropboxOAuthModel/model.tsx +35 -54
- package/src/DropboxOAuthModel/util.ts +36 -0
- package/src/ExternalTokenModel/ExternalTokenEntryForm.tsx +39 -41
- package/src/GoogleDriveOAuthModel/GoogleDriveFilehandle.ts +38 -0
- package/src/GoogleDriveOAuthModel/model.tsx +54 -104
- package/src/GoogleDriveOAuthModel/util.ts +29 -0
- package/src/HTTPBasicModel/HTTPBasicLoginForm.tsx +53 -56
- package/src/HTTPBasicModel/model.tsx +26 -11
- package/src/OAuthModel/configSchema.ts +2 -9
- package/src/OAuthModel/model.tsx +190 -108
- package/src/OAuthModel/util.ts +33 -0
- package/src/util.ts +25 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,245 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Plugin from '@jbrowse/core/Plugin';
|
|
3
3
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
4
|
+
import { modelFactory as GoogleDriveOAuthInternetAccountModelFactory } from './GoogleDriveOAuthModel';
|
|
4
5
|
export default class AuthenticationPlugin extends Plugin {
|
|
5
6
|
name: string;
|
|
6
7
|
exports: {
|
|
7
|
-
OAuthConfigSchema: import("@jbrowse/core/configuration").
|
|
8
|
-
|
|
8
|
+
OAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
9
|
+
tokenType: {
|
|
10
|
+
description: string;
|
|
11
|
+
type: string;
|
|
12
|
+
defaultValue: string;
|
|
13
|
+
};
|
|
14
|
+
authEndpoint: {
|
|
15
|
+
description: string;
|
|
16
|
+
type: string;
|
|
17
|
+
defaultValue: string;
|
|
18
|
+
};
|
|
19
|
+
tokenEndpoint: {
|
|
20
|
+
description: string;
|
|
21
|
+
type: string;
|
|
22
|
+
defaultValue: string;
|
|
23
|
+
};
|
|
24
|
+
needsPKCE: {
|
|
25
|
+
description: string;
|
|
26
|
+
type: string;
|
|
27
|
+
defaultValue: boolean;
|
|
28
|
+
};
|
|
29
|
+
clientId: {
|
|
30
|
+
description: string;
|
|
31
|
+
type: string;
|
|
32
|
+
defaultValue: string;
|
|
33
|
+
};
|
|
34
|
+
scopes: {
|
|
35
|
+
description: string;
|
|
36
|
+
type: string;
|
|
37
|
+
defaultValue: string;
|
|
38
|
+
};
|
|
39
|
+
state: {
|
|
40
|
+
description: string;
|
|
41
|
+
type: string;
|
|
42
|
+
defaultValue: string;
|
|
43
|
+
};
|
|
44
|
+
responseType: {
|
|
45
|
+
description: string;
|
|
46
|
+
type: string;
|
|
47
|
+
defaultValue: string;
|
|
48
|
+
};
|
|
49
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
50
|
+
name: {
|
|
51
|
+
description: string;
|
|
52
|
+
type: string;
|
|
53
|
+
defaultValue: string;
|
|
54
|
+
};
|
|
55
|
+
description: {
|
|
56
|
+
description: string;
|
|
57
|
+
type: string;
|
|
58
|
+
defaultValue: string;
|
|
59
|
+
};
|
|
60
|
+
authHeader: {
|
|
61
|
+
description: string;
|
|
62
|
+
type: string;
|
|
63
|
+
defaultValue: string;
|
|
64
|
+
};
|
|
65
|
+
tokenType: {
|
|
66
|
+
description: string;
|
|
67
|
+
type: string;
|
|
68
|
+
defaultValue: string;
|
|
69
|
+
};
|
|
70
|
+
domains: {
|
|
71
|
+
description: string;
|
|
72
|
+
type: string;
|
|
73
|
+
defaultValue: never[];
|
|
74
|
+
};
|
|
75
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
76
|
+
OAuthInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
77
|
+
tokenType: {
|
|
78
|
+
description: string;
|
|
79
|
+
type: string;
|
|
80
|
+
defaultValue: string;
|
|
81
|
+
};
|
|
82
|
+
authEndpoint: {
|
|
83
|
+
description: string;
|
|
84
|
+
type: string;
|
|
85
|
+
defaultValue: string;
|
|
86
|
+
};
|
|
87
|
+
tokenEndpoint: {
|
|
88
|
+
description: string;
|
|
89
|
+
type: string;
|
|
90
|
+
defaultValue: string;
|
|
91
|
+
};
|
|
92
|
+
needsPKCE: {
|
|
93
|
+
description: string;
|
|
94
|
+
type: string;
|
|
95
|
+
defaultValue: boolean;
|
|
96
|
+
};
|
|
97
|
+
clientId: {
|
|
98
|
+
description: string;
|
|
99
|
+
type: string;
|
|
100
|
+
defaultValue: string;
|
|
101
|
+
};
|
|
102
|
+
scopes: {
|
|
103
|
+
description: string;
|
|
104
|
+
type: string;
|
|
105
|
+
defaultValue: string;
|
|
106
|
+
};
|
|
107
|
+
state: {
|
|
108
|
+
description: string;
|
|
109
|
+
type: string;
|
|
110
|
+
defaultValue: string;
|
|
111
|
+
};
|
|
112
|
+
responseType: {
|
|
113
|
+
description: string;
|
|
114
|
+
type: string;
|
|
115
|
+
defaultValue: string;
|
|
116
|
+
};
|
|
117
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
118
|
+
name: {
|
|
119
|
+
description: string;
|
|
120
|
+
type: string;
|
|
121
|
+
defaultValue: string;
|
|
122
|
+
};
|
|
123
|
+
description: {
|
|
124
|
+
description: string;
|
|
125
|
+
type: string;
|
|
126
|
+
defaultValue: string;
|
|
127
|
+
};
|
|
128
|
+
authHeader: {
|
|
129
|
+
description: string;
|
|
130
|
+
type: string;
|
|
131
|
+
defaultValue: string;
|
|
132
|
+
};
|
|
133
|
+
tokenType: {
|
|
134
|
+
description: string;
|
|
135
|
+
type: string;
|
|
136
|
+
defaultValue: string;
|
|
137
|
+
};
|
|
138
|
+
domains: {
|
|
139
|
+
description: string;
|
|
140
|
+
type: string;
|
|
141
|
+
defaultValue: never[];
|
|
142
|
+
};
|
|
143
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
|
|
9
144
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
10
145
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
146
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
147
|
+
name: {
|
|
148
|
+
description: string;
|
|
149
|
+
type: string;
|
|
150
|
+
defaultValue: string;
|
|
151
|
+
};
|
|
152
|
+
description: {
|
|
153
|
+
description: string;
|
|
154
|
+
type: string;
|
|
155
|
+
defaultValue: string;
|
|
156
|
+
};
|
|
157
|
+
authHeader: {
|
|
158
|
+
description: string;
|
|
159
|
+
type: string;
|
|
160
|
+
defaultValue: string;
|
|
161
|
+
};
|
|
162
|
+
tokenType: {
|
|
163
|
+
description: string;
|
|
164
|
+
type: string;
|
|
165
|
+
defaultValue: string;
|
|
166
|
+
};
|
|
167
|
+
domains: {
|
|
168
|
+
description: string;
|
|
169
|
+
type: string;
|
|
170
|
+
defaultValue: never[];
|
|
171
|
+
};
|
|
172
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
11
173
|
} & {
|
|
12
174
|
type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
|
|
13
|
-
configuration: import("
|
|
175
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
176
|
+
tokenType: {
|
|
177
|
+
description: string;
|
|
178
|
+
type: string;
|
|
179
|
+
defaultValue: string;
|
|
180
|
+
};
|
|
181
|
+
authEndpoint: {
|
|
182
|
+
description: string;
|
|
183
|
+
type: string;
|
|
184
|
+
defaultValue: string;
|
|
185
|
+
};
|
|
186
|
+
tokenEndpoint: {
|
|
187
|
+
description: string;
|
|
188
|
+
type: string;
|
|
189
|
+
defaultValue: string;
|
|
190
|
+
};
|
|
191
|
+
needsPKCE: {
|
|
192
|
+
description: string;
|
|
193
|
+
type: string;
|
|
194
|
+
defaultValue: boolean;
|
|
195
|
+
};
|
|
196
|
+
clientId: {
|
|
197
|
+
description: string;
|
|
198
|
+
type: string;
|
|
199
|
+
defaultValue: string;
|
|
200
|
+
};
|
|
201
|
+
scopes: {
|
|
202
|
+
description: string;
|
|
203
|
+
type: string;
|
|
204
|
+
defaultValue: string;
|
|
205
|
+
};
|
|
206
|
+
state: {
|
|
207
|
+
description: string;
|
|
208
|
+
type: string;
|
|
209
|
+
defaultValue: string;
|
|
210
|
+
};
|
|
211
|
+
responseType: {
|
|
212
|
+
description: string;
|
|
213
|
+
type: string;
|
|
214
|
+
defaultValue: string;
|
|
215
|
+
};
|
|
216
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
217
|
+
name: {
|
|
218
|
+
description: string;
|
|
219
|
+
type: string;
|
|
220
|
+
defaultValue: string;
|
|
221
|
+
};
|
|
222
|
+
description: {
|
|
223
|
+
description: string;
|
|
224
|
+
type: string;
|
|
225
|
+
defaultValue: string;
|
|
226
|
+
};
|
|
227
|
+
authHeader: {
|
|
228
|
+
description: string;
|
|
229
|
+
type: string;
|
|
230
|
+
defaultValue: string;
|
|
231
|
+
};
|
|
232
|
+
tokenType: {
|
|
233
|
+
description: string;
|
|
234
|
+
type: string;
|
|
235
|
+
defaultValue: string;
|
|
236
|
+
};
|
|
237
|
+
domains: {
|
|
238
|
+
description: string;
|
|
239
|
+
type: string;
|
|
240
|
+
defaultValue: never[];
|
|
241
|
+
};
|
|
242
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
14
243
|
}, {
|
|
15
244
|
readonly name: string;
|
|
16
245
|
readonly description: string;
|
|
@@ -69,7 +298,6 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
69
298
|
readonly scopes: string;
|
|
70
299
|
state(): string | undefined;
|
|
71
300
|
readonly responseType: "code" | "token";
|
|
72
|
-
readonly hasRefreshToken: boolean;
|
|
73
301
|
readonly refreshTokenKey: string;
|
|
74
302
|
} & {
|
|
75
303
|
storeRefreshToken(refreshToken: string): void;
|
|
@@ -84,14 +312,139 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
84
312
|
useEndpointForAuthorization(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
85
313
|
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
86
314
|
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
315
|
+
} & {
|
|
316
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
87
317
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
88
|
-
ExternalTokenConfigSchema: import("@jbrowse/core/configuration").
|
|
89
|
-
|
|
318
|
+
ExternalTokenConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
319
|
+
validateWithHEAD: {
|
|
320
|
+
description: string;
|
|
321
|
+
type: string;
|
|
322
|
+
defaultValue: boolean;
|
|
323
|
+
};
|
|
324
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
325
|
+
name: {
|
|
326
|
+
description: string;
|
|
327
|
+
type: string;
|
|
328
|
+
defaultValue: string;
|
|
329
|
+
};
|
|
330
|
+
description: {
|
|
331
|
+
description: string;
|
|
332
|
+
type: string;
|
|
333
|
+
defaultValue: string;
|
|
334
|
+
};
|
|
335
|
+
authHeader: {
|
|
336
|
+
description: string;
|
|
337
|
+
type: string;
|
|
338
|
+
defaultValue: string;
|
|
339
|
+
};
|
|
340
|
+
tokenType: {
|
|
341
|
+
description: string;
|
|
342
|
+
type: string;
|
|
343
|
+
defaultValue: string;
|
|
344
|
+
};
|
|
345
|
+
domains: {
|
|
346
|
+
description: string;
|
|
347
|
+
type: string;
|
|
348
|
+
defaultValue: never[];
|
|
349
|
+
};
|
|
350
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
351
|
+
ExternalTokenInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
352
|
+
validateWithHEAD: {
|
|
353
|
+
description: string;
|
|
354
|
+
type: string;
|
|
355
|
+
defaultValue: boolean;
|
|
356
|
+
};
|
|
357
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
358
|
+
name: {
|
|
359
|
+
description: string;
|
|
360
|
+
type: string;
|
|
361
|
+
defaultValue: string;
|
|
362
|
+
};
|
|
363
|
+
description: {
|
|
364
|
+
description: string;
|
|
365
|
+
type: string;
|
|
366
|
+
defaultValue: string;
|
|
367
|
+
};
|
|
368
|
+
authHeader: {
|
|
369
|
+
description: string;
|
|
370
|
+
type: string;
|
|
371
|
+
defaultValue: string;
|
|
372
|
+
};
|
|
373
|
+
tokenType: {
|
|
374
|
+
description: string;
|
|
375
|
+
type: string;
|
|
376
|
+
defaultValue: string;
|
|
377
|
+
};
|
|
378
|
+
domains: {
|
|
379
|
+
description: string;
|
|
380
|
+
type: string;
|
|
381
|
+
defaultValue: never[];
|
|
382
|
+
};
|
|
383
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
|
|
90
384
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
91
385
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
386
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
387
|
+
name: {
|
|
388
|
+
description: string;
|
|
389
|
+
type: string;
|
|
390
|
+
defaultValue: string;
|
|
391
|
+
};
|
|
392
|
+
description: {
|
|
393
|
+
description: string;
|
|
394
|
+
type: string;
|
|
395
|
+
defaultValue: string;
|
|
396
|
+
};
|
|
397
|
+
authHeader: {
|
|
398
|
+
description: string;
|
|
399
|
+
type: string;
|
|
400
|
+
defaultValue: string;
|
|
401
|
+
};
|
|
402
|
+
tokenType: {
|
|
403
|
+
description: string;
|
|
404
|
+
type: string;
|
|
405
|
+
defaultValue: string;
|
|
406
|
+
};
|
|
407
|
+
domains: {
|
|
408
|
+
description: string;
|
|
409
|
+
type: string;
|
|
410
|
+
defaultValue: never[];
|
|
411
|
+
};
|
|
412
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
92
413
|
} & {
|
|
93
414
|
type: import("mobx-state-tree").ISimpleType<"ExternalTokenInternetAccount">;
|
|
94
|
-
configuration: import("
|
|
415
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
416
|
+
validateWithHEAD: {
|
|
417
|
+
description: string;
|
|
418
|
+
type: string;
|
|
419
|
+
defaultValue: boolean;
|
|
420
|
+
};
|
|
421
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
422
|
+
name: {
|
|
423
|
+
description: string;
|
|
424
|
+
type: string;
|
|
425
|
+
defaultValue: string;
|
|
426
|
+
};
|
|
427
|
+
description: {
|
|
428
|
+
description: string;
|
|
429
|
+
type: string;
|
|
430
|
+
defaultValue: string;
|
|
431
|
+
};
|
|
432
|
+
authHeader: {
|
|
433
|
+
description: string;
|
|
434
|
+
type: string;
|
|
435
|
+
defaultValue: string;
|
|
436
|
+
};
|
|
437
|
+
tokenType: {
|
|
438
|
+
description: string;
|
|
439
|
+
type: string;
|
|
440
|
+
defaultValue: string;
|
|
441
|
+
};
|
|
442
|
+
domains: {
|
|
443
|
+
description: string;
|
|
444
|
+
type: string;
|
|
445
|
+
defaultValue: never[];
|
|
446
|
+
};
|
|
447
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
95
448
|
}, {
|
|
96
449
|
readonly name: string;
|
|
97
450
|
readonly description: string;
|
|
@@ -146,13 +499,151 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
146
499
|
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
|
|
147
500
|
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
148
501
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
149
|
-
HTTPBasicConfigSchema: import("@jbrowse/core/configuration").
|
|
150
|
-
|
|
502
|
+
HTTPBasicConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
503
|
+
tokenType: {
|
|
504
|
+
description: string;
|
|
505
|
+
type: string;
|
|
506
|
+
defaultValue: string;
|
|
507
|
+
};
|
|
508
|
+
validateWithHEAD: {
|
|
509
|
+
description: string;
|
|
510
|
+
type: string;
|
|
511
|
+
defaultValue: boolean;
|
|
512
|
+
};
|
|
513
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
514
|
+
name: {
|
|
515
|
+
description: string;
|
|
516
|
+
type: string;
|
|
517
|
+
defaultValue: string;
|
|
518
|
+
};
|
|
519
|
+
description: {
|
|
520
|
+
description: string;
|
|
521
|
+
type: string;
|
|
522
|
+
defaultValue: string;
|
|
523
|
+
};
|
|
524
|
+
authHeader: {
|
|
525
|
+
description: string;
|
|
526
|
+
type: string;
|
|
527
|
+
defaultValue: string;
|
|
528
|
+
};
|
|
529
|
+
tokenType: {
|
|
530
|
+
description: string;
|
|
531
|
+
type: string;
|
|
532
|
+
defaultValue: string;
|
|
533
|
+
};
|
|
534
|
+
domains: {
|
|
535
|
+
description: string;
|
|
536
|
+
type: string;
|
|
537
|
+
defaultValue: never[];
|
|
538
|
+
};
|
|
539
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
540
|
+
HTTPBasicInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
541
|
+
tokenType: {
|
|
542
|
+
description: string;
|
|
543
|
+
type: string;
|
|
544
|
+
defaultValue: string;
|
|
545
|
+
};
|
|
546
|
+
validateWithHEAD: {
|
|
547
|
+
description: string;
|
|
548
|
+
type: string;
|
|
549
|
+
defaultValue: boolean;
|
|
550
|
+
};
|
|
551
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
552
|
+
name: {
|
|
553
|
+
description: string;
|
|
554
|
+
type: string;
|
|
555
|
+
defaultValue: string;
|
|
556
|
+
};
|
|
557
|
+
description: {
|
|
558
|
+
description: string;
|
|
559
|
+
type: string;
|
|
560
|
+
defaultValue: string;
|
|
561
|
+
};
|
|
562
|
+
authHeader: {
|
|
563
|
+
description: string;
|
|
564
|
+
type: string;
|
|
565
|
+
defaultValue: string;
|
|
566
|
+
};
|
|
567
|
+
tokenType: {
|
|
568
|
+
description: string;
|
|
569
|
+
type: string;
|
|
570
|
+
defaultValue: string;
|
|
571
|
+
};
|
|
572
|
+
domains: {
|
|
573
|
+
description: string;
|
|
574
|
+
type: string;
|
|
575
|
+
defaultValue: never[];
|
|
576
|
+
};
|
|
577
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
|
|
151
578
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
152
579
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
580
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
581
|
+
name: {
|
|
582
|
+
description: string;
|
|
583
|
+
type: string;
|
|
584
|
+
defaultValue: string;
|
|
585
|
+
};
|
|
586
|
+
description: {
|
|
587
|
+
description: string;
|
|
588
|
+
type: string;
|
|
589
|
+
defaultValue: string;
|
|
590
|
+
};
|
|
591
|
+
authHeader: {
|
|
592
|
+
description: string;
|
|
593
|
+
type: string;
|
|
594
|
+
defaultValue: string;
|
|
595
|
+
};
|
|
596
|
+
tokenType: {
|
|
597
|
+
description: string;
|
|
598
|
+
type: string;
|
|
599
|
+
defaultValue: string;
|
|
600
|
+
};
|
|
601
|
+
domains: {
|
|
602
|
+
description: string;
|
|
603
|
+
type: string;
|
|
604
|
+
defaultValue: never[];
|
|
605
|
+
};
|
|
606
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
153
607
|
} & {
|
|
154
608
|
type: import("mobx-state-tree").ISimpleType<"HTTPBasicInternetAccount">;
|
|
155
|
-
configuration: import("
|
|
609
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
610
|
+
tokenType: {
|
|
611
|
+
description: string;
|
|
612
|
+
type: string;
|
|
613
|
+
defaultValue: string;
|
|
614
|
+
};
|
|
615
|
+
validateWithHEAD: {
|
|
616
|
+
description: string;
|
|
617
|
+
type: string;
|
|
618
|
+
defaultValue: boolean;
|
|
619
|
+
};
|
|
620
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
621
|
+
name: {
|
|
622
|
+
description: string;
|
|
623
|
+
type: string;
|
|
624
|
+
defaultValue: string;
|
|
625
|
+
};
|
|
626
|
+
description: {
|
|
627
|
+
description: string;
|
|
628
|
+
type: string;
|
|
629
|
+
defaultValue: string;
|
|
630
|
+
};
|
|
631
|
+
authHeader: {
|
|
632
|
+
description: string;
|
|
633
|
+
type: string;
|
|
634
|
+
defaultValue: string;
|
|
635
|
+
};
|
|
636
|
+
tokenType: {
|
|
637
|
+
description: string;
|
|
638
|
+
type: string;
|
|
639
|
+
defaultValue: string;
|
|
640
|
+
};
|
|
641
|
+
domains: {
|
|
642
|
+
description: string;
|
|
643
|
+
type: string;
|
|
644
|
+
defaultValue: never[];
|
|
645
|
+
};
|
|
646
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
156
647
|
}, {
|
|
157
648
|
readonly name: string;
|
|
158
649
|
readonly description: string;
|
|
@@ -207,16 +698,374 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
207
698
|
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
|
|
208
699
|
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
209
700
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
210
|
-
DropboxOAuthConfigSchema: import("@jbrowse/core/configuration").
|
|
211
|
-
|
|
701
|
+
DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
702
|
+
authEndpoint: {
|
|
703
|
+
description: string;
|
|
704
|
+
type: string;
|
|
705
|
+
defaultValue: string;
|
|
706
|
+
};
|
|
707
|
+
tokenEndpoint: {
|
|
708
|
+
description: string;
|
|
709
|
+
type: string;
|
|
710
|
+
defaultValue: string;
|
|
711
|
+
};
|
|
712
|
+
needsPKCE: {
|
|
713
|
+
description: string;
|
|
714
|
+
type: string;
|
|
715
|
+
defaultValue: boolean;
|
|
716
|
+
};
|
|
717
|
+
domains: {
|
|
718
|
+
description: string;
|
|
719
|
+
type: string;
|
|
720
|
+
defaultValue: string[];
|
|
721
|
+
};
|
|
722
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
723
|
+
tokenType: {
|
|
724
|
+
description: string;
|
|
725
|
+
type: string;
|
|
726
|
+
defaultValue: string;
|
|
727
|
+
};
|
|
728
|
+
authEndpoint: {
|
|
729
|
+
description: string;
|
|
730
|
+
type: string;
|
|
731
|
+
defaultValue: string;
|
|
732
|
+
};
|
|
733
|
+
tokenEndpoint: {
|
|
734
|
+
description: string;
|
|
735
|
+
type: string;
|
|
736
|
+
defaultValue: string;
|
|
737
|
+
};
|
|
738
|
+
needsPKCE: {
|
|
739
|
+
description: string;
|
|
740
|
+
type: string;
|
|
741
|
+
defaultValue: boolean;
|
|
742
|
+
};
|
|
743
|
+
clientId: {
|
|
744
|
+
description: string;
|
|
745
|
+
type: string;
|
|
746
|
+
defaultValue: string;
|
|
747
|
+
};
|
|
748
|
+
scopes: {
|
|
749
|
+
description: string;
|
|
750
|
+
type: string;
|
|
751
|
+
defaultValue: string;
|
|
752
|
+
};
|
|
753
|
+
state: {
|
|
754
|
+
description: string;
|
|
755
|
+
type: string;
|
|
756
|
+
defaultValue: string;
|
|
757
|
+
};
|
|
758
|
+
responseType: {
|
|
759
|
+
description: string;
|
|
760
|
+
type: string;
|
|
761
|
+
defaultValue: string;
|
|
762
|
+
};
|
|
763
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
764
|
+
name: {
|
|
765
|
+
description: string;
|
|
766
|
+
type: string;
|
|
767
|
+
defaultValue: string;
|
|
768
|
+
};
|
|
769
|
+
description: {
|
|
770
|
+
description: string;
|
|
771
|
+
type: string;
|
|
772
|
+
defaultValue: string;
|
|
773
|
+
};
|
|
774
|
+
authHeader: {
|
|
775
|
+
description: string;
|
|
776
|
+
type: string;
|
|
777
|
+
defaultValue: string;
|
|
778
|
+
};
|
|
779
|
+
tokenType: {
|
|
780
|
+
description: string;
|
|
781
|
+
type: string;
|
|
782
|
+
defaultValue: string;
|
|
783
|
+
};
|
|
784
|
+
domains: {
|
|
785
|
+
description: string;
|
|
786
|
+
type: string;
|
|
787
|
+
defaultValue: never[];
|
|
788
|
+
};
|
|
789
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
790
|
+
DropboxOAuthInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
791
|
+
authEndpoint: {
|
|
792
|
+
description: string;
|
|
793
|
+
type: string;
|
|
794
|
+
defaultValue: string;
|
|
795
|
+
};
|
|
796
|
+
tokenEndpoint: {
|
|
797
|
+
description: string;
|
|
798
|
+
type: string;
|
|
799
|
+
defaultValue: string;
|
|
800
|
+
};
|
|
801
|
+
needsPKCE: {
|
|
802
|
+
description: string;
|
|
803
|
+
type: string;
|
|
804
|
+
defaultValue: boolean;
|
|
805
|
+
};
|
|
806
|
+
domains: {
|
|
807
|
+
description: string;
|
|
808
|
+
type: string;
|
|
809
|
+
defaultValue: string[];
|
|
810
|
+
};
|
|
811
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
812
|
+
tokenType: {
|
|
813
|
+
description: string;
|
|
814
|
+
type: string;
|
|
815
|
+
defaultValue: string;
|
|
816
|
+
};
|
|
817
|
+
authEndpoint: {
|
|
818
|
+
description: string;
|
|
819
|
+
type: string;
|
|
820
|
+
defaultValue: string;
|
|
821
|
+
};
|
|
822
|
+
tokenEndpoint: {
|
|
823
|
+
description: string;
|
|
824
|
+
type: string;
|
|
825
|
+
defaultValue: string;
|
|
826
|
+
};
|
|
827
|
+
needsPKCE: {
|
|
828
|
+
description: string;
|
|
829
|
+
type: string;
|
|
830
|
+
defaultValue: boolean;
|
|
831
|
+
};
|
|
832
|
+
clientId: {
|
|
833
|
+
description: string;
|
|
834
|
+
type: string;
|
|
835
|
+
defaultValue: string;
|
|
836
|
+
};
|
|
837
|
+
scopes: {
|
|
838
|
+
description: string;
|
|
839
|
+
type: string;
|
|
840
|
+
defaultValue: string;
|
|
841
|
+
};
|
|
842
|
+
state: {
|
|
843
|
+
description: string;
|
|
844
|
+
type: string;
|
|
845
|
+
defaultValue: string;
|
|
846
|
+
};
|
|
847
|
+
responseType: {
|
|
848
|
+
description: string;
|
|
849
|
+
type: string;
|
|
850
|
+
defaultValue: string;
|
|
851
|
+
};
|
|
852
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
853
|
+
name: {
|
|
854
|
+
description: string;
|
|
855
|
+
type: string;
|
|
856
|
+
defaultValue: string;
|
|
857
|
+
};
|
|
858
|
+
description: {
|
|
859
|
+
description: string;
|
|
860
|
+
type: string;
|
|
861
|
+
defaultValue: string;
|
|
862
|
+
};
|
|
863
|
+
authHeader: {
|
|
864
|
+
description: string;
|
|
865
|
+
type: string;
|
|
866
|
+
defaultValue: string;
|
|
867
|
+
};
|
|
868
|
+
tokenType: {
|
|
869
|
+
description: string;
|
|
870
|
+
type: string;
|
|
871
|
+
defaultValue: string;
|
|
872
|
+
};
|
|
873
|
+
domains: {
|
|
874
|
+
description: string;
|
|
875
|
+
type: string;
|
|
876
|
+
defaultValue: never[];
|
|
877
|
+
};
|
|
878
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>) => import("mobx-state-tree").IModelType<{
|
|
212
879
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
213
880
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
881
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
882
|
+
name: {
|
|
883
|
+
description: string;
|
|
884
|
+
type: string;
|
|
885
|
+
defaultValue: string;
|
|
886
|
+
};
|
|
887
|
+
description: {
|
|
888
|
+
description: string;
|
|
889
|
+
type: string;
|
|
890
|
+
defaultValue: string;
|
|
891
|
+
};
|
|
892
|
+
authHeader: {
|
|
893
|
+
description: string;
|
|
894
|
+
type: string;
|
|
895
|
+
defaultValue: string;
|
|
896
|
+
};
|
|
897
|
+
tokenType: {
|
|
898
|
+
description: string;
|
|
899
|
+
type: string;
|
|
900
|
+
defaultValue: string;
|
|
901
|
+
};
|
|
902
|
+
domains: {
|
|
903
|
+
description: string;
|
|
904
|
+
type: string;
|
|
905
|
+
defaultValue: never[];
|
|
906
|
+
};
|
|
907
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
214
908
|
} & {
|
|
215
909
|
type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
|
|
216
|
-
configuration: import("
|
|
910
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
911
|
+
tokenType: {
|
|
912
|
+
description: string;
|
|
913
|
+
type: string;
|
|
914
|
+
defaultValue: string;
|
|
915
|
+
};
|
|
916
|
+
authEndpoint: {
|
|
917
|
+
description: string;
|
|
918
|
+
type: string;
|
|
919
|
+
defaultValue: string;
|
|
920
|
+
};
|
|
921
|
+
tokenEndpoint: {
|
|
922
|
+
description: string;
|
|
923
|
+
type: string;
|
|
924
|
+
defaultValue: string;
|
|
925
|
+
};
|
|
926
|
+
needsPKCE: {
|
|
927
|
+
description: string;
|
|
928
|
+
type: string;
|
|
929
|
+
defaultValue: boolean;
|
|
930
|
+
};
|
|
931
|
+
clientId: {
|
|
932
|
+
description: string;
|
|
933
|
+
type: string;
|
|
934
|
+
defaultValue: string;
|
|
935
|
+
};
|
|
936
|
+
scopes: {
|
|
937
|
+
description: string;
|
|
938
|
+
type: string;
|
|
939
|
+
defaultValue: string;
|
|
940
|
+
};
|
|
941
|
+
state: {
|
|
942
|
+
description: string;
|
|
943
|
+
type: string;
|
|
944
|
+
defaultValue: string;
|
|
945
|
+
};
|
|
946
|
+
responseType: {
|
|
947
|
+
description: string;
|
|
948
|
+
type: string;
|
|
949
|
+
defaultValue: string;
|
|
950
|
+
};
|
|
951
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
952
|
+
name: {
|
|
953
|
+
description: string;
|
|
954
|
+
type: string;
|
|
955
|
+
defaultValue: string;
|
|
956
|
+
};
|
|
957
|
+
description: {
|
|
958
|
+
description: string;
|
|
959
|
+
type: string;
|
|
960
|
+
defaultValue: string;
|
|
961
|
+
};
|
|
962
|
+
authHeader: {
|
|
963
|
+
description: string;
|
|
964
|
+
type: string;
|
|
965
|
+
defaultValue: string;
|
|
966
|
+
};
|
|
967
|
+
tokenType: {
|
|
968
|
+
description: string;
|
|
969
|
+
type: string;
|
|
970
|
+
defaultValue: string;
|
|
971
|
+
};
|
|
972
|
+
domains: {
|
|
973
|
+
description: string;
|
|
974
|
+
type: string;
|
|
975
|
+
defaultValue: never[];
|
|
976
|
+
};
|
|
977
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
217
978
|
} & {
|
|
218
979
|
type: import("mobx-state-tree").ISimpleType<"DropboxOAuthInternetAccount">;
|
|
219
|
-
configuration: import("
|
|
980
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
981
|
+
authEndpoint: {
|
|
982
|
+
description: string;
|
|
983
|
+
type: string;
|
|
984
|
+
defaultValue: string;
|
|
985
|
+
};
|
|
986
|
+
tokenEndpoint: {
|
|
987
|
+
description: string;
|
|
988
|
+
type: string;
|
|
989
|
+
defaultValue: string;
|
|
990
|
+
};
|
|
991
|
+
needsPKCE: {
|
|
992
|
+
description: string;
|
|
993
|
+
type: string;
|
|
994
|
+
defaultValue: boolean;
|
|
995
|
+
};
|
|
996
|
+
domains: {
|
|
997
|
+
description: string;
|
|
998
|
+
type: string;
|
|
999
|
+
defaultValue: string[];
|
|
1000
|
+
};
|
|
1001
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1002
|
+
tokenType: {
|
|
1003
|
+
description: string;
|
|
1004
|
+
type: string;
|
|
1005
|
+
defaultValue: string;
|
|
1006
|
+
};
|
|
1007
|
+
authEndpoint: {
|
|
1008
|
+
description: string;
|
|
1009
|
+
type: string;
|
|
1010
|
+
defaultValue: string;
|
|
1011
|
+
};
|
|
1012
|
+
tokenEndpoint: {
|
|
1013
|
+
description: string;
|
|
1014
|
+
type: string;
|
|
1015
|
+
defaultValue: string;
|
|
1016
|
+
};
|
|
1017
|
+
needsPKCE: {
|
|
1018
|
+
description: string;
|
|
1019
|
+
type: string;
|
|
1020
|
+
defaultValue: boolean;
|
|
1021
|
+
};
|
|
1022
|
+
clientId: {
|
|
1023
|
+
description: string;
|
|
1024
|
+
type: string;
|
|
1025
|
+
defaultValue: string;
|
|
1026
|
+
};
|
|
1027
|
+
scopes: {
|
|
1028
|
+
description: string;
|
|
1029
|
+
type: string;
|
|
1030
|
+
defaultValue: string;
|
|
1031
|
+
};
|
|
1032
|
+
state: {
|
|
1033
|
+
description: string;
|
|
1034
|
+
type: string;
|
|
1035
|
+
defaultValue: string;
|
|
1036
|
+
};
|
|
1037
|
+
responseType: {
|
|
1038
|
+
description: string;
|
|
1039
|
+
type: string;
|
|
1040
|
+
defaultValue: string;
|
|
1041
|
+
};
|
|
1042
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1043
|
+
name: {
|
|
1044
|
+
description: string;
|
|
1045
|
+
type: string;
|
|
1046
|
+
defaultValue: string;
|
|
1047
|
+
};
|
|
1048
|
+
description: {
|
|
1049
|
+
description: string;
|
|
1050
|
+
type: string;
|
|
1051
|
+
defaultValue: string;
|
|
1052
|
+
};
|
|
1053
|
+
authHeader: {
|
|
1054
|
+
description: string;
|
|
1055
|
+
type: string;
|
|
1056
|
+
defaultValue: string;
|
|
1057
|
+
};
|
|
1058
|
+
tokenType: {
|
|
1059
|
+
description: string;
|
|
1060
|
+
type: string;
|
|
1061
|
+
defaultValue: string;
|
|
1062
|
+
};
|
|
1063
|
+
domains: {
|
|
1064
|
+
description: string;
|
|
1065
|
+
type: string;
|
|
1066
|
+
defaultValue: never[];
|
|
1067
|
+
};
|
|
1068
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
220
1069
|
}, {
|
|
221
1070
|
readonly name: string;
|
|
222
1071
|
readonly description: string;
|
|
@@ -275,7 +1124,6 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
275
1124
|
readonly scopes: string;
|
|
276
1125
|
state(): string | undefined;
|
|
277
1126
|
readonly responseType: "code" | "token";
|
|
278
|
-
readonly hasRefreshToken: boolean;
|
|
279
1127
|
readonly refreshTokenKey: string;
|
|
280
1128
|
} & {
|
|
281
1129
|
storeRefreshToken(refreshToken: string): void;
|
|
@@ -290,104 +1138,105 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
290
1138
|
useEndpointForAuthorization(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
291
1139
|
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
292
1140
|
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
293
|
-
} & {
|
|
294
|
-
readonly toggleContents: JSX.Element;
|
|
295
|
-
readonly selectorLabel: string;
|
|
296
|
-
} & {
|
|
297
|
-
getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
298
|
-
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
299
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
300
|
-
GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
301
|
-
GoogleDriveOAuthInternetAccountModelFactory: (configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType) => import("mobx-state-tree").IModelType<{
|
|
302
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
303
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
304
|
-
} & {
|
|
305
|
-
type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
|
|
306
|
-
configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
307
|
-
} & {
|
|
308
|
-
type: import("mobx-state-tree").ISimpleType<"GoogleDriveOAuthInternetAccount">;
|
|
309
|
-
configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
310
|
-
}, {
|
|
311
|
-
readonly name: string;
|
|
312
|
-
readonly description: string;
|
|
313
|
-
readonly internetAccountId: string;
|
|
314
|
-
readonly authHeader: string;
|
|
315
|
-
readonly tokenType: string;
|
|
316
|
-
readonly domains: string[];
|
|
317
|
-
readonly toggleContents: import("react").ReactNode;
|
|
318
|
-
readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
|
|
319
|
-
readonly selectorLabel: string | undefined;
|
|
320
|
-
} & {
|
|
321
|
-
handlesLocation(location: import("@jbrowse/core/util").UriLocation): boolean;
|
|
322
|
-
readonly tokenKey: string;
|
|
323
|
-
} & {
|
|
324
|
-
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
|
|
325
|
-
storeToken(token: string): void;
|
|
326
|
-
removeToken(): void;
|
|
327
|
-
retrieveToken(): string | null;
|
|
328
|
-
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
329
|
-
} & {
|
|
330
|
-
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
331
|
-
} & {
|
|
332
|
-
addAuthHeaderToInit(init: RequestInit | undefined, token: string): {
|
|
333
|
-
headers: Headers;
|
|
334
|
-
body?: BodyInit | null | undefined;
|
|
335
|
-
cache?: RequestCache | undefined;
|
|
336
|
-
credentials?: RequestCredentials | undefined;
|
|
337
|
-
integrity?: string | undefined;
|
|
338
|
-
keepalive?: boolean | undefined;
|
|
339
|
-
method?: string | undefined;
|
|
340
|
-
mode?: RequestMode | undefined;
|
|
341
|
-
redirect?: RequestRedirect | undefined;
|
|
342
|
-
referrer?: string | undefined;
|
|
343
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
344
|
-
signal?: AbortSignal | null | undefined;
|
|
345
|
-
window?: null | undefined;
|
|
346
|
-
};
|
|
347
|
-
getPreAuthorizationInformation(location: import("@jbrowse/core/util").UriLocation): Promise<{
|
|
348
|
-
internetAccountType: string;
|
|
349
|
-
authInfo: {
|
|
350
|
-
token: string;
|
|
351
|
-
configuration: any;
|
|
352
|
-
};
|
|
353
|
-
}>;
|
|
354
1141
|
} & {
|
|
355
1142
|
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
356
1143
|
} & {
|
|
357
|
-
|
|
358
|
-
} & {
|
|
359
|
-
readonly codeVerifierPKCE: string;
|
|
360
|
-
} & {
|
|
361
|
-
readonly authEndpoint: string;
|
|
362
|
-
readonly tokenEndpoint: string;
|
|
363
|
-
readonly needsPKCE: boolean;
|
|
364
|
-
readonly clientId: string;
|
|
365
|
-
readonly scopes: string;
|
|
366
|
-
state(): string | undefined;
|
|
367
|
-
readonly responseType: "code" | "token";
|
|
368
|
-
readonly hasRefreshToken: boolean;
|
|
369
|
-
readonly refreshTokenKey: string;
|
|
370
|
-
} & {
|
|
371
|
-
storeRefreshToken(refreshToken: string): void;
|
|
372
|
-
removeRefreshToken(): void;
|
|
373
|
-
retrieveRefreshToken(): string | null;
|
|
374
|
-
exchangeAuthorizationForAccessToken(token: string, redirectUri: string): Promise<string>;
|
|
375
|
-
exchangeRefreshForAccessToken(refreshToken: string): Promise<string>;
|
|
376
|
-
} & {
|
|
377
|
-
addMessageChannel(resolve: (token: string) => void, reject: (error: Error) => void): void;
|
|
378
|
-
deleteMessageChannel(): void;
|
|
379
|
-
finishOAuthWindow(event: MessageEvent<any>, resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
380
|
-
useEndpointForAuthorization(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
381
|
-
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
382
|
-
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
383
|
-
} & {
|
|
384
|
-
readonly toggleContents: JSX.Element;
|
|
1144
|
+
readonly toggleContents: import("react").JSX.Element;
|
|
385
1145
|
readonly selectorLabel: string;
|
|
386
1146
|
} & {
|
|
387
1147
|
getFetcher(location?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
388
|
-
openLocation(location: import("@jbrowse/core/util").UriLocation): import("./GoogleDriveOAuthModel/model").GoogleDriveFile;
|
|
389
1148
|
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
390
1149
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
1150
|
+
GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1151
|
+
authEndpoint: {
|
|
1152
|
+
description: string;
|
|
1153
|
+
type: string;
|
|
1154
|
+
defaultValue: string;
|
|
1155
|
+
};
|
|
1156
|
+
scopes: {
|
|
1157
|
+
description: string;
|
|
1158
|
+
type: string;
|
|
1159
|
+
defaultValue: string;
|
|
1160
|
+
};
|
|
1161
|
+
domains: {
|
|
1162
|
+
description: string;
|
|
1163
|
+
type: string;
|
|
1164
|
+
defaultValue: string[];
|
|
1165
|
+
};
|
|
1166
|
+
responseType: {
|
|
1167
|
+
description: string;
|
|
1168
|
+
type: string;
|
|
1169
|
+
defaultValue: string;
|
|
1170
|
+
};
|
|
1171
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1172
|
+
tokenType: {
|
|
1173
|
+
description: string;
|
|
1174
|
+
type: string;
|
|
1175
|
+
defaultValue: string;
|
|
1176
|
+
};
|
|
1177
|
+
authEndpoint: {
|
|
1178
|
+
description: string;
|
|
1179
|
+
type: string;
|
|
1180
|
+
defaultValue: string;
|
|
1181
|
+
};
|
|
1182
|
+
tokenEndpoint: {
|
|
1183
|
+
description: string;
|
|
1184
|
+
type: string;
|
|
1185
|
+
defaultValue: string;
|
|
1186
|
+
};
|
|
1187
|
+
needsPKCE: {
|
|
1188
|
+
description: string;
|
|
1189
|
+
type: string;
|
|
1190
|
+
defaultValue: boolean;
|
|
1191
|
+
};
|
|
1192
|
+
clientId: {
|
|
1193
|
+
description: string;
|
|
1194
|
+
type: string;
|
|
1195
|
+
defaultValue: string;
|
|
1196
|
+
};
|
|
1197
|
+
scopes: {
|
|
1198
|
+
description: string;
|
|
1199
|
+
type: string;
|
|
1200
|
+
defaultValue: string;
|
|
1201
|
+
};
|
|
1202
|
+
state: {
|
|
1203
|
+
description: string;
|
|
1204
|
+
type: string;
|
|
1205
|
+
defaultValue: string;
|
|
1206
|
+
};
|
|
1207
|
+
responseType: {
|
|
1208
|
+
description: string;
|
|
1209
|
+
type: string;
|
|
1210
|
+
defaultValue: string;
|
|
1211
|
+
};
|
|
1212
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1213
|
+
name: {
|
|
1214
|
+
description: string;
|
|
1215
|
+
type: string;
|
|
1216
|
+
defaultValue: string;
|
|
1217
|
+
};
|
|
1218
|
+
description: {
|
|
1219
|
+
description: string;
|
|
1220
|
+
type: string;
|
|
1221
|
+
defaultValue: string;
|
|
1222
|
+
};
|
|
1223
|
+
authHeader: {
|
|
1224
|
+
description: string;
|
|
1225
|
+
type: string;
|
|
1226
|
+
defaultValue: string;
|
|
1227
|
+
};
|
|
1228
|
+
tokenType: {
|
|
1229
|
+
description: string;
|
|
1230
|
+
type: string;
|
|
1231
|
+
defaultValue: string;
|
|
1232
|
+
};
|
|
1233
|
+
domains: {
|
|
1234
|
+
description: string;
|
|
1235
|
+
type: string;
|
|
1236
|
+
defaultValue: never[];
|
|
1237
|
+
};
|
|
1238
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
1239
|
+
GoogleDriveOAuthInternetAccountModelFactory: typeof GoogleDriveOAuthInternetAccountModelFactory;
|
|
391
1240
|
};
|
|
392
1241
|
install(pluginManager: PluginManager): void;
|
|
393
1242
|
}
|