@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
|
@@ -1,5 +1,109 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
|
-
declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration").
|
|
2
|
+
declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
/**
|
|
4
|
+
* #slot
|
|
5
|
+
*/
|
|
6
|
+
authEndpoint: {
|
|
7
|
+
description: string;
|
|
8
|
+
type: string;
|
|
9
|
+
defaultValue: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
14
|
+
tokenEndpoint: {
|
|
15
|
+
description: string;
|
|
16
|
+
type: string;
|
|
17
|
+
defaultValue: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* #slot
|
|
21
|
+
*/
|
|
22
|
+
needsPKCE: {
|
|
23
|
+
description: string;
|
|
24
|
+
type: string;
|
|
25
|
+
defaultValue: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* #slot
|
|
29
|
+
*/
|
|
30
|
+
domains: {
|
|
31
|
+
description: string;
|
|
32
|
+
type: string;
|
|
33
|
+
defaultValue: string[];
|
|
34
|
+
};
|
|
35
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
36
|
+
tokenType: {
|
|
37
|
+
description: string;
|
|
38
|
+
type: string;
|
|
39
|
+
defaultValue: string;
|
|
40
|
+
};
|
|
41
|
+
authEndpoint: {
|
|
42
|
+
description: string;
|
|
43
|
+
type: string;
|
|
44
|
+
defaultValue: string;
|
|
45
|
+
};
|
|
46
|
+
tokenEndpoint: {
|
|
47
|
+
description: string;
|
|
48
|
+
type: string;
|
|
49
|
+
defaultValue: string;
|
|
50
|
+
};
|
|
51
|
+
needsPKCE: {
|
|
52
|
+
description: string;
|
|
53
|
+
type: string;
|
|
54
|
+
defaultValue: boolean;
|
|
55
|
+
};
|
|
56
|
+
clientId: {
|
|
57
|
+
description: string;
|
|
58
|
+
type: string;
|
|
59
|
+
defaultValue: string;
|
|
60
|
+
};
|
|
61
|
+
scopes: {
|
|
62
|
+
description: string;
|
|
63
|
+
type: string; /**
|
|
64
|
+
* #baseConfiguration
|
|
65
|
+
*/
|
|
66
|
+
defaultValue: string;
|
|
67
|
+
};
|
|
68
|
+
state: {
|
|
69
|
+
description: string;
|
|
70
|
+
type: string;
|
|
71
|
+
defaultValue: string;
|
|
72
|
+
};
|
|
73
|
+
responseType: {
|
|
74
|
+
description: string;
|
|
75
|
+
type: string;
|
|
76
|
+
defaultValue: string;
|
|
77
|
+
};
|
|
78
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
79
|
+
name: {
|
|
80
|
+
description: string;
|
|
81
|
+
type: string;
|
|
82
|
+
defaultValue: string;
|
|
83
|
+
};
|
|
84
|
+
description: {
|
|
85
|
+
description: string;
|
|
86
|
+
type: string;
|
|
87
|
+
defaultValue: string; /**
|
|
88
|
+
* #slot
|
|
89
|
+
*/
|
|
90
|
+
};
|
|
91
|
+
authHeader: {
|
|
92
|
+
description: string;
|
|
93
|
+
type: string;
|
|
94
|
+
defaultValue: string;
|
|
95
|
+
};
|
|
96
|
+
tokenType: {
|
|
97
|
+
description: string;
|
|
98
|
+
type: string;
|
|
99
|
+
defaultValue: string;
|
|
100
|
+
};
|
|
101
|
+
domains: {
|
|
102
|
+
description: string;
|
|
103
|
+
type: string;
|
|
104
|
+
defaultValue: never[];
|
|
105
|
+
};
|
|
106
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
3
107
|
export type DropboxOAuthInternetAccountConfigModel = typeof DropboxOAuthConfigSchema;
|
|
4
108
|
export type DropboxOAuthInternetAccountConfig = Instance<DropboxOAuthInternetAccountConfigModel>;
|
|
5
109
|
export default DropboxOAuthConfigSchema;
|
|
@@ -50,14 +50,6 @@ const DropboxOAuthConfigSchema = (0, configuration_1.ConfigurationSchema)('Dropb
|
|
|
50
50
|
'getdropbox.com',
|
|
51
51
|
],
|
|
52
52
|
},
|
|
53
|
-
/**
|
|
54
|
-
* #slot
|
|
55
|
-
*/
|
|
56
|
-
hasRefreshToken: {
|
|
57
|
-
description: 'true if the endpoint can supply a refresh token',
|
|
58
|
-
type: 'boolean',
|
|
59
|
-
defaultValue: true,
|
|
60
|
-
},
|
|
61
53
|
}, {
|
|
62
54
|
/**
|
|
63
55
|
* #baseConfiguration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/DropboxOAuthModel/configSchema.ts"],"names":[],"mappings":";;;;;AAAA,+DAAiE;AAEjE,8EAA0D;AAE1D;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,wBAAwB,GAAG,IAAA,mCAAmB,EAClD,6BAA6B,EAC7B;IACE;;OAEG;IACH,YAAY,EAAE;QACZ,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,0CAA0C;KACzD;IACD;;OAEG;IACH,aAAa,EAAE;QACb,WAAW,EAAE,4CAA4C;QACzD,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,sCAAsC;KACrD;IACD;;OAEG;IACH,SAAS,EAAE;QACT,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;KACnB;IACD;;OAEG;IACH,OAAO,EAAE;QACP,WAAW,EACT,gEAAgE;QAClE,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE;YACZ,kBAAkB;YAClB,OAAO;YACP,aAAa;YACb,gBAAgB;YAChB,qBAAqB;YACrB,cAAc;YACd,gBAAgB;SACjB;KACF;
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/DropboxOAuthModel/configSchema.ts"],"names":[],"mappings":";;;;;AAAA,+DAAiE;AAEjE,8EAA0D;AAE1D;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,wBAAwB,GAAG,IAAA,mCAAmB,EAClD,6BAA6B,EAC7B;IACE;;OAEG;IACH,YAAY,EAAE;QACZ,WAAW,EAAE,yDAAyD;QACtE,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,0CAA0C;KACzD;IACD;;OAEG;IACH,aAAa,EAAE;QACb,WAAW,EAAE,4CAA4C;QACzD,IAAI,EAAE,QAAQ;QACd,YAAY,EAAE,sCAAsC;KACrD;IACD;;OAEG;IACH,SAAS,EAAE;QACT,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,SAAS;QACf,YAAY,EAAE,IAAI;KACnB;IACD;;OAEG;IACH,OAAO,EAAE;QACP,WAAW,EACT,gEAAgE;QAClE,IAAI,EAAE,aAAa;QACnB,YAAY,EAAE;YACZ,kBAAkB;YAClB,OAAO;YACP,aAAa;YACb,gBAAgB;YAChB,qBAAqB;YACrB,cAAc;YACd,gBAAgB;SACjB;KACF;CACF,EACD;IACE;;OAEG;IACH,iBAAiB,EAAE,sBAAiB;IACpC,eAAe,EAAE,IAAI;CACtB,CACF,CAAA;AAOD,kBAAe,wBAAwB,CAAA"}
|
|
@@ -2,19 +2,301 @@ import React from 'react';
|
|
|
2
2
|
import { UriLocation } from '@jbrowse/core/util/types';
|
|
3
3
|
import { SvgIconProps } from '@mui/material';
|
|
4
4
|
import { Instance } from 'mobx-state-tree';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
export declare function DropboxIcon(props: SvgIconProps): React.JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* #stateModel DropboxOAuthInternetAccount
|
|
8
|
+
*/
|
|
9
|
+
declare const stateModelFactory: (configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
10
|
+
authEndpoint: {
|
|
11
|
+
description: string;
|
|
12
|
+
type: string;
|
|
13
|
+
defaultValue: string;
|
|
14
|
+
};
|
|
15
|
+
tokenEndpoint: {
|
|
16
|
+
description: string;
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: string;
|
|
19
|
+
};
|
|
20
|
+
needsPKCE: {
|
|
21
|
+
description: string;
|
|
22
|
+
type: string;
|
|
23
|
+
defaultValue: boolean;
|
|
24
|
+
};
|
|
25
|
+
domains: {
|
|
26
|
+
description: string;
|
|
27
|
+
type: string;
|
|
28
|
+
defaultValue: string[];
|
|
29
|
+
};
|
|
30
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
31
|
+
tokenType: {
|
|
32
|
+
description: string;
|
|
33
|
+
type: string;
|
|
34
|
+
defaultValue: string;
|
|
35
|
+
};
|
|
36
|
+
authEndpoint: {
|
|
37
|
+
description: string;
|
|
38
|
+
type: string;
|
|
39
|
+
defaultValue: string;
|
|
40
|
+
};
|
|
41
|
+
tokenEndpoint: {
|
|
42
|
+
description: string;
|
|
43
|
+
type: string;
|
|
44
|
+
defaultValue: string;
|
|
45
|
+
};
|
|
46
|
+
needsPKCE: {
|
|
47
|
+
description: string;
|
|
48
|
+
type: string;
|
|
49
|
+
defaultValue: boolean;
|
|
50
|
+
};
|
|
51
|
+
clientId: {
|
|
52
|
+
description: string;
|
|
53
|
+
type: string;
|
|
54
|
+
defaultValue: string;
|
|
55
|
+
};
|
|
56
|
+
scopes: {
|
|
57
|
+
description: string;
|
|
58
|
+
type: string;
|
|
59
|
+
defaultValue: string;
|
|
60
|
+
};
|
|
61
|
+
state: {
|
|
62
|
+
description: string;
|
|
63
|
+
type: string;
|
|
64
|
+
defaultValue: string;
|
|
65
|
+
};
|
|
66
|
+
responseType: {
|
|
67
|
+
description: string;
|
|
68
|
+
type: string;
|
|
69
|
+
defaultValue: string;
|
|
70
|
+
};
|
|
71
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
72
|
+
name: {
|
|
73
|
+
description: string;
|
|
74
|
+
type: string;
|
|
75
|
+
defaultValue: string;
|
|
76
|
+
};
|
|
77
|
+
description: {
|
|
78
|
+
description: string;
|
|
79
|
+
type: string;
|
|
80
|
+
defaultValue: string;
|
|
81
|
+
};
|
|
82
|
+
authHeader: {
|
|
83
|
+
description: string;
|
|
84
|
+
type: string;
|
|
85
|
+
defaultValue: string;
|
|
86
|
+
};
|
|
87
|
+
tokenType: {
|
|
88
|
+
description: string;
|
|
89
|
+
type: string;
|
|
90
|
+
defaultValue: string;
|
|
91
|
+
};
|
|
92
|
+
domains: {
|
|
93
|
+
description: string;
|
|
94
|
+
type: string;
|
|
95
|
+
defaultValue: never[];
|
|
96
|
+
};
|
|
97
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>) => import("mobx-state-tree").IModelType<{
|
|
8
98
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
9
99
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
100
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
101
|
+
name: {
|
|
102
|
+
description: string;
|
|
103
|
+
type: string;
|
|
104
|
+
defaultValue: string;
|
|
105
|
+
};
|
|
106
|
+
description: {
|
|
107
|
+
description: string;
|
|
108
|
+
type: string;
|
|
109
|
+
defaultValue: string;
|
|
110
|
+
};
|
|
111
|
+
authHeader: {
|
|
112
|
+
description: string;
|
|
113
|
+
type: string;
|
|
114
|
+
defaultValue: string;
|
|
115
|
+
};
|
|
116
|
+
tokenType: {
|
|
117
|
+
description: string; /**
|
|
118
|
+
* #property
|
|
119
|
+
*/
|
|
120
|
+
type: string;
|
|
121
|
+
defaultValue: string;
|
|
122
|
+
};
|
|
123
|
+
domains: {
|
|
124
|
+
description: string;
|
|
125
|
+
type: string;
|
|
126
|
+
defaultValue: never[];
|
|
127
|
+
};
|
|
128
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
10
129
|
} & {
|
|
11
130
|
type: import("mobx-state-tree").ISimpleType<"OAuthInternetAccount">;
|
|
12
|
-
configuration: import("
|
|
131
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
132
|
+
tokenType: {
|
|
133
|
+
description: string;
|
|
134
|
+
type: string;
|
|
135
|
+
defaultValue: string;
|
|
136
|
+
};
|
|
137
|
+
authEndpoint: {
|
|
138
|
+
description: string;
|
|
139
|
+
type: string;
|
|
140
|
+
defaultValue: string;
|
|
141
|
+
};
|
|
142
|
+
tokenEndpoint: {
|
|
143
|
+
description: string;
|
|
144
|
+
type: string;
|
|
145
|
+
defaultValue: string;
|
|
146
|
+
};
|
|
147
|
+
needsPKCE: {
|
|
148
|
+
description: string;
|
|
149
|
+
type: string;
|
|
150
|
+
defaultValue: boolean;
|
|
151
|
+
};
|
|
152
|
+
clientId: {
|
|
153
|
+
description: string;
|
|
154
|
+
type: string;
|
|
155
|
+
defaultValue: string;
|
|
156
|
+
};
|
|
157
|
+
scopes: {
|
|
158
|
+
description: string;
|
|
159
|
+
type: string;
|
|
160
|
+
defaultValue: string;
|
|
161
|
+
};
|
|
162
|
+
state: {
|
|
163
|
+
description: string;
|
|
164
|
+
type: string;
|
|
165
|
+
defaultValue: string;
|
|
166
|
+
};
|
|
167
|
+
responseType: {
|
|
168
|
+
description: string;
|
|
169
|
+
type: string;
|
|
170
|
+
defaultValue: string;
|
|
171
|
+
};
|
|
172
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
173
|
+
name: {
|
|
174
|
+
description: string;
|
|
175
|
+
type: string;
|
|
176
|
+
defaultValue: string;
|
|
177
|
+
};
|
|
178
|
+
description: {
|
|
179
|
+
description: string;
|
|
180
|
+
type: string;
|
|
181
|
+
defaultValue: string;
|
|
182
|
+
};
|
|
183
|
+
authHeader: {
|
|
184
|
+
description: string;
|
|
185
|
+
type: string;
|
|
186
|
+
defaultValue: string;
|
|
187
|
+
};
|
|
188
|
+
tokenType: {
|
|
189
|
+
description: string;
|
|
190
|
+
type: string;
|
|
191
|
+
defaultValue: string;
|
|
192
|
+
};
|
|
193
|
+
domains: {
|
|
194
|
+
description: string;
|
|
195
|
+
type: string;
|
|
196
|
+
defaultValue: never[];
|
|
197
|
+
};
|
|
198
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
13
199
|
} & {
|
|
200
|
+
/**
|
|
201
|
+
* #property
|
|
202
|
+
*/
|
|
14
203
|
type: import("mobx-state-tree").ISimpleType<"DropboxOAuthInternetAccount">;
|
|
15
|
-
|
|
204
|
+
/**
|
|
205
|
+
* #property
|
|
206
|
+
*/
|
|
207
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
208
|
+
authEndpoint: {
|
|
209
|
+
description: string;
|
|
210
|
+
type: string;
|
|
211
|
+
defaultValue: string;
|
|
212
|
+
};
|
|
213
|
+
tokenEndpoint: {
|
|
214
|
+
description: string;
|
|
215
|
+
type: string;
|
|
216
|
+
defaultValue: string;
|
|
217
|
+
};
|
|
218
|
+
needsPKCE: {
|
|
219
|
+
description: string;
|
|
220
|
+
type: string;
|
|
221
|
+
defaultValue: boolean;
|
|
222
|
+
};
|
|
223
|
+
domains: {
|
|
224
|
+
description: string;
|
|
225
|
+
type: string;
|
|
226
|
+
defaultValue: string[];
|
|
227
|
+
};
|
|
228
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
229
|
+
tokenType: {
|
|
230
|
+
description: string;
|
|
231
|
+
type: string;
|
|
232
|
+
defaultValue: string;
|
|
233
|
+
};
|
|
234
|
+
authEndpoint: {
|
|
235
|
+
description: string;
|
|
236
|
+
type: string;
|
|
237
|
+
defaultValue: string;
|
|
238
|
+
};
|
|
239
|
+
tokenEndpoint: {
|
|
240
|
+
description: string;
|
|
241
|
+
type: string;
|
|
242
|
+
defaultValue: string;
|
|
243
|
+
};
|
|
244
|
+
needsPKCE: {
|
|
245
|
+
description: string;
|
|
246
|
+
type: string;
|
|
247
|
+
defaultValue: boolean;
|
|
248
|
+
};
|
|
249
|
+
clientId: {
|
|
250
|
+
description: string;
|
|
251
|
+
type: string;
|
|
252
|
+
defaultValue: string;
|
|
253
|
+
};
|
|
254
|
+
scopes: {
|
|
255
|
+
description: string;
|
|
256
|
+
type: string;
|
|
257
|
+
defaultValue: string;
|
|
258
|
+
};
|
|
259
|
+
state: {
|
|
260
|
+
description: string;
|
|
261
|
+
type: string;
|
|
262
|
+
defaultValue: string;
|
|
263
|
+
};
|
|
264
|
+
responseType: {
|
|
265
|
+
description: string;
|
|
266
|
+
type: string;
|
|
267
|
+
defaultValue: string;
|
|
268
|
+
};
|
|
269
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
270
|
+
name: {
|
|
271
|
+
description: string;
|
|
272
|
+
type: string;
|
|
273
|
+
defaultValue: string;
|
|
274
|
+
};
|
|
275
|
+
description: {
|
|
276
|
+
description: string;
|
|
277
|
+
type: string;
|
|
278
|
+
defaultValue: string;
|
|
279
|
+
};
|
|
280
|
+
authHeader: {
|
|
281
|
+
description: string;
|
|
282
|
+
type: string;
|
|
283
|
+
defaultValue: string;
|
|
284
|
+
};
|
|
285
|
+
tokenType: {
|
|
286
|
+
description: string;
|
|
287
|
+
type: string;
|
|
288
|
+
defaultValue: string;
|
|
289
|
+
};
|
|
290
|
+
domains: {
|
|
291
|
+
description: string;
|
|
292
|
+
type: string;
|
|
293
|
+
defaultValue: never[];
|
|
294
|
+
};
|
|
295
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
16
296
|
}, {
|
|
17
|
-
readonly name: string;
|
|
297
|
+
readonly name: string; /**
|
|
298
|
+
* #getter
|
|
299
|
+
*/
|
|
18
300
|
readonly description: string;
|
|
19
301
|
readonly internetAccountId: string;
|
|
20
302
|
readonly authHeader: string;
|
|
@@ -71,7 +353,6 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
71
353
|
readonly scopes: string;
|
|
72
354
|
state(): string | undefined;
|
|
73
355
|
readonly responseType: "code" | "token";
|
|
74
|
-
readonly hasRefreshToken: boolean;
|
|
75
356
|
readonly refreshTokenKey: string;
|
|
76
357
|
} & {
|
|
77
358
|
storeRefreshToken(refreshToken: string): void;
|
|
@@ -87,10 +368,25 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
87
368
|
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): Promise<void>;
|
|
88
369
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
89
370
|
} & {
|
|
90
|
-
|
|
371
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
372
|
+
} & {
|
|
373
|
+
/**
|
|
374
|
+
* #getter
|
|
375
|
+
* The FileSelector icon for Dropbox
|
|
376
|
+
*/
|
|
377
|
+
readonly toggleContents: React.JSX.Element;
|
|
378
|
+
/**
|
|
379
|
+
* #getter
|
|
380
|
+
*/
|
|
91
381
|
readonly selectorLabel: string;
|
|
92
382
|
} & {
|
|
383
|
+
/**
|
|
384
|
+
* #method
|
|
385
|
+
*/
|
|
93
386
|
getFetcher(location?: UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
387
|
+
/**
|
|
388
|
+
* #action
|
|
389
|
+
*/
|
|
94
390
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
95
391
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
96
392
|
export default stateModelFactory;
|
|
@@ -10,57 +10,47 @@ const material_1 = require("@mui/material");
|
|
|
10
10
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
11
11
|
const model_1 = __importDefault(require("../OAuthModel/model"));
|
|
12
12
|
const OAuthModel_1 = require("../OAuthModel");
|
|
13
|
-
|
|
14
|
-
const dropboxErrorMessages = {
|
|
15
|
-
shared_link_not_found: "The shared link wasn't found.",
|
|
16
|
-
shared_link_access_denied: 'The caller is not allowed to access this shared link.',
|
|
17
|
-
unsupported_link_type: 'This type of link is not supported; use files/export instead.',
|
|
18
|
-
shared_link_is_directory: 'Directories cannot be retrieved by this endpoint.',
|
|
19
|
-
};
|
|
13
|
+
const util_1 = require("./util");
|
|
20
14
|
function DropboxIcon(props) {
|
|
21
15
|
return (react_1.default.createElement(material_1.SvgIcon, { ...props },
|
|
22
16
|
react_1.default.createElement("path", { d: "M3 6.2L8 9.39L13 6.2L8 3L3 6.2M13 6.2L18 9.39L23 6.2L18 3L13 6.2M3 12.55L8 15.74L13 12.55L8 9.35L3 12.55M18 9.35L13 12.55L18 15.74L23 12.55L18 9.35M8.03 16.8L13.04 20L18.04 16.8L13.04 13.61L8.03 16.8Z" })));
|
|
23
17
|
}
|
|
24
18
|
exports.DropboxIcon = DropboxIcon;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
errorMessage = await response.text();
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
errorMessage = '';
|
|
32
|
-
}
|
|
33
|
-
if (errorMessage) {
|
|
34
|
-
let errorMessageParsed;
|
|
35
|
-
try {
|
|
36
|
-
errorMessageParsed = JSON.parse(errorMessage);
|
|
37
|
-
}
|
|
38
|
-
catch (error) {
|
|
39
|
-
errorMessageParsed = undefined;
|
|
40
|
-
}
|
|
41
|
-
if (errorMessageParsed) {
|
|
42
|
-
const messageTag = errorMessageParsed.error['.tag'];
|
|
43
|
-
errorMessage = dropboxErrorMessages[messageTag] || messageTag;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return `Network response failure — ${response.status} (${response.statusText})${errorMessage ? ` (${errorMessage})` : ''}`;
|
|
47
|
-
}
|
|
19
|
+
/**
|
|
20
|
+
* #stateModel DropboxOAuthInternetAccount
|
|
21
|
+
*/
|
|
48
22
|
const stateModelFactory = (configSchema) => {
|
|
49
23
|
return (0, model_1.default)(OAuthModel_1.configSchema)
|
|
50
24
|
.named('DropboxOAuthInternetAccount')
|
|
51
25
|
.props({
|
|
26
|
+
/**
|
|
27
|
+
* #property
|
|
28
|
+
*/
|
|
52
29
|
type: mobx_state_tree_1.types.literal('DropboxOAuthInternetAccount'),
|
|
30
|
+
/**
|
|
31
|
+
* #property
|
|
32
|
+
*/
|
|
53
33
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
54
34
|
})
|
|
55
35
|
.views(() => ({
|
|
36
|
+
/**
|
|
37
|
+
* #getter
|
|
38
|
+
* The FileSelector icon for Dropbox
|
|
39
|
+
*/
|
|
56
40
|
get toggleContents() {
|
|
57
41
|
return react_1.default.createElement(DropboxIcon, null);
|
|
58
42
|
},
|
|
43
|
+
/**
|
|
44
|
+
* #getter
|
|
45
|
+
*/
|
|
59
46
|
get selectorLabel() {
|
|
60
47
|
return 'Enter Dropbox share link';
|
|
61
48
|
},
|
|
62
49
|
}))
|
|
63
50
|
.actions(self => ({
|
|
51
|
+
/**
|
|
52
|
+
* #method
|
|
53
|
+
*/
|
|
64
54
|
getFetcher(location) {
|
|
65
55
|
return async (input, init) => {
|
|
66
56
|
const authToken = await self.getToken(location);
|
|
@@ -68,12 +58,14 @@ const stateModelFactory = (configSchema) => {
|
|
|
68
58
|
newInit.headers.append('Dropbox-API-Arg', JSON.stringify({ url: input }));
|
|
69
59
|
const response = await fetch('https://content.dropboxapi.com/2/sharing/get_shared_link_file', newInit);
|
|
70
60
|
if (!response.ok) {
|
|
71
|
-
|
|
72
|
-
throw new Error(message);
|
|
61
|
+
throw new Error(await (0, util_1.getDescriptiveErrorMessage)(response));
|
|
73
62
|
}
|
|
74
63
|
return response;
|
|
75
64
|
};
|
|
76
65
|
},
|
|
66
|
+
/**
|
|
67
|
+
* #action
|
|
68
|
+
*/
|
|
77
69
|
async validateToken(token, location) {
|
|
78
70
|
const response = await fetch('https://api.dropboxapi.com/2/sharing/get_shared_link_metadata', {
|
|
79
71
|
method: 'POST',
|
|
@@ -86,14 +78,13 @@ const stateModelFactory = (configSchema) => {
|
|
|
86
78
|
}),
|
|
87
79
|
});
|
|
88
80
|
if (!response.ok) {
|
|
89
|
-
const refreshToken = self.
|
|
81
|
+
const refreshToken = self.retrieveRefreshToken();
|
|
90
82
|
if (refreshToken) {
|
|
91
83
|
self.removeRefreshToken();
|
|
92
84
|
const newToken = await self.exchangeRefreshForAccessToken(refreshToken);
|
|
93
85
|
return this.validateToken(newToken, location);
|
|
94
86
|
}
|
|
95
|
-
|
|
96
|
-
throw new Error(`Token could not be validated. ${message}`);
|
|
87
|
+
throw new Error(await (0, util_1.getDescriptiveErrorMessage)(response, 'Token could not be validated'));
|
|
97
88
|
}
|
|
98
89
|
return token;
|
|
99
90
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/DropboxOAuthModel/model.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,+DAAoE;AAEpE,4CAAqD;AACrD,qDAAiD;
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/DropboxOAuthModel/model.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getDescriptiveErrorMessage(response: Response, reason?: string): Promise<string>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDescriptiveErrorMessage = void 0;
|
|
4
|
+
const util_1 = require("../util");
|
|
5
|
+
/**
|
|
6
|
+
* Error messages from
|
|
7
|
+
* https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file
|
|
8
|
+
* */
|
|
9
|
+
const dropboxErrorMessages = {
|
|
10
|
+
shared_link_not_found: "The shared link wasn't found.",
|
|
11
|
+
shared_link_access_denied: 'The caller is not allowed to access this shared link.',
|
|
12
|
+
unsupported_link_type: 'This type of link is not supported; use files/export instead.',
|
|
13
|
+
shared_link_is_directory: 'Directories cannot be retrieved by this endpoint.',
|
|
14
|
+
};
|
|
15
|
+
async function getDescriptiveErrorMessage(response, reason) {
|
|
16
|
+
let errorMessage = '';
|
|
17
|
+
try {
|
|
18
|
+
const err = JSON.parse(await response.text());
|
|
19
|
+
const tag = err.error['.tag'];
|
|
20
|
+
errorMessage = dropboxErrorMessages[tag] || tag;
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
/* do nothing */
|
|
24
|
+
}
|
|
25
|
+
return (0, util_1.getResponseError)({ response, reason, statusText: errorMessage });
|
|
26
|
+
}
|
|
27
|
+
exports.getDescriptiveErrorMessage = getDescriptiveErrorMessage;
|
|
28
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../../src/DropboxOAuthModel/util.ts"],"names":[],"mappings":";;;AAAA,kCAA0C;AAS1C;;;KAGK;AACL,MAAM,oBAAoB,GAAuC;IAC/D,qBAAqB,EAAE,+BAA+B;IACtD,yBAAyB,EACvB,uDAAuD;IACzD,qBAAqB,EACnB,+DAA+D;IACjE,wBAAwB,EAAE,mDAAmD;CAC9E,CAAA;AAEM,KAAK,UAAU,0BAA0B,CAC9C,QAAkB,EAClB,MAAe;IAEf,IAAI,YAAY,GAAG,EAAE,CAAA;IACrB,IAAI;QACF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAiB,CAAA;QAC7D,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAC7B,YAAY,GAAG,oBAAoB,CAAC,GAAG,CAAC,IAAI,GAAG,CAAA;KAChD;IAAC,OAAO,KAAK,EAAE;QACd,gBAAgB;KACjB;IACD,OAAO,IAAA,uBAAgB,EAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC,CAAA;AACzE,CAAC;AAbD,gEAaC"}
|
|
@@ -29,17 +29,16 @@ const material_1 = require("@mui/material");
|
|
|
29
29
|
const ui_1 = require("@jbrowse/core/ui");
|
|
30
30
|
const ExternalTokenEntryForm = ({ internetAccountId, handleClose, }) => {
|
|
31
31
|
const [token, setToken] = (0, react_1.useState)('');
|
|
32
|
-
return (react_1.default.createElement(
|
|
33
|
-
react_1.default.createElement(
|
|
34
|
-
react_1.default.createElement(material_1.
|
|
35
|
-
|
|
36
|
-
react_1.default.createElement(material_1.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
react_1.default.createElement(material_1.Button, { variant: "contained", color: "primary", onClick: () => handleClose() }, "Cancel")))));
|
|
32
|
+
return (react_1.default.createElement(ui_1.Dialog, { open: true, maxWidth: "xl", "data-testid": "externalToken-form", title: `Enter token for ${internetAccountId}` },
|
|
33
|
+
react_1.default.createElement(material_1.DialogContent, { style: { display: 'flex', flexDirection: 'column' } },
|
|
34
|
+
react_1.default.createElement(material_1.TextField, { required: true, label: "Enter Token", variant: "outlined", inputProps: { 'data-testid': 'entry-externalToken' }, onChange: event => setToken(event.target.value), margin: "dense" })),
|
|
35
|
+
react_1.default.createElement(material_1.DialogActions, null,
|
|
36
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", color: "primary", type: "submit", disabled: !token, onClick: () => {
|
|
37
|
+
if (token) {
|
|
38
|
+
handleClose(token);
|
|
39
|
+
}
|
|
40
|
+
} }, "Add"),
|
|
41
|
+
react_1.default.createElement(material_1.Button, { variant: "contained", color: "secondary", onClick: () => handleClose() }, "Cancel"))));
|
|
43
42
|
};
|
|
44
43
|
exports.ExternalTokenEntryForm = ExternalTokenEntryForm;
|
|
45
44
|
//# sourceMappingURL=ExternalTokenEntryForm.js.map
|