新增代理服务的离线接口,优化认证逻辑,代理服务表添加状态字段
This commit is contained in:
@@ -71,6 +71,11 @@ func main() {
|
||||
return err
|
||||
}
|
||||
|
||||
proxySecret, err := bcrypt.GenerateFromPassword([]byte("proxy"), bcrypt.DefaultCost)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = q.Client.
|
||||
Select(
|
||||
q.Client.ClientID,
|
||||
@@ -96,6 +101,17 @@ func main() {
|
||||
GrantClient: true,
|
||||
Spec: int32(client2.SpecTrusted),
|
||||
Name: "异步任务处理服务",
|
||||
}, &m.Client{
|
||||
ClientID: "proxy",
|
||||
ClientSecret: string(proxySecret),
|
||||
GrantClient: true,
|
||||
Spec: int32(client2.SpecTrusted),
|
||||
Name: "代理转发服务",
|
||||
}, &m.Client{
|
||||
ClientID: "edge",
|
||||
GrantClient: true,
|
||||
Spec: int32(client2.SpecWeb),
|
||||
Name: "代理边缘节点",
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user