oak-pay-business/es/oak-app-domain/OauthApplication/Storage.js

55 lines
1.1 KiB
JavaScript

import { actions } from "./Action";
export const 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
};