@jbrowse/plugin-authentication
Version:
JBrowse 2 Authentication
43 lines (42 loc) • 1.52 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const configuration_1 = require("@jbrowse/core/configuration");
const configSchema_1 = __importDefault(require("../OAuthModel/configSchema"));
function x() { }
const DropboxOAuthConfigSchema = (0, configuration_1.ConfigurationSchema)('DropboxOAuthInternetAccount', {
authEndpoint: {
description: 'the authorization code endpoint of the internet account',
type: 'string',
defaultValue: 'https://www.dropbox.com/oauth2/authorize',
},
tokenEndpoint: {
description: 'the token endpoint of the internet account',
type: 'string',
defaultValue: 'https://api.dropbox.com/oauth2/token',
},
needsPKCE: {
description: 'boolean to indicate if the endpoint needs a PKCE code',
type: 'boolean',
defaultValue: true,
},
domains: {
description: 'array of valid domains the url can contain to use this account',
type: 'stringArray',
defaultValue: [
'addtodropbox.com',
'db.tt',
'dropbox.com',
'dropboxapi.com',
'dropboxbusiness.com',
'dropbox.tech',
'getdropbox.com',
],
},
}, {
baseConfiguration: configSchema_1.default,
explicitlyTyped: true,
});
exports.default = DropboxOAuthConfigSchema;