@jbrowse/plugin-authentication 2.2.0 → 2.2.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 +2 -2
- package/dist/DropboxOAuthModel/model.d.ts +4 -4
- package/dist/ExternalTokenModel/configSchema.d.ts +2 -2
- package/dist/ExternalTokenModel/model.d.ts +4 -4
- package/dist/GoogleDriveOAuthModel/configSchema.d.ts +2 -2
- package/dist/GoogleDriveOAuthModel/model.d.ts +4 -4
- package/dist/HTTPBasicModel/configSchema.d.ts +2 -2
- package/dist/HTTPBasicModel/model.d.ts +4 -4
- package/dist/OAuthModel/configSchema.d.ts +2 -2
- package/dist/OAuthModel/model.d.ts +4 -4
- package/dist/index.d.ts +10 -10
- package/esm/DropboxOAuthModel/configSchema.d.ts +2 -2
- package/esm/DropboxOAuthModel/model.d.ts +4 -4
- package/esm/ExternalTokenModel/configSchema.d.ts +2 -2
- package/esm/ExternalTokenModel/model.d.ts +4 -4
- package/esm/GoogleDriveOAuthModel/configSchema.d.ts +2 -2
- package/esm/GoogleDriveOAuthModel/model.d.ts +4 -4
- package/esm/HTTPBasicModel/configSchema.d.ts +2 -2
- package/esm/HTTPBasicModel/model.d.ts +4 -4
- package/esm/OAuthModel/configSchema.d.ts +2 -2
- package/esm/OAuthModel/model.d.ts +4 -4
- package/esm/index.d.ts +10 -10
- package/package.json +2 -2
- package/src/__snapshots__/index.test.js.snap +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type DropboxOAuthInternetAccountConfigModel = typeof DropboxOAuthConfigSchema;
|
|
4
|
+
export type DropboxOAuthInternetAccountConfig = Instance<DropboxOAuthInternetAccountConfigModel>;
|
|
5
5
|
export default DropboxOAuthConfigSchema;
|
|
@@ -31,7 +31,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
31
31
|
storeToken(token: string): void;
|
|
32
32
|
removeToken(): void;
|
|
33
33
|
retrieveToken(): string | null;
|
|
34
|
-
validateToken(token: string,
|
|
34
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
35
35
|
} & {
|
|
36
36
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
37
37
|
} & {
|
|
@@ -58,7 +58,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
58
58
|
};
|
|
59
59
|
}>;
|
|
60
60
|
} & {
|
|
61
|
-
getFetcher(
|
|
61
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
62
62
|
} & {
|
|
63
63
|
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
64
64
|
} & {
|
|
@@ -94,5 +94,5 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
94
94
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
95
95
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
96
96
|
export default stateModelFactory;
|
|
97
|
-
export
|
|
98
|
-
export
|
|
97
|
+
export type DropboxOAuthStateModel = ReturnType<typeof stateModelFactory>;
|
|
98
|
+
export type DropboxOAuthModel = Instance<DropboxOAuthStateModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const ExternalTokenConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ExternalTokenInternetAccountConfigModel = typeof ExternalTokenConfigSchema;
|
|
4
|
+
export type ExternalTokenInternetAccountConfig = Instance<ExternalTokenInternetAccountConfigModel>;
|
|
5
5
|
export default ExternalTokenConfigSchema;
|
|
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
26
26
|
storeToken(token: string): void;
|
|
27
27
|
removeToken(): void;
|
|
28
28
|
retrieveToken(): string | null;
|
|
29
|
-
validateToken(token: string,
|
|
29
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
30
30
|
} & {
|
|
31
31
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
32
32
|
} & {
|
|
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
53
53
|
};
|
|
54
54
|
}>;
|
|
55
55
|
} & {
|
|
56
|
-
getFetcher(
|
|
56
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
57
57
|
} & {
|
|
58
58
|
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
59
59
|
} & {
|
|
@@ -63,5 +63,5 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
63
63
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
64
64
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
65
65
|
export default stateModelFactory;
|
|
66
|
-
export
|
|
67
|
-
export
|
|
66
|
+
export type ExternalTokenStateModel = ReturnType<typeof stateModelFactory>;
|
|
67
|
+
export type ExternalTokenModel = Instance<ExternalTokenStateModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type GoogleDriveOAuthInternetAccountConfigModel = typeof GoogleDriveOAuthConfigSchema;
|
|
4
|
+
export type GoogleDriveOAuthInternetAccountConfig = Instance<GoogleDriveOAuthInternetAccountConfigModel>;
|
|
5
5
|
export default GoogleDriveOAuthConfigSchema;
|
|
@@ -43,7 +43,7 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
|
|
|
43
43
|
storeToken(token: string): void;
|
|
44
44
|
removeToken(): void;
|
|
45
45
|
retrieveToken(): string | null;
|
|
46
|
-
validateToken(token: string,
|
|
46
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
47
47
|
} & {
|
|
48
48
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
49
49
|
} & {
|
|
@@ -70,7 +70,7 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
|
|
|
70
70
|
};
|
|
71
71
|
}>;
|
|
72
72
|
} & {
|
|
73
|
-
getFetcher(
|
|
73
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
74
74
|
} & {
|
|
75
75
|
openLocation(location: UriLocation): RemoteFileWithRangeCache;
|
|
76
76
|
} & {
|
|
@@ -107,5 +107,5 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
|
|
|
107
107
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
108
108
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
109
109
|
export default stateModelFactory;
|
|
110
|
-
export
|
|
111
|
-
export
|
|
110
|
+
export type GoogleDriveOAuthStateModel = ReturnType<typeof stateModelFactory>;
|
|
111
|
+
export type GoogleDriveOAuthModel = Instance<GoogleDriveOAuthStateModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const HTTPBasicConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type HTTPBasicInternetAccountConfigModel = typeof HTTPBasicConfigSchema;
|
|
4
|
+
export type HTTPBasicInternetAccountConfig = Instance<HTTPBasicInternetAccountConfigModel>;
|
|
5
5
|
export default HTTPBasicConfigSchema;
|
|
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
26
26
|
storeToken(token: string): void;
|
|
27
27
|
removeToken(): void;
|
|
28
28
|
retrieveToken(): string | null;
|
|
29
|
-
validateToken(token: string,
|
|
29
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
30
30
|
} & {
|
|
31
31
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
32
32
|
} & {
|
|
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
53
53
|
};
|
|
54
54
|
}>;
|
|
55
55
|
} & {
|
|
56
|
-
getFetcher(
|
|
56
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
57
57
|
} & {
|
|
58
58
|
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
59
59
|
} & {
|
|
@@ -63,5 +63,5 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
63
63
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
64
64
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
65
65
|
export default stateModelFactory;
|
|
66
|
-
export
|
|
67
|
-
export
|
|
66
|
+
export type HTTPBasicStateModel = ReturnType<typeof stateModelFactory>;
|
|
67
|
+
export type HTTPBasicModel = Instance<HTTPBasicStateModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const OAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type OAuthInternetAccountConfigModel = typeof OAuthConfigSchema;
|
|
4
|
+
export type OAuthInternetAccountConfig = Instance<OAuthInternetAccountConfigModel>;
|
|
5
5
|
export default OAuthConfigSchema;
|
|
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
|
|
|
26
26
|
storeToken(token: string): void;
|
|
27
27
|
removeToken(): void;
|
|
28
28
|
retrieveToken(): string | null;
|
|
29
|
-
validateToken(token: string,
|
|
29
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
30
30
|
} & {
|
|
31
31
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
32
32
|
} & {
|
|
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
|
|
|
53
53
|
};
|
|
54
54
|
}>;
|
|
55
55
|
} & {
|
|
56
|
-
getFetcher(
|
|
56
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
57
57
|
} & {
|
|
58
58
|
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
59
59
|
} & {
|
|
@@ -87,5 +87,5 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
|
|
|
87
87
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
88
88
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
89
89
|
export default stateModelFactory;
|
|
90
|
-
export
|
|
91
|
-
export
|
|
90
|
+
export type OAuthStateModel = ReturnType<typeof stateModelFactory>;
|
|
91
|
+
export type OAuthModel = Instance<OAuthStateModel>;
|
package/dist/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
34
34
|
storeToken(token: string): void;
|
|
35
35
|
removeToken(): void;
|
|
36
36
|
retrieveToken(): string | null;
|
|
37
|
-
validateToken(token: string,
|
|
37
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
38
38
|
} & {
|
|
39
39
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
40
40
|
} & {
|
|
@@ -61,7 +61,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
} & {
|
|
64
|
-
getFetcher(
|
|
64
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
65
65
|
} & {
|
|
66
66
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
67
67
|
} & {
|
|
@@ -115,7 +115,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
115
115
|
storeToken(token: string): void;
|
|
116
116
|
removeToken(): void;
|
|
117
117
|
retrieveToken(): string | null;
|
|
118
|
-
validateToken(token: string,
|
|
118
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
119
119
|
} & {
|
|
120
120
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
121
121
|
} & {
|
|
@@ -142,7 +142,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
142
142
|
};
|
|
143
143
|
}>;
|
|
144
144
|
} & {
|
|
145
|
-
getFetcher(
|
|
145
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
146
146
|
} & {
|
|
147
147
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
148
148
|
} & {
|
|
@@ -176,7 +176,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
176
176
|
storeToken(token: string): void;
|
|
177
177
|
removeToken(): void;
|
|
178
178
|
retrieveToken(): string | null;
|
|
179
|
-
validateToken(token: string,
|
|
179
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
180
180
|
} & {
|
|
181
181
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
182
182
|
} & {
|
|
@@ -203,7 +203,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
203
203
|
};
|
|
204
204
|
}>;
|
|
205
205
|
} & {
|
|
206
|
-
getFetcher(
|
|
206
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
207
207
|
} & {
|
|
208
208
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
209
209
|
} & {
|
|
@@ -240,7 +240,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
240
240
|
storeToken(token: string): void;
|
|
241
241
|
removeToken(): void;
|
|
242
242
|
retrieveToken(): string | null;
|
|
243
|
-
validateToken(token: string,
|
|
243
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
244
244
|
} & {
|
|
245
245
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
246
246
|
} & {
|
|
@@ -267,7 +267,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
267
267
|
};
|
|
268
268
|
}>;
|
|
269
269
|
} & {
|
|
270
|
-
getFetcher(
|
|
270
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
271
271
|
} & {
|
|
272
272
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
273
273
|
} & {
|
|
@@ -330,7 +330,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
330
330
|
storeToken(token: string): void;
|
|
331
331
|
removeToken(): void;
|
|
332
332
|
retrieveToken(): string | null;
|
|
333
|
-
validateToken(token: string,
|
|
333
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
334
334
|
} & {
|
|
335
335
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
336
336
|
} & {
|
|
@@ -357,7 +357,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
357
357
|
};
|
|
358
358
|
}>;
|
|
359
359
|
} & {
|
|
360
|
-
getFetcher(
|
|
360
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
361
361
|
} & {
|
|
362
362
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
363
363
|
} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const DropboxOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type DropboxOAuthInternetAccountConfigModel = typeof DropboxOAuthConfigSchema;
|
|
4
|
+
export type DropboxOAuthInternetAccountConfig = Instance<DropboxOAuthInternetAccountConfigModel>;
|
|
5
5
|
export default DropboxOAuthConfigSchema;
|
|
@@ -31,7 +31,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
31
31
|
storeToken(token: string): void;
|
|
32
32
|
removeToken(): void;
|
|
33
33
|
retrieveToken(): string | null;
|
|
34
|
-
validateToken(token: string,
|
|
34
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
35
35
|
} & {
|
|
36
36
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
37
37
|
} & {
|
|
@@ -58,7 +58,7 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
58
58
|
};
|
|
59
59
|
}>;
|
|
60
60
|
} & {
|
|
61
|
-
getFetcher(
|
|
61
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
62
62
|
} & {
|
|
63
63
|
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
64
64
|
} & {
|
|
@@ -94,5 +94,5 @@ declare const stateModelFactory: (configSchema: DropboxOAuthInternetAccountConfi
|
|
|
94
94
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
95
95
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
96
96
|
export default stateModelFactory;
|
|
97
|
-
export
|
|
98
|
-
export
|
|
97
|
+
export type DropboxOAuthStateModel = ReturnType<typeof stateModelFactory>;
|
|
98
|
+
export type DropboxOAuthModel = Instance<DropboxOAuthStateModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const ExternalTokenConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ExternalTokenInternetAccountConfigModel = typeof ExternalTokenConfigSchema;
|
|
4
|
+
export type ExternalTokenInternetAccountConfig = Instance<ExternalTokenInternetAccountConfigModel>;
|
|
5
5
|
export default ExternalTokenConfigSchema;
|
|
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
26
26
|
storeToken(token: string): void;
|
|
27
27
|
removeToken(): void;
|
|
28
28
|
retrieveToken(): string | null;
|
|
29
|
-
validateToken(token: string,
|
|
29
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
30
30
|
} & {
|
|
31
31
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
32
32
|
} & {
|
|
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
53
53
|
};
|
|
54
54
|
}>;
|
|
55
55
|
} & {
|
|
56
|
-
getFetcher(
|
|
56
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
57
57
|
} & {
|
|
58
58
|
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
59
59
|
} & {
|
|
@@ -63,5 +63,5 @@ declare const stateModelFactory: (configSchema: ExternalTokenInternetAccountConf
|
|
|
63
63
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
64
64
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
65
65
|
export default stateModelFactory;
|
|
66
|
-
export
|
|
67
|
-
export
|
|
66
|
+
export type ExternalTokenStateModel = ReturnType<typeof stateModelFactory>;
|
|
67
|
+
export type ExternalTokenModel = Instance<ExternalTokenStateModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const GoogleDriveOAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type GoogleDriveOAuthInternetAccountConfigModel = typeof GoogleDriveOAuthConfigSchema;
|
|
4
|
+
export type GoogleDriveOAuthInternetAccountConfig = Instance<GoogleDriveOAuthInternetAccountConfigModel>;
|
|
5
5
|
export default GoogleDriveOAuthConfigSchema;
|
|
@@ -43,7 +43,7 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
|
|
|
43
43
|
storeToken(token: string): void;
|
|
44
44
|
removeToken(): void;
|
|
45
45
|
retrieveToken(): string | null;
|
|
46
|
-
validateToken(token: string,
|
|
46
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
47
47
|
} & {
|
|
48
48
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
49
49
|
} & {
|
|
@@ -70,7 +70,7 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
|
|
|
70
70
|
};
|
|
71
71
|
}>;
|
|
72
72
|
} & {
|
|
73
|
-
getFetcher(
|
|
73
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
74
74
|
} & {
|
|
75
75
|
openLocation(location: UriLocation): RemoteFileWithRangeCache;
|
|
76
76
|
} & {
|
|
@@ -107,5 +107,5 @@ declare const stateModelFactory: (configSchema: GoogleDriveOAuthInternetAccountC
|
|
|
107
107
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
108
108
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
109
109
|
export default stateModelFactory;
|
|
110
|
-
export
|
|
111
|
-
export
|
|
110
|
+
export type GoogleDriveOAuthStateModel = ReturnType<typeof stateModelFactory>;
|
|
111
|
+
export type GoogleDriveOAuthModel = Instance<GoogleDriveOAuthStateModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const HTTPBasicConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type HTTPBasicInternetAccountConfigModel = typeof HTTPBasicConfigSchema;
|
|
4
|
+
export type HTTPBasicInternetAccountConfig = Instance<HTTPBasicInternetAccountConfigModel>;
|
|
5
5
|
export default HTTPBasicConfigSchema;
|
|
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
26
26
|
storeToken(token: string): void;
|
|
27
27
|
removeToken(): void;
|
|
28
28
|
retrieveToken(): string | null;
|
|
29
|
-
validateToken(token: string,
|
|
29
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
30
30
|
} & {
|
|
31
31
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
32
32
|
} & {
|
|
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
53
53
|
};
|
|
54
54
|
}>;
|
|
55
55
|
} & {
|
|
56
|
-
getFetcher(
|
|
56
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
57
57
|
} & {
|
|
58
58
|
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
59
59
|
} & {
|
|
@@ -63,5 +63,5 @@ declare const stateModelFactory: (configSchema: HTTPBasicInternetAccountConfigMo
|
|
|
63
63
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
64
64
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
65
65
|
export default stateModelFactory;
|
|
66
|
-
export
|
|
67
|
-
export
|
|
66
|
+
export type HTTPBasicStateModel = ReturnType<typeof stateModelFactory>;
|
|
67
|
+
export type HTTPBasicModel = Instance<HTTPBasicStateModel>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
declare const OAuthConfigSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type OAuthInternetAccountConfigModel = typeof OAuthConfigSchema;
|
|
4
|
+
export type OAuthInternetAccountConfig = Instance<OAuthInternetAccountConfigModel>;
|
|
5
5
|
export default OAuthConfigSchema;
|
|
@@ -26,7 +26,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
|
|
|
26
26
|
storeToken(token: string): void;
|
|
27
27
|
removeToken(): void;
|
|
28
28
|
retrieveToken(): string | null;
|
|
29
|
-
validateToken(token: string,
|
|
29
|
+
validateToken(token: string, loc: UriLocation): Promise<string>;
|
|
30
30
|
} & {
|
|
31
31
|
getToken(location?: UriLocation | undefined): Promise<string>;
|
|
32
32
|
} & {
|
|
@@ -53,7 +53,7 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
|
|
|
53
53
|
};
|
|
54
54
|
}>;
|
|
55
55
|
} & {
|
|
56
|
-
getFetcher(
|
|
56
|
+
getFetcher(loc?: UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
57
57
|
} & {
|
|
58
58
|
openLocation(location: UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
59
59
|
} & {
|
|
@@ -87,5 +87,5 @@ declare const stateModelFactory: (configSchema: OAuthInternetAccountConfigModel)
|
|
|
87
87
|
validateToken(token: string, location: UriLocation): Promise<string>;
|
|
88
88
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
89
89
|
export default stateModelFactory;
|
|
90
|
-
export
|
|
91
|
-
export
|
|
90
|
+
export type OAuthStateModel = ReturnType<typeof stateModelFactory>;
|
|
91
|
+
export type OAuthModel = Instance<OAuthStateModel>;
|
package/esm/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
34
34
|
storeToken(token: string): void;
|
|
35
35
|
removeToken(): void;
|
|
36
36
|
retrieveToken(): string | null;
|
|
37
|
-
validateToken(token: string,
|
|
37
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
38
38
|
} & {
|
|
39
39
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
40
40
|
} & {
|
|
@@ -61,7 +61,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
63
|
} & {
|
|
64
|
-
getFetcher(
|
|
64
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
65
65
|
} & {
|
|
66
66
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
67
67
|
} & {
|
|
@@ -115,7 +115,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
115
115
|
storeToken(token: string): void;
|
|
116
116
|
removeToken(): void;
|
|
117
117
|
retrieveToken(): string | null;
|
|
118
|
-
validateToken(token: string,
|
|
118
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
119
119
|
} & {
|
|
120
120
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
121
121
|
} & {
|
|
@@ -142,7 +142,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
142
142
|
};
|
|
143
143
|
}>;
|
|
144
144
|
} & {
|
|
145
|
-
getFetcher(
|
|
145
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
146
146
|
} & {
|
|
147
147
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
148
148
|
} & {
|
|
@@ -176,7 +176,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
176
176
|
storeToken(token: string): void;
|
|
177
177
|
removeToken(): void;
|
|
178
178
|
retrieveToken(): string | null;
|
|
179
|
-
validateToken(token: string,
|
|
179
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
180
180
|
} & {
|
|
181
181
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
182
182
|
} & {
|
|
@@ -203,7 +203,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
203
203
|
};
|
|
204
204
|
}>;
|
|
205
205
|
} & {
|
|
206
|
-
getFetcher(
|
|
206
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
207
207
|
} & {
|
|
208
208
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
209
209
|
} & {
|
|
@@ -240,7 +240,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
240
240
|
storeToken(token: string): void;
|
|
241
241
|
removeToken(): void;
|
|
242
242
|
retrieveToken(): string | null;
|
|
243
|
-
validateToken(token: string,
|
|
243
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
244
244
|
} & {
|
|
245
245
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
246
246
|
} & {
|
|
@@ -267,7 +267,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
267
267
|
};
|
|
268
268
|
}>;
|
|
269
269
|
} & {
|
|
270
|
-
getFetcher(
|
|
270
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
271
271
|
} & {
|
|
272
272
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
273
273
|
} & {
|
|
@@ -330,7 +330,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
330
330
|
storeToken(token: string): void;
|
|
331
331
|
removeToken(): void;
|
|
332
332
|
retrieveToken(): string | null;
|
|
333
|
-
validateToken(token: string,
|
|
333
|
+
validateToken(token: string, loc: import("@jbrowse/core/util").UriLocation): Promise<string>;
|
|
334
334
|
} & {
|
|
335
335
|
getToken(location?: import("@jbrowse/core/util").UriLocation | undefined): Promise<string>;
|
|
336
336
|
} & {
|
|
@@ -357,7 +357,7 @@ export default class AuthenticationPlugin extends Plugin {
|
|
|
357
357
|
};
|
|
358
358
|
}>;
|
|
359
359
|
} & {
|
|
360
|
-
getFetcher(
|
|
360
|
+
getFetcher(loc?: import("@jbrowse/core/util").UriLocation | undefined): (input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>;
|
|
361
361
|
} & {
|
|
362
362
|
openLocation(location: import("@jbrowse/core/util").UriLocation): import("@jbrowse/core/util/io").RemoteFileWithRangeCache;
|
|
363
363
|
} & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-authentication",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "JBrowse 2 Authentication",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"distModule": "esm/index.js",
|
|
60
60
|
"srcModule": "src/index.ts",
|
|
61
61
|
"module": "esm/index.js",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "896d175c5d9345049faea8e1155f243c912aac42"
|
|
63
63
|
}
|