46 lines
902 B
JavaScript
46 lines
902 B
JavaScript
export default OakComponent({
|
|
entity: 'oauthProvider',
|
|
isList: false,
|
|
projection: {
|
|
name: 1,
|
|
type: 1,
|
|
logo: 1,
|
|
scopes: 1,
|
|
authorizationEndpoint: 1,
|
|
tokenEndpoint: 1,
|
|
userInfoEndpoint: 1,
|
|
revokeEndpoint: 1,
|
|
refreshEndpoint: 1,
|
|
clientId: 1,
|
|
clientSecret: 1,
|
|
redirectUri: 1,
|
|
autoRegister: 1,
|
|
ableState: 1,
|
|
},
|
|
formData({ data }) {
|
|
return {
|
|
item: data,
|
|
isCreation: this.isCreation(),
|
|
};
|
|
},
|
|
properties: {
|
|
open: false,
|
|
onCancel: (() => { }),
|
|
onOk: (() => { }),
|
|
},
|
|
lifetimes: {
|
|
ready() {
|
|
},
|
|
},
|
|
methods: {
|
|
setHideModal(hide) {
|
|
this.setState({
|
|
hideModal: hide
|
|
});
|
|
}
|
|
},
|
|
data: {
|
|
hideModal: false
|
|
}
|
|
});
|