@jbrowse/plugin-authentication 3.6.5 → 4.0.0
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/esm/DropboxOAuthModel/configSchema.d.ts +5 -5
- package/esm/DropboxOAuthModel/configSchema.js +1 -1
- package/esm/DropboxOAuthModel/index.d.ts +2 -2
- package/esm/DropboxOAuthModel/index.js +2 -2
- package/esm/DropboxOAuthModel/model.d.ts +18 -18
- package/esm/DropboxOAuthModel/model.js +5 -5
- package/esm/DropboxOAuthModel/util.js +1 -1
- package/esm/ExternalTokenModel/configSchema.d.ts +4 -4
- package/esm/ExternalTokenModel/index.d.ts +2 -2
- package/esm/ExternalTokenModel/index.js +2 -2
- package/esm/ExternalTokenModel/model.d.ts +13 -13
- package/esm/ExternalTokenModel/model.js +2 -2
- package/esm/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +1 -0
- package/esm/GoogleDriveOAuthModel/configSchema.d.ts +5 -5
- package/esm/GoogleDriveOAuthModel/configSchema.js +1 -1
- package/esm/GoogleDriveOAuthModel/index.d.ts +2 -2
- package/esm/GoogleDriveOAuthModel/index.js +2 -2
- package/esm/GoogleDriveOAuthModel/model.d.ts +19 -19
- package/esm/GoogleDriveOAuthModel/model.js +7 -7
- package/esm/GoogleDriveOAuthModel/util.js +1 -1
- package/esm/HTTPBasicModel/configSchema.d.ts +4 -4
- package/esm/HTTPBasicModel/index.d.ts +2 -2
- package/esm/HTTPBasicModel/index.js +2 -2
- package/esm/HTTPBasicModel/model.d.ts +13 -13
- package/esm/HTTPBasicModel/model.js +3 -3
- package/esm/OAuthModel/configSchema.d.ts +4 -4
- package/esm/OAuthModel/index.d.ts +2 -2
- package/esm/OAuthModel/index.js +2 -2
- package/esm/OAuthModel/model.d.ts +12 -12
- package/esm/OAuthModel/model.js +3 -3
- package/esm/OAuthModel/util.js +1 -2
- package/esm/index.d.ts +68 -68
- package/esm/index.js +23 -26
- package/esm/util.js +1 -1
- package/package.json +23 -30
- package/dist/DropboxOAuthModel/DropboxIcon.d.ts +0 -2
- package/dist/DropboxOAuthModel/DropboxIcon.js +0 -8
- package/dist/DropboxOAuthModel/configSchema.d.ts +0 -93
- package/dist/DropboxOAuthModel/configSchema.js +0 -42
- package/dist/DropboxOAuthModel/index.d.ts +0 -2
- package/dist/DropboxOAuthModel/index.js +0 -10
- package/dist/DropboxOAuthModel/model.d.ts +0 -279
- package/dist/DropboxOAuthModel/model.js +0 -65
- package/dist/DropboxOAuthModel/util.d.ts +0 -1
- package/dist/DropboxOAuthModel/util.js +0 -21
- package/dist/ExternalTokenModel/ExternalTokenEntryForm.d.ts +0 -4
- package/dist/ExternalTokenModel/ExternalTokenEntryForm.js +0 -24
- package/dist/ExternalTokenModel/configSchema.d.ts +0 -37
- package/dist/ExternalTokenModel/configSchema.js +0 -16
- package/dist/ExternalTokenModel/index.d.ts +0 -2
- package/dist/ExternalTokenModel/index.js +0 -10
- package/dist/ExternalTokenModel/model.d.ts +0 -126
- package/dist/ExternalTokenModel/model.js +0 -57
- package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.d.ts +0 -15
- package/dist/GoogleDriveOAuthModel/GoogleDriveFilehandle.js +0 -19
- package/dist/GoogleDriveOAuthModel/GoogleDriveIcon.d.ts +0 -2
- package/dist/GoogleDriveOAuthModel/GoogleDriveIcon.js +0 -8
- package/dist/GoogleDriveOAuthModel/configSchema.d.ts +0 -93
- package/dist/GoogleDriveOAuthModel/configSchema.js +0 -34
- package/dist/GoogleDriveOAuthModel/index.d.ts +0 -2
- package/dist/GoogleDriveOAuthModel/index.js +0 -10
- package/dist/GoogleDriveOAuthModel/model.d.ts +0 -283
- package/dist/GoogleDriveOAuthModel/model.js +0 -72
- package/dist/GoogleDriveOAuthModel/util.d.ts +0 -1
- package/dist/GoogleDriveOAuthModel/util.js +0 -14
- package/dist/HTTPBasicModel/HTTPBasicLoginForm.d.ts +0 -4
- package/dist/HTTPBasicModel/HTTPBasicLoginForm.js +0 -32
- package/dist/HTTPBasicModel/configSchema.d.ts +0 -42
- package/dist/HTTPBasicModel/configSchema.js +0 -21
- package/dist/HTTPBasicModel/index.d.ts +0 -2
- package/dist/HTTPBasicModel/index.js +0 -10
- package/dist/HTTPBasicModel/model.d.ts +0 -131
- package/dist/HTTPBasicModel/model.js +0 -54
- package/dist/OAuthModel/configSchema.d.ts +0 -72
- package/dist/OAuthModel/configSchema.js +0 -51
- package/dist/OAuthModel/index.d.ts +0 -2
- package/dist/OAuthModel/index.js +0 -10
- package/dist/OAuthModel/model.d.ts +0 -182
- package/dist/OAuthModel/model.js +0 -289
- package/dist/OAuthModel/util.d.ts +0 -7
- package/dist/OAuthModel/util.js +0 -66
- package/dist/index.d.ts +0 -1026
- package/dist/index.js +0 -84
- package/dist/util.d.ts +0 -6
- package/dist/util.js +0 -21
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
5
|
-
function x() { }
|
|
6
|
-
const ExternalTokenConfigSchema = (0, configuration_1.ConfigurationSchema)('ExternalTokenInternetAccount', {
|
|
7
|
-
validateWithHEAD: {
|
|
8
|
-
description: 'validate the token with a HEAD request before using it',
|
|
9
|
-
type: 'boolean',
|
|
10
|
-
defaultValue: true,
|
|
11
|
-
},
|
|
12
|
-
}, {
|
|
13
|
-
baseConfiguration: models_1.BaseInternetAccountConfig,
|
|
14
|
-
explicitlyTyped: true,
|
|
15
|
-
});
|
|
16
|
-
exports.default = ExternalTokenConfigSchema;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.modelFactory = exports.configSchema = void 0;
|
|
7
|
-
var configSchema_1 = require("./configSchema");
|
|
8
|
-
Object.defineProperty(exports, "configSchema", { enumerable: true, get: function () { return __importDefault(configSchema_1).default; } });
|
|
9
|
-
var model_1 = require("./model");
|
|
10
|
-
Object.defineProperty(exports, "modelFactory", { enumerable: true, get: function () { return __importDefault(model_1).default; } });
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import type { ExternalTokenInternetAccountConfigModel } from './configSchema';
|
|
2
|
-
import type { UriLocation } from '@jbrowse/core/util/types';
|
|
3
|
-
import type { Instance } from 'mobx-state-tree';
|
|
4
|
-
declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConfigModel) => import("mobx-state-tree").IModelType<{
|
|
5
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
|
-
type: import("mobx-state-tree").ISimpleType<string>;
|
|
7
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
|
-
name: {
|
|
9
|
-
description: string;
|
|
10
|
-
type: string;
|
|
11
|
-
defaultValue: string;
|
|
12
|
-
};
|
|
13
|
-
description: {
|
|
14
|
-
description: string;
|
|
15
|
-
type: string;
|
|
16
|
-
defaultValue: string;
|
|
17
|
-
};
|
|
18
|
-
authHeader: {
|
|
19
|
-
description: string;
|
|
20
|
-
type: string;
|
|
21
|
-
defaultValue: string;
|
|
22
|
-
};
|
|
23
|
-
tokenType: {
|
|
24
|
-
description: string;
|
|
25
|
-
type: string;
|
|
26
|
-
defaultValue: string;
|
|
27
|
-
};
|
|
28
|
-
domains: {
|
|
29
|
-
description: string;
|
|
30
|
-
type: string;
|
|
31
|
-
defaultValue: never[];
|
|
32
|
-
};
|
|
33
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>;
|
|
34
|
-
} & {
|
|
35
|
-
type: import("mobx-state-tree").ISimpleType<"ExternalTokenInternetAccount">;
|
|
36
|
-
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
37
|
-
validateWithHEAD: {
|
|
38
|
-
description: string;
|
|
39
|
-
type: string;
|
|
40
|
-
defaultValue: boolean;
|
|
41
|
-
};
|
|
42
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
43
|
-
name: {
|
|
44
|
-
description: string;
|
|
45
|
-
type: string;
|
|
46
|
-
defaultValue: string;
|
|
47
|
-
};
|
|
48
|
-
description: {
|
|
49
|
-
description: string;
|
|
50
|
-
type: string;
|
|
51
|
-
defaultValue: string;
|
|
52
|
-
};
|
|
53
|
-
authHeader: {
|
|
54
|
-
description: string;
|
|
55
|
-
type: string;
|
|
56
|
-
defaultValue: string;
|
|
57
|
-
};
|
|
58
|
-
tokenType: {
|
|
59
|
-
description: string;
|
|
60
|
-
type: string;
|
|
61
|
-
defaultValue: string;
|
|
62
|
-
};
|
|
63
|
-
domains: {
|
|
64
|
-
description: string;
|
|
65
|
-
type: string;
|
|
66
|
-
defaultValue: never[];
|
|
67
|
-
};
|
|
68
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>;
|
|
69
|
-
}, {
|
|
70
|
-
readonly name: string;
|
|
71
|
-
readonly description: string;
|
|
72
|
-
readonly internetAccountId: string;
|
|
73
|
-
readonly authHeader: string;
|
|
74
|
-
readonly tokenType: string;
|
|
75
|
-
readonly domains: string[];
|
|
76
|
-
readonly toggleContents: React.ReactNode;
|
|
77
|
-
readonly SelectorComponent: import("@jbrowse/core/util/types").AnyReactComponentType | undefined;
|
|
78
|
-
readonly selectorLabel: string | undefined;
|
|
79
|
-
} & {
|
|
80
|
-
handlesLocation(location: UriLocation): boolean;
|
|
81
|
-
readonly tokenKey: string;
|
|
82
|
-
} & {
|
|
83
|
-
getTokenFromUser(_resolve: (token: string) => void, _reject: (error: Error) => void): void;
|
|
84
|
-
storeToken(token: string): void;
|
|
85
|
-
removeToken(): void;
|
|
86
|
-
retrieveToken(): string | null;
|
|
87
|
-
validateToken(token: string, _loc: UriLocation): Promise<string>;
|
|
88
|
-
} & {
|
|
89
|
-
getToken(location?: UriLocation): Promise<string>;
|
|
90
|
-
} & {
|
|
91
|
-
addAuthHeaderToInit(init?: RequestInit, token?: string): {
|
|
92
|
-
headers: Headers;
|
|
93
|
-
body?: BodyInit | null;
|
|
94
|
-
cache?: RequestCache;
|
|
95
|
-
credentials?: RequestCredentials;
|
|
96
|
-
integrity?: string;
|
|
97
|
-
keepalive?: boolean;
|
|
98
|
-
method?: string;
|
|
99
|
-
mode?: RequestMode;
|
|
100
|
-
priority?: RequestPriority;
|
|
101
|
-
redirect?: RequestRedirect;
|
|
102
|
-
referrer?: string;
|
|
103
|
-
referrerPolicy?: ReferrerPolicy;
|
|
104
|
-
signal?: AbortSignal | null;
|
|
105
|
-
window?: null;
|
|
106
|
-
};
|
|
107
|
-
getPreAuthorizationInformation(location: UriLocation): Promise<{
|
|
108
|
-
internetAccountType: string;
|
|
109
|
-
authInfo: {
|
|
110
|
-
token: string;
|
|
111
|
-
configuration: any;
|
|
112
|
-
};
|
|
113
|
-
}>;
|
|
114
|
-
} & {
|
|
115
|
-
getFetcher(loc?: UriLocation): (input: RequestInfo, init?: RequestInit) => Promise<Response>;
|
|
116
|
-
} & {
|
|
117
|
-
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
118
|
-
} & {
|
|
119
|
-
readonly validateWithHEAD: boolean;
|
|
120
|
-
} & {
|
|
121
|
-
getTokenFromUser(resolve: (token: string) => void, reject: (error: Error) => void): void;
|
|
122
|
-
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
123
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
124
|
-
export default stateModelFactory;
|
|
125
|
-
export type ExternalTokenStateModel = ReturnType<typeof stateModelFactory>;
|
|
126
|
-
export type ExternalTokenModel = Instance<ExternalTokenStateModel>;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
5
|
-
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
|
-
const ExternalTokenEntryForm_1 = require("./ExternalTokenEntryForm");
|
|
7
|
-
const stateModelFactory = (configSchema) => {
|
|
8
|
-
return models_1.InternetAccount.named('ExternalTokenInternetAccount')
|
|
9
|
-
.props({
|
|
10
|
-
type: mobx_state_tree_1.types.literal('ExternalTokenInternetAccount'),
|
|
11
|
-
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
12
|
-
})
|
|
13
|
-
.views(self => ({
|
|
14
|
-
get validateWithHEAD() {
|
|
15
|
-
return (0, configuration_1.getConf)(self, 'validateWithHEAD');
|
|
16
|
-
},
|
|
17
|
-
}))
|
|
18
|
-
.actions(self => ({
|
|
19
|
-
getTokenFromUser(resolve, reject) {
|
|
20
|
-
const { session } = (0, mobx_state_tree_1.getRoot)(self);
|
|
21
|
-
session.queueDialog((doneCallback) => [
|
|
22
|
-
ExternalTokenEntryForm_1.ExternalTokenEntryForm,
|
|
23
|
-
{
|
|
24
|
-
internetAccountId: self.internetAccountId,
|
|
25
|
-
handleClose: (token) => {
|
|
26
|
-
if (token) {
|
|
27
|
-
resolve(token);
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
reject(new Error('user cancelled entry'));
|
|
31
|
-
}
|
|
32
|
-
doneCallback();
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
]);
|
|
36
|
-
},
|
|
37
|
-
async validateToken(token, location) {
|
|
38
|
-
if (!self.validateWithHEAD) {
|
|
39
|
-
return token;
|
|
40
|
-
}
|
|
41
|
-
const newInit = self.addAuthHeaderToInit({ method: 'HEAD' }, token);
|
|
42
|
-
const response = await fetch(location.uri, newInit);
|
|
43
|
-
if (!response.ok) {
|
|
44
|
-
let errorMessage;
|
|
45
|
-
try {
|
|
46
|
-
errorMessage = await response.text();
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
errorMessage = '';
|
|
50
|
-
}
|
|
51
|
-
throw new Error(`Token could not be validated — ${response.status} ${errorMessage ? ` (${errorMessage})` : ''}`);
|
|
52
|
-
}
|
|
53
|
-
return token;
|
|
54
|
-
},
|
|
55
|
-
}));
|
|
56
|
-
};
|
|
57
|
-
exports.default = stateModelFactory;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { RemoteFileWithRangeCache } from '@jbrowse/core/util/io';
|
|
2
|
-
import type { FilehandleOptions, Stats } from 'generic-filehandle2';
|
|
3
|
-
export interface RequestInitWithMetadata extends RequestInit {
|
|
4
|
-
metadataOnly?: boolean;
|
|
5
|
-
}
|
|
6
|
-
interface GoogleDriveFilehandleOptions extends FilehandleOptions {
|
|
7
|
-
fetch(input: RequestInfo, opts?: RequestInitWithMetadata): Promise<Response>;
|
|
8
|
-
}
|
|
9
|
-
export declare class GoogleDriveFile extends RemoteFileWithRangeCache {
|
|
10
|
-
private statsPromise;
|
|
11
|
-
constructor(source: string, opts: GoogleDriveFilehandleOptions);
|
|
12
|
-
fetch(input: RequestInfo, opts?: RequestInitWithMetadata): Promise<Response>;
|
|
13
|
-
stat(): Promise<Stats>;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GoogleDriveFile = void 0;
|
|
4
|
-
const io_1 = require("@jbrowse/core/util/io");
|
|
5
|
-
class GoogleDriveFile extends io_1.RemoteFileWithRangeCache {
|
|
6
|
-
constructor(source, opts) {
|
|
7
|
-
super(source, opts);
|
|
8
|
-
this.statsPromise = this.fetch(source, {
|
|
9
|
-
metadataOnly: true,
|
|
10
|
-
}).then(response => response.json());
|
|
11
|
-
}
|
|
12
|
-
async fetch(input, opts) {
|
|
13
|
-
return super.fetch(input, opts);
|
|
14
|
-
}
|
|
15
|
-
async stat() {
|
|
16
|
-
return this.statsPromise;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.GoogleDriveFile = GoogleDriveFile;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.default = GoogleDriveIcon;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const material_1 = require("@mui/material");
|
|
6
|
-
function GoogleDriveIcon(props) {
|
|
7
|
-
return ((0, jsx_runtime_1.jsx)(material_1.SvgIcon, { ...props, children: (0, jsx_runtime_1.jsx)("path", { d: "M7.71,3.5L1.15,15L4.58,21L11.13,9.5M9.73,15L6.3,21H19.42L22.85,15M22.28,14L15.42,2H8.58L8.57,2L15.43,14H22.28Z" }) }));
|
|
8
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import type { Instance } from 'mobx-state-tree';
|
|
2
|
-
declare const GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
-
authEndpoint: {
|
|
4
|
-
description: string;
|
|
5
|
-
type: string;
|
|
6
|
-
defaultValue: string;
|
|
7
|
-
};
|
|
8
|
-
scopes: {
|
|
9
|
-
description: string;
|
|
10
|
-
type: string;
|
|
11
|
-
defaultValue: string;
|
|
12
|
-
};
|
|
13
|
-
domains: {
|
|
14
|
-
description: string;
|
|
15
|
-
type: string;
|
|
16
|
-
defaultValue: string[];
|
|
17
|
-
};
|
|
18
|
-
responseType: {
|
|
19
|
-
description: string;
|
|
20
|
-
type: string;
|
|
21
|
-
defaultValue: string;
|
|
22
|
-
};
|
|
23
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
24
|
-
tokenType: {
|
|
25
|
-
description: string;
|
|
26
|
-
type: string;
|
|
27
|
-
defaultValue: string;
|
|
28
|
-
};
|
|
29
|
-
authEndpoint: {
|
|
30
|
-
description: string;
|
|
31
|
-
type: string;
|
|
32
|
-
defaultValue: string;
|
|
33
|
-
};
|
|
34
|
-
tokenEndpoint: {
|
|
35
|
-
description: string;
|
|
36
|
-
type: string;
|
|
37
|
-
defaultValue: string;
|
|
38
|
-
};
|
|
39
|
-
needsPKCE: {
|
|
40
|
-
description: string;
|
|
41
|
-
type: string;
|
|
42
|
-
defaultValue: boolean;
|
|
43
|
-
};
|
|
44
|
-
clientId: {
|
|
45
|
-
description: string;
|
|
46
|
-
type: string;
|
|
47
|
-
defaultValue: string;
|
|
48
|
-
};
|
|
49
|
-
scopes: {
|
|
50
|
-
description: string;
|
|
51
|
-
type: string;
|
|
52
|
-
defaultValue: string;
|
|
53
|
-
};
|
|
54
|
-
state: {
|
|
55
|
-
description: string;
|
|
56
|
-
type: string;
|
|
57
|
-
defaultValue: string;
|
|
58
|
-
};
|
|
59
|
-
responseType: {
|
|
60
|
-
description: string;
|
|
61
|
-
type: string;
|
|
62
|
-
defaultValue: string;
|
|
63
|
-
};
|
|
64
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
65
|
-
name: {
|
|
66
|
-
description: string;
|
|
67
|
-
type: string;
|
|
68
|
-
defaultValue: string;
|
|
69
|
-
};
|
|
70
|
-
description: {
|
|
71
|
-
description: string;
|
|
72
|
-
type: string;
|
|
73
|
-
defaultValue: string;
|
|
74
|
-
};
|
|
75
|
-
authHeader: {
|
|
76
|
-
description: string;
|
|
77
|
-
type: string;
|
|
78
|
-
defaultValue: string;
|
|
79
|
-
};
|
|
80
|
-
tokenType: {
|
|
81
|
-
description: string;
|
|
82
|
-
type: string;
|
|
83
|
-
defaultValue: string;
|
|
84
|
-
};
|
|
85
|
-
domains: {
|
|
86
|
-
description: string;
|
|
87
|
-
type: string;
|
|
88
|
-
defaultValue: never[];
|
|
89
|
-
};
|
|
90
|
-
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "internetAccountId">>, undefined>>, undefined>>;
|
|
91
|
-
export type GoogleDriveOAuthInternetAccountConfigModel = typeof GoogleDriveOAuthConfigSchema;
|
|
92
|
-
export type GoogleDriveOAuthInternetAccountConfig = Instance<GoogleDriveOAuthInternetAccountConfigModel>;
|
|
93
|
-
export default GoogleDriveOAuthConfigSchema;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
7
|
-
const configSchema_1 = __importDefault(require("../OAuthModel/configSchema"));
|
|
8
|
-
function x() { }
|
|
9
|
-
const GoogleDriveOAuthConfigSchema = (0, configuration_1.ConfigurationSchema)('GoogleDriveOAuthInternetAccount', {
|
|
10
|
-
authEndpoint: {
|
|
11
|
-
description: 'the authorization code endpoint of the internet account',
|
|
12
|
-
type: 'string',
|
|
13
|
-
defaultValue: 'https://accounts.google.com/o/oauth2/v2/auth',
|
|
14
|
-
},
|
|
15
|
-
scopes: {
|
|
16
|
-
description: 'optional scopes for the authorization call',
|
|
17
|
-
type: 'string',
|
|
18
|
-
defaultValue: 'https://www.googleapis.com/auth/drive.readonly',
|
|
19
|
-
},
|
|
20
|
-
domains: {
|
|
21
|
-
description: 'array of valid domains the url can contain to use this account',
|
|
22
|
-
type: 'stringArray',
|
|
23
|
-
defaultValue: ['drive.google.com"'],
|
|
24
|
-
},
|
|
25
|
-
responseType: {
|
|
26
|
-
description: 'the type of response from the authorization endpoint',
|
|
27
|
-
type: 'string',
|
|
28
|
-
defaultValue: 'token',
|
|
29
|
-
},
|
|
30
|
-
}, {
|
|
31
|
-
baseConfiguration: configSchema_1.default,
|
|
32
|
-
explicitlyTyped: true,
|
|
33
|
-
});
|
|
34
|
-
exports.default = GoogleDriveOAuthConfigSchema;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.modelFactory = exports.configSchema = void 0;
|
|
7
|
-
var configSchema_1 = require("./configSchema");
|
|
8
|
-
Object.defineProperty(exports, "configSchema", { enumerable: true, get: function () { return __importDefault(configSchema_1).default; } });
|
|
9
|
-
var model_1 = require("./model");
|
|
10
|
-
Object.defineProperty(exports, "modelFactory", { enumerable: true, get: function () { return __importDefault(model_1).default; } });
|