bert82503 opened a new issue, #5036:
URL: https://github.com/apache/shenyu/issues/5036

   ### Question
   
   ### 简化版的统一配置页面
   入参: 应用名称、服务接口、方法名称、方法描述、插件列表(多项)、RpcType、用户身份、手机号码
   InputParam: AppName, Interface, MethodName, MethodDescribe(PathDescribe), 
PluginList(MultiOption), RpcType, UserId, TelPhone
   
   
   # 以dubbo和oauth2插件配置为例
   
   ## PluginList 插件列表
   ### rpc proxy -> dubbo
   
   #### 1.SelectorList 选择器列表
   入参:应用名称
   Name: shenyu-demo-rpc
   Conditions: /shenyu-demo/**
   
   <img width="1261" alt="1 rpc proxy-Selector" 
src="https://github.com/apache/shenyu/assets/1811851/c5c31350-08d9-44d0-8bd2-1e973145b8d3";>
   
   #### 2.RulesList 规则集合列表
   入参:服务接口、方法名称
   Name: com.shenyu.service.DemoService.hello
   Conditions: /shenyu-demo/hello
   
   <img width="1265" alt="2 rpc proxy-Rules" 
src="https://github.com/apache/shenyu/assets/1811851/9be76b97-78b6-45ce-ba3c-5c37127e2b62";>
   
   
   ## BasicConfig 基本配置
   ### 1.MetaData 元数据
   入参:应用名称、方法名称、服务接口、RpcType、方法功能描述
   AppName: shenyu-demo
   MethodName: hello
   PathDescribe: 神禹示例
   Path: /shenyu-demo/hello,{应用名称}/{方法名称}
   Interface: com.shenyu.service.DemoService
   RpcType: dubbo
   
   <img width="987" alt="3 MetaData" 
src="https://github.com/apache/shenyu/assets/1811851/7b7af89b-4416-4e72-892b-533b3157c12d";>
   
   
   ## 1.Authentication 认证
   ### 1.Certification 证书
   入参:应用名称、用户身份、手机号码
   出参:AppId、AppPassword(用于换取令牌)
   AppName: shenyu-demo
   UserId: 1234567890
   TelPhone: 13566666666
   ResourcePath: 通过应用名称自动拉取所有资源路径列表
   
   <img width="1036" alt="4 Certification" 
src="https://github.com/apache/shenyu/assets/1811851/24a47e60-8648-4a65-b2fb-6a5ef00595de";>
   
   ### 3.oauth2 认证插件
   > authentication 认证
   
   #### 1.SelectorList 选择器列表
   > 与其它插件的选择器列表配置完全一样,名称需要唯一性(unique index conflict, please enter again)
   > 建议选择器使用"名称+插件身份"作为唯一索引,不同插件的选择器名称都可以使用应用名称作为其名称,便于查询,保持一致性。我觉得这样设计更合理
   
   入参:应用名称
   Name: shenyu-demo-oauth2
   Conditions: /shenyu-demo/**
   
   <img width="1261" alt="5 auth-Selector" 
src="https://github.com/apache/shenyu/assets/1811851/ea01099d-73e7-4b55-8191-43bb5c9e0b80";>
   
   #### 2.RulesList 规则集合列表
   > 与其它插件的规则列表配置完全一样,名称需要唯一性(unique index conflict, please enter again)
   > 建议规则使用"名称+选择器身份"作为唯一索引
   
   入参:服务接口、方法名称
   Name: shenyu-demo
   Conditions: /shenyu-demo/**
   
   <img width="1258" alt="6 auth-Rules" 
src="https://github.com/apache/shenyu/assets/1811851/f590b16f-d1a4-4538-a46f-8e026323fcf3";>
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to