@jbrowse/plugin-authentication 2.11.2 → 2.12.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/DropboxIcon.js +1 -1
- package/dist/DropboxOAuthModel/configSchema.d.ts +2 -6
- package/dist/DropboxOAuthModel/model.d.ts +24 -129
- package/dist/DropboxOAuthModel/util.js +1 -2
- package/dist/ExternalTokenModel/model.d.ts +17 -49
- package/dist/GoogleDriveOAuthModel/GoogleDriveIcon.js +1 -1
- package/dist/GoogleDriveOAuthModel/configSchema.d.ts +2 -6
- package/dist/GoogleDriveOAuthModel/model.d.ts +19 -23
- package/dist/GoogleDriveOAuthModel/model.js +1 -1
- package/dist/GoogleDriveOAuthModel/util.js +1 -2
- package/dist/HTTPBasicModel/HTTPBasicLoginForm.js +1 -2
- package/dist/HTTPBasicModel/model.d.ts +20 -71
- package/dist/OAuthModel/configSchema.d.ts +1 -3
- package/dist/OAuthModel/model.d.ts +21 -98
- package/dist/OAuthModel/util.js +4 -5
- package/dist/index.d.ts +69 -294
- package/dist/util.js +2 -3
- package/esm/DropboxOAuthModel/configSchema.d.ts +2 -6
- package/esm/DropboxOAuthModel/model.d.ts +24 -129
- package/esm/ExternalTokenModel/model.d.ts +17 -49
- package/esm/GoogleDriveOAuthModel/configSchema.d.ts +2 -6
- package/esm/GoogleDriveOAuthModel/model.d.ts +19 -23
- package/esm/HTTPBasicModel/model.d.ts +20 -71
- package/esm/OAuthModel/configSchema.d.ts +1 -3
- package/esm/OAuthModel/model.d.ts +21 -98
- package/esm/index.d.ts +69 -294
- package/package.json +2 -2
|
@@ -1,79 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { UriLocation } from '@jbrowse/core/util';
|
|
3
2
|
import { Instance } from 'mobx-state-tree';
|
|
3
|
+
import { OAuthInternetAccountConfigModel } from './configSchema';
|
|
4
4
|
/**
|
|
5
5
|
* #stateModel OAuthInternetAccount
|
|
6
6
|
*/
|
|
7
|
-
declare const stateModelFactory: (configSchema: import("
|
|
8
|
-
tokenType: {
|
|
9
|
-
description: string;
|
|
10
|
-
type: string;
|
|
11
|
-
defaultValue: string;
|
|
12
|
-
};
|
|
13
|
-
authEndpoint: {
|
|
14
|
-
description: string;
|
|
15
|
-
type: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
};
|
|
18
|
-
tokenEndpoint: {
|
|
19
|
-
description: string;
|
|
20
|
-
type: string;
|
|
21
|
-
defaultValue: string;
|
|
22
|
-
};
|
|
23
|
-
needsPKCE: {
|
|
24
|
-
description: string;
|
|
25
|
-
type: string;
|
|
26
|
-
defaultValue: boolean;
|
|
27
|
-
};
|
|
28
|
-
clientId: {
|
|
29
|
-
description: string; /**
|
|
30
|
-
* #getter
|
|
31
|
-
*/
|
|
32
|
-
type: string;
|
|
33
|
-
defaultValue: string;
|
|
34
|
-
};
|
|
35
|
-
scopes: {
|
|
36
|
-
description: string;
|
|
37
|
-
type: string;
|
|
38
|
-
defaultValue: string;
|
|
39
|
-
};
|
|
40
|
-
state: {
|
|
41
|
-
description: string;
|
|
42
|
-
type: string;
|
|
43
|
-
defaultValue: string;
|
|
44
|
-
};
|
|
45
|
-
responseType: {
|
|
46
|
-
description: string;
|
|
47
|
-
type: string;
|
|
48
|
-
defaultValue: string;
|
|
49
|
-
};
|
|
50
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
51
|
-
name: {
|
|
52
|
-
description: string;
|
|
53
|
-
type: string;
|
|
54
|
-
defaultValue: string;
|
|
55
|
-
};
|
|
56
|
-
description: {
|
|
57
|
-
description: string;
|
|
58
|
-
type: string;
|
|
59
|
-
defaultValue: string;
|
|
60
|
-
};
|
|
61
|
-
authHeader: {
|
|
62
|
-
description: string;
|
|
63
|
-
type: string;
|
|
64
|
-
defaultValue: string;
|
|
65
|
-
};
|
|
66
|
-
tokenType: {
|
|
67
|
-
description: string;
|
|
68
|
-
type: string;
|
|
69
|
-
defaultValue: string;
|
|
70
|
-
};
|
|
71
|
-
domains: {
|
|
72
|
-
description: string;
|
|
73
|
-
type: string;
|
|
74
|
-
defaultValue: never[];
|
|
75
|
-
};
|
|
76
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
|
|
7
|
+
declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
|
|
77
8
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
78
9
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
79
10
|
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
@@ -98,9 +29,7 @@ declare const stateModelFactory: (configSchema: import("@jbrowse/core/configurat
|
|
|
98
29
|
defaultValue: string;
|
|
99
30
|
};
|
|
100
31
|
domains: {
|
|
101
|
-
description: string;
|
|
102
|
-
* #getter
|
|
103
|
-
*/
|
|
32
|
+
description: string;
|
|
104
33
|
type: string;
|
|
105
34
|
defaultValue: never[];
|
|
106
35
|
};
|
|
@@ -135,9 +64,7 @@ declare const stateModelFactory: (configSchema: import("@jbrowse/core/configurat
|
|
|
135
64
|
defaultValue: boolean;
|
|
136
65
|
};
|
|
137
66
|
clientId: {
|
|
138
|
-
description: string;
|
|
139
|
-
* #getter
|
|
140
|
-
*/
|
|
67
|
+
description: string;
|
|
141
68
|
type: string;
|
|
142
69
|
defaultValue: string;
|
|
143
70
|
};
|
|
@@ -186,13 +113,9 @@ declare const stateModelFactory: (configSchema: import("@jbrowse/core/configurat
|
|
|
186
113
|
}, {
|
|
187
114
|
readonly name: string;
|
|
188
115
|
readonly description: string;
|
|
189
|
-
readonly internetAccountId: string;
|
|
190
|
-
* #getter
|
|
191
|
-
*/
|
|
116
|
+
readonly internetAccountId: string;
|
|
192
117
|
readonly authHeader: string;
|
|
193
|
-
readonly tokenType: string;
|
|
194
|
-
* #getter
|
|
195
|
-
*/
|
|
118
|
+
readonly tokenType: string;
|
|
196
119
|
readonly domains: string[];
|
|
197
120
|
readonly toggleContents: import("react").ReactNode;
|
|
198
121
|
readonly SelectorComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
|
|
@@ -207,23 +130,23 @@ declare const stateModelFactory: (configSchema: import("@jbrowse/core/configurat
|
|
|
207
130
|
retrieveToken(): string | null;
|
|
208
131
|
validateToken(token: string, _loc: UriLocation): Promise<string>;
|
|
209
132
|
} & {
|
|
210
|
-
getToken(location?: UriLocation
|
|
133
|
+
getToken(location?: UriLocation): Promise<string>;
|
|
211
134
|
} & {
|
|
212
135
|
addAuthHeaderToInit(init: RequestInit | undefined, token: string): {
|
|
213
136
|
headers: Headers;
|
|
214
|
-
body?: BodyInit | null
|
|
215
|
-
cache?: RequestCache
|
|
216
|
-
credentials?: RequestCredentials
|
|
217
|
-
integrity?: string
|
|
218
|
-
keepalive?: boolean
|
|
219
|
-
method?: string
|
|
220
|
-
mode?: RequestMode
|
|
221
|
-
priority?: RequestPriority
|
|
222
|
-
redirect?: RequestRedirect
|
|
223
|
-
referrer?: string
|
|
224
|
-
referrerPolicy?: ReferrerPolicy
|
|
225
|
-
signal?: AbortSignal | null
|
|
226
|
-
window?: null
|
|
137
|
+
body?: BodyInit | null;
|
|
138
|
+
cache?: RequestCache;
|
|
139
|
+
credentials?: RequestCredentials;
|
|
140
|
+
integrity?: string;
|
|
141
|
+
keepalive?: boolean;
|
|
142
|
+
method?: string;
|
|
143
|
+
mode?: RequestMode;
|
|
144
|
+
priority?: RequestPriority;
|
|
145
|
+
redirect?: RequestRedirect;
|
|
146
|
+
referrer?: string;
|
|
147
|
+
referrerPolicy?: ReferrerPolicy;
|
|
148
|
+
signal?: AbortSignal | null;
|
|
149
|
+
window?: null;
|
|
227
150
|
};
|
|
228
151
|
getPreAuthorizationInformation(location: UriLocation): Promise<{
|
|
229
152
|
internetAccountType: string;
|
|
@@ -233,7 +156,7 @@ declare const stateModelFactory: (configSchema: import("@jbrowse/core/configurat
|
|
|
233
156
|
};
|
|
234
157
|
}>;
|
|
235
158
|
} & {
|
|
236
|
-
getFetcher(loc?: UriLocation
|
|
159
|
+
getFetcher(loc?: UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
237
160
|
} & {
|
|
238
161
|
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
239
162
|
} & {
|
package/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
3
2
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
4
3
|
import { modelFactory as GoogleDriveOAuthInternetAccountModelFactory } from './GoogleDriveOAuthModel';
|
|
@@ -73,74 +72,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
73
72
|
defaultValue: never[];
|
|
74
73
|
};
|
|
75
74
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
76
|
-
OAuthInternetAccountModelFactory: (configSchema: import("
|
|
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<{
|
|
75
|
+
OAuthInternetAccountModelFactory: (configSchema: import("./OAuthModel/configSchema").OAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
|
|
144
76
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
145
77
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
146
78
|
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
@@ -260,23 +192,23 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
260
192
|
retrieveToken(): string | null;
|
|
261
193
|
validateToken(token: string, _loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
262
194
|
} & {
|
|
263
|
-
getToken(location?: import("@jbrowse/core/util").UriLocation
|
|
195
|
+
getToken(location?: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
264
196
|
} & {
|
|
265
197
|
addAuthHeaderToInit(init: RequestInit | undefined, token: string): {
|
|
266
198
|
headers: Headers;
|
|
267
|
-
body?: BodyInit | null
|
|
268
|
-
cache?: RequestCache
|
|
269
|
-
credentials?: RequestCredentials
|
|
270
|
-
integrity?: string
|
|
271
|
-
keepalive?: boolean
|
|
272
|
-
method?: string
|
|
273
|
-
mode?: RequestMode
|
|
274
|
-
priority?: RequestPriority
|
|
275
|
-
redirect?: RequestRedirect
|
|
276
|
-
referrer?: string
|
|
277
|
-
referrerPolicy?: ReferrerPolicy
|
|
278
|
-
signal?: AbortSignal | null
|
|
279
|
-
window?: null
|
|
199
|
+
body?: BodyInit | null;
|
|
200
|
+
cache?: RequestCache;
|
|
201
|
+
credentials?: RequestCredentials;
|
|
202
|
+
integrity?: string;
|
|
203
|
+
keepalive?: boolean;
|
|
204
|
+
method?: string;
|
|
205
|
+
mode?: RequestMode;
|
|
206
|
+
priority?: RequestPriority;
|
|
207
|
+
redirect?: RequestRedirect;
|
|
208
|
+
referrer?: string;
|
|
209
|
+
referrerPolicy?: ReferrerPolicy;
|
|
210
|
+
signal?: AbortSignal | null;
|
|
211
|
+
window?: null;
|
|
280
212
|
};
|
|
281
213
|
getPreAuthorizationInformation(location: import("@jbrowse/core/util").UriLocation): Promise<{
|
|
282
214
|
internetAccountType: string;
|
|
@@ -286,7 +218,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
286
218
|
};
|
|
287
219
|
}>;
|
|
288
220
|
} & {
|
|
289
|
-
getFetcher(loc?: import("@jbrowse/core/util").UriLocation
|
|
221
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
290
222
|
} & {
|
|
291
223
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
292
224
|
} & {
|
|
@@ -309,12 +241,12 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
309
241
|
} & {
|
|
310
242
|
addMessageChannel(resolve: (token: string) => void, reject: (error: Error) => void): void;
|
|
311
243
|
deleteMessageChannel(): void;
|
|
312
|
-
finishOAuthWindow(event: MessageEvent
|
|
244
|
+
finishOAuthWindow(event: MessageEvent, resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
313
245
|
useEndpointForAuthorization(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
314
246
|
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
315
247
|
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
316
248
|
} & {
|
|
317
|
-
getFetcher(loc?: import("@jbrowse/core/util").UriLocation
|
|
249
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
318
250
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
319
251
|
ExternalTokenConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
320
252
|
validateWithHEAD: {
|
|
@@ -349,39 +281,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
349
281
|
defaultValue: never[];
|
|
350
282
|
};
|
|
351
283
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
352
|
-
ExternalTokenInternetAccountModelFactory: (configSchema: import("
|
|
353
|
-
validateWithHEAD: {
|
|
354
|
-
description: string;
|
|
355
|
-
type: string;
|
|
356
|
-
defaultValue: boolean;
|
|
357
|
-
};
|
|
358
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
359
|
-
name: {
|
|
360
|
-
description: string;
|
|
361
|
-
type: string;
|
|
362
|
-
defaultValue: string;
|
|
363
|
-
};
|
|
364
|
-
description: {
|
|
365
|
-
description: string;
|
|
366
|
-
type: string;
|
|
367
|
-
defaultValue: string;
|
|
368
|
-
};
|
|
369
|
-
authHeader: {
|
|
370
|
-
description: string;
|
|
371
|
-
type: string;
|
|
372
|
-
defaultValue: string;
|
|
373
|
-
};
|
|
374
|
-
tokenType: {
|
|
375
|
-
description: string;
|
|
376
|
-
type: string;
|
|
377
|
-
defaultValue: string;
|
|
378
|
-
};
|
|
379
|
-
domains: {
|
|
380
|
-
description: string;
|
|
381
|
-
type: string;
|
|
382
|
-
defaultValue: never[];
|
|
383
|
-
};
|
|
384
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
|
|
284
|
+
ExternalTokenInternetAccountModelFactory: (configSchema: import("./ExternalTokenModel/configSchema").ExternalTokenInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
|
|
385
285
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
386
286
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
387
287
|
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
@@ -466,23 +366,23 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
466
366
|
retrieveToken(): string | null;
|
|
467
367
|
validateToken(token: string, _loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
468
368
|
} & {
|
|
469
|
-
getToken(location?: import("@jbrowse/core/util").UriLocation
|
|
369
|
+
getToken(location?: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
470
370
|
} & {
|
|
471
371
|
addAuthHeaderToInit(init: RequestInit | undefined, token: string): {
|
|
472
372
|
headers: Headers;
|
|
473
|
-
body?: BodyInit | null
|
|
474
|
-
cache?: RequestCache
|
|
475
|
-
credentials?: RequestCredentials
|
|
476
|
-
integrity?: string
|
|
477
|
-
keepalive?: boolean
|
|
478
|
-
method?: string
|
|
479
|
-
mode?: RequestMode
|
|
480
|
-
priority?: RequestPriority
|
|
481
|
-
redirect?: RequestRedirect
|
|
482
|
-
referrer?: string
|
|
483
|
-
referrerPolicy?: ReferrerPolicy
|
|
484
|
-
signal?: AbortSignal | null
|
|
485
|
-
window?: null
|
|
373
|
+
body?: BodyInit | null;
|
|
374
|
+
cache?: RequestCache;
|
|
375
|
+
credentials?: RequestCredentials;
|
|
376
|
+
integrity?: string;
|
|
377
|
+
keepalive?: boolean;
|
|
378
|
+
method?: string;
|
|
379
|
+
mode?: RequestMode;
|
|
380
|
+
priority?: RequestPriority;
|
|
381
|
+
redirect?: RequestRedirect;
|
|
382
|
+
referrer?: string;
|
|
383
|
+
referrerPolicy?: ReferrerPolicy;
|
|
384
|
+
signal?: AbortSignal | null;
|
|
385
|
+
window?: null;
|
|
486
386
|
};
|
|
487
387
|
getPreAuthorizationInformation(location: import("@jbrowse/core/util").UriLocation): Promise<{
|
|
488
388
|
internetAccountType: string;
|
|
@@ -492,7 +392,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
492
392
|
};
|
|
493
393
|
}>;
|
|
494
394
|
} & {
|
|
495
|
-
getFetcher(loc?: import("@jbrowse/core/util").UriLocation
|
|
395
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
496
396
|
} & {
|
|
497
397
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
498
398
|
} & {
|
|
@@ -539,44 +439,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
539
439
|
defaultValue: never[];
|
|
540
440
|
};
|
|
541
441
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
542
|
-
HTTPBasicInternetAccountModelFactory: (configSchema: import("
|
|
543
|
-
tokenType: {
|
|
544
|
-
description: string;
|
|
545
|
-
type: string;
|
|
546
|
-
defaultValue: string;
|
|
547
|
-
};
|
|
548
|
-
validateWithHEAD: {
|
|
549
|
-
description: string;
|
|
550
|
-
type: string;
|
|
551
|
-
defaultValue: boolean;
|
|
552
|
-
};
|
|
553
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
554
|
-
name: {
|
|
555
|
-
description: string;
|
|
556
|
-
type: string;
|
|
557
|
-
defaultValue: string;
|
|
558
|
-
};
|
|
559
|
-
description: {
|
|
560
|
-
description: string;
|
|
561
|
-
type: string;
|
|
562
|
-
defaultValue: string;
|
|
563
|
-
};
|
|
564
|
-
authHeader: {
|
|
565
|
-
description: string;
|
|
566
|
-
type: string;
|
|
567
|
-
defaultValue: string;
|
|
568
|
-
};
|
|
569
|
-
tokenType: {
|
|
570
|
-
description: string;
|
|
571
|
-
type: string;
|
|
572
|
-
defaultValue: string;
|
|
573
|
-
};
|
|
574
|
-
domains: {
|
|
575
|
-
description: string;
|
|
576
|
-
type: string;
|
|
577
|
-
defaultValue: never[];
|
|
578
|
-
};
|
|
579
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>) => import("mobx-state-tree").IModelType<{
|
|
442
|
+
HTTPBasicInternetAccountModelFactory: (configSchema: import("./HTTPBasicModel/configSchema").HTTPBasicInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
|
|
580
443
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
581
444
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
582
445
|
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
@@ -666,23 +529,23 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
666
529
|
retrieveToken(): string | null;
|
|
667
530
|
validateToken(token: string, _loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
668
531
|
} & {
|
|
669
|
-
getToken(location?: import("@jbrowse/core/util").UriLocation
|
|
532
|
+
getToken(location?: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
670
533
|
} & {
|
|
671
534
|
addAuthHeaderToInit(init: RequestInit | undefined, token: string): {
|
|
672
535
|
headers: Headers;
|
|
673
|
-
body?: BodyInit | null
|
|
674
|
-
cache?: RequestCache
|
|
675
|
-
credentials?: RequestCredentials
|
|
676
|
-
integrity?: string
|
|
677
|
-
keepalive?: boolean
|
|
678
|
-
method?: string
|
|
679
|
-
mode?: RequestMode
|
|
680
|
-
priority?: RequestPriority
|
|
681
|
-
redirect?: RequestRedirect
|
|
682
|
-
referrer?: string
|
|
683
|
-
referrerPolicy?: ReferrerPolicy
|
|
684
|
-
signal?: AbortSignal | null
|
|
685
|
-
window?: null
|
|
536
|
+
body?: BodyInit | null;
|
|
537
|
+
cache?: RequestCache;
|
|
538
|
+
credentials?: RequestCredentials;
|
|
539
|
+
integrity?: string;
|
|
540
|
+
keepalive?: boolean;
|
|
541
|
+
method?: string;
|
|
542
|
+
mode?: RequestMode;
|
|
543
|
+
priority?: RequestPriority;
|
|
544
|
+
redirect?: RequestRedirect;
|
|
545
|
+
referrer?: string;
|
|
546
|
+
referrerPolicy?: ReferrerPolicy;
|
|
547
|
+
signal?: AbortSignal | null;
|
|
548
|
+
window?: null;
|
|
686
549
|
};
|
|
687
550
|
getPreAuthorizationInformation(location: import("@jbrowse/core/util").UriLocation): Promise<{
|
|
688
551
|
internetAccountType: string;
|
|
@@ -692,7 +555,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
692
555
|
};
|
|
693
556
|
}>;
|
|
694
557
|
} & {
|
|
695
|
-
getFetcher(loc?: import("@jbrowse/core/util").UriLocation
|
|
558
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
696
559
|
} & {
|
|
697
560
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
698
561
|
} & {
|
|
@@ -790,95 +653,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
790
653
|
defaultValue: never[];
|
|
791
654
|
};
|
|
792
655
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
793
|
-
DropboxOAuthInternetAccountModelFactory: (configSchema: import("
|
|
794
|
-
authEndpoint: {
|
|
795
|
-
description: string;
|
|
796
|
-
type: string;
|
|
797
|
-
defaultValue: string;
|
|
798
|
-
};
|
|
799
|
-
tokenEndpoint: {
|
|
800
|
-
description: string;
|
|
801
|
-
type: string;
|
|
802
|
-
defaultValue: string;
|
|
803
|
-
};
|
|
804
|
-
needsPKCE: {
|
|
805
|
-
description: string;
|
|
806
|
-
type: string;
|
|
807
|
-
defaultValue: boolean;
|
|
808
|
-
};
|
|
809
|
-
domains: {
|
|
810
|
-
description: string;
|
|
811
|
-
type: string;
|
|
812
|
-
defaultValue: string[];
|
|
813
|
-
};
|
|
814
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
815
|
-
tokenType: {
|
|
816
|
-
description: string;
|
|
817
|
-
type: string;
|
|
818
|
-
defaultValue: string;
|
|
819
|
-
};
|
|
820
|
-
authEndpoint: {
|
|
821
|
-
description: string;
|
|
822
|
-
type: string;
|
|
823
|
-
defaultValue: string;
|
|
824
|
-
};
|
|
825
|
-
tokenEndpoint: {
|
|
826
|
-
description: string;
|
|
827
|
-
type: string;
|
|
828
|
-
defaultValue: string;
|
|
829
|
-
};
|
|
830
|
-
needsPKCE: {
|
|
831
|
-
description: string;
|
|
832
|
-
type: string;
|
|
833
|
-
defaultValue: boolean;
|
|
834
|
-
};
|
|
835
|
-
clientId: {
|
|
836
|
-
description: string;
|
|
837
|
-
type: string;
|
|
838
|
-
defaultValue: string;
|
|
839
|
-
};
|
|
840
|
-
scopes: {
|
|
841
|
-
description: string;
|
|
842
|
-
type: string;
|
|
843
|
-
defaultValue: string;
|
|
844
|
-
};
|
|
845
|
-
state: {
|
|
846
|
-
description: string;
|
|
847
|
-
type: string;
|
|
848
|
-
defaultValue: string;
|
|
849
|
-
};
|
|
850
|
-
responseType: {
|
|
851
|
-
description: string;
|
|
852
|
-
type: string;
|
|
853
|
-
defaultValue: string;
|
|
854
|
-
};
|
|
855
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
856
|
-
name: {
|
|
857
|
-
description: string;
|
|
858
|
-
type: string;
|
|
859
|
-
defaultValue: string;
|
|
860
|
-
};
|
|
861
|
-
description: {
|
|
862
|
-
description: string;
|
|
863
|
-
type: string;
|
|
864
|
-
defaultValue: string;
|
|
865
|
-
};
|
|
866
|
-
authHeader: {
|
|
867
|
-
description: string;
|
|
868
|
-
type: string;
|
|
869
|
-
defaultValue: string;
|
|
870
|
-
};
|
|
871
|
-
tokenType: {
|
|
872
|
-
description: string;
|
|
873
|
-
type: string;
|
|
874
|
-
defaultValue: string;
|
|
875
|
-
};
|
|
876
|
-
domains: {
|
|
877
|
-
description: string;
|
|
878
|
-
type: string;
|
|
879
|
-
defaultValue: never[];
|
|
880
|
-
};
|
|
881
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>) => import("mobx-state-tree").IModelType<{
|
|
656
|
+
DropboxOAuthInternetAccountModelFactory: (configSchema: import("./DropboxOAuthModel/configSchema").DropboxOAuthInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
|
|
882
657
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
883
658
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
884
659
|
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
@@ -1089,23 +864,23 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
1089
864
|
retrieveToken(): string | null;
|
|
1090
865
|
validateToken(token: string, _loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
1091
866
|
} & {
|
|
1092
|
-
getToken(location?: import("@jbrowse/core/util").UriLocation
|
|
867
|
+
getToken(location?: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
1093
868
|
} & {
|
|
1094
869
|
addAuthHeaderToInit(init: RequestInit | undefined, token: string): {
|
|
1095
870
|
headers: Headers;
|
|
1096
|
-
body?: BodyInit | null
|
|
1097
|
-
cache?: RequestCache
|
|
1098
|
-
credentials?: RequestCredentials
|
|
1099
|
-
integrity?: string
|
|
1100
|
-
keepalive?: boolean
|
|
1101
|
-
method?: string
|
|
1102
|
-
mode?: RequestMode
|
|
1103
|
-
priority?: RequestPriority
|
|
1104
|
-
redirect?: RequestRedirect
|
|
1105
|
-
referrer?: string
|
|
1106
|
-
referrerPolicy?: ReferrerPolicy
|
|
1107
|
-
signal?: AbortSignal | null
|
|
1108
|
-
window?: null
|
|
871
|
+
body?: BodyInit | null;
|
|
872
|
+
cache?: RequestCache;
|
|
873
|
+
credentials?: RequestCredentials;
|
|
874
|
+
integrity?: string;
|
|
875
|
+
keepalive?: boolean;
|
|
876
|
+
method?: string;
|
|
877
|
+
mode?: RequestMode;
|
|
878
|
+
priority?: RequestPriority;
|
|
879
|
+
redirect?: RequestRedirect;
|
|
880
|
+
referrer?: string;
|
|
881
|
+
referrerPolicy?: ReferrerPolicy;
|
|
882
|
+
signal?: AbortSignal | null;
|
|
883
|
+
window?: null;
|
|
1109
884
|
};
|
|
1110
885
|
getPreAuthorizationInformation(location: import("@jbrowse/core/util").UriLocation): Promise<{
|
|
1111
886
|
internetAccountType: string;
|
|
@@ -1115,7 +890,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
1115
890
|
};
|
|
1116
891
|
}>;
|
|
1117
892
|
} & {
|
|
1118
|
-
getFetcher(loc?: import("@jbrowse/core/util").UriLocation
|
|
893
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
1119
894
|
} & {
|
|
1120
895
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
1121
896
|
} & {
|
|
@@ -1138,17 +913,17 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
1138
913
|
} & {
|
|
1139
914
|
addMessageChannel(resolve: (token: string) => void, reject: (error: Error) => void): void;
|
|
1140
915
|
deleteMessageChannel(): void;
|
|
1141
|
-
finishOAuthWindow(event: MessageEvent
|
|
916
|
+
finishOAuthWindow(event: MessageEvent, resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
1142
917
|
useEndpointForAuthorization(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
1143
918
|
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
1144
919
|
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
1145
920
|
} & {
|
|
1146
|
-
getFetcher(loc?: import("@jbrowse/core/util").UriLocation
|
|
921
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
1147
922
|
} & {
|
|
1148
923
|
readonly toggleContents: import("react").JSX.Element;
|
|
1149
924
|
readonly selectorLabel: string;
|
|
1150
925
|
} & {
|
|
1151
|
-
getFetcher(location?: import("@jbrowse/core/util").UriLocation
|
|
926
|
+
getFetcher(location?: import("@jbrowse/core/util").UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
1152
927
|
validateToken(token: string, location: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
1153
928
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
1154
929
|
GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-authentication",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.1",
|
|
4
4
|
"description": "JBrowse 2 Authentication",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"distModule": "esm/index.js",
|
|
56
56
|
"srcModule": "src/index.ts",
|
|
57
57
|
"module": "esm/index.js",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "20f16ae5a56ae5e4806aaa373131e540b0b5b0fd"
|
|
59
59
|
}
|