@jbrowse/plugin-authentication
Version:
JBrowse 2 Authentication
52 lines (51 loc) • 1.65 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const configuration_1 = require("@jbrowse/core/configuration");
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
function x() { }
const OAuthConfigSchema = (0, configuration_1.ConfigurationSchema)('OAuthInternetAccount', {
tokenType: {
description: 'a custom name for a token to include in the header',
type: 'string',
defaultValue: 'Bearer',
},
authEndpoint: {
description: 'the authorization code endpoint of the internet account',
type: 'string',
defaultValue: '',
},
tokenEndpoint: {
description: 'the token endpoint of the internet account',
type: 'string',
defaultValue: '',
},
needsPKCE: {
description: 'boolean to indicate if the endpoint needs a PKCE code',
type: 'boolean',
defaultValue: false,
},
clientId: {
description: 'id for the OAuth application',
type: 'string',
defaultValue: '',
},
scopes: {
description: 'optional scopes for the authorization call',
type: 'string',
defaultValue: '',
},
state: {
description: 'optional state for the authorization call',
type: 'string',
defaultValue: '',
},
responseType: {
description: "the type of response from the authorization endpoint. can be 'token' or 'code'",
type: 'string',
defaultValue: 'code',
},
}, {
baseConfiguration: models_1.BaseInternetAccountConfig,
explicitlyTyped: true,
});
exports.default = OAuthConfigSchema;