@jbrowse/plugin-authentication
Version:
JBrowse 2 Authentication
38 lines (37 loc) • 1.26 kB
JavaScript
import { ConfigurationSchema } from '@jbrowse/core/configuration';
import OAuthConfigSchema from '../OAuthModel/configSchema';
function x() { }
const DropboxOAuthConfigSchema = 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: OAuthConfigSchema,
explicitlyTyped: true,
});
export default DropboxOAuthConfigSchema;