oak-general-business/lib/oak-app-domain/OauthApplication/Storage.js

58 lines
1.3 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const Action_1 = require("./Action");
exports.desc = {
attributes: {
// clientId直接复用entity的id属性
clientSecret: {
notNull: true,
type: "varchar",
params: {
length: 512
}
},
systemId: {
notNull: true,
type: "ref",
ref: "system"
},
name: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
description: {
type: "text"
},
redirectUris: {
type: "object"
},
logo: {
type: "varchar",
params: {
length: 512
}
},
isConfidential: {
notNull: true,
type: "boolean"
},
scopes: {
type: "object"
},
requirePKCE: {
notNull: true,
type: "boolean"
},
ableState: {
type: "enum",
enumeration: ["enabled", "disabled"]
}
},
actionType: "crud",
actions: Action_1.actions
};