Advertisement

ServiceComb认证鉴权解决方案与ServiceComb-Fence

阅读量:

通过引入 servicecomb-fence,开发者能够为 servicecomb-java-chassis 微服务项目赋予基于 OpenID Connect 的身份验证与访问控制功能。

认证鉴权流程介绍

密码模式分析

客户端通过提交用户名及密码的方式,向认证服务器发起令牌申请。

复制代码
 ** HTTP Request **

    
  
    
 POST http://localhost:9090/api/authentication-server/v1/oauth/token HTTP/1.1
    
 Content-Type: application/x-www-form-urlencoded
    
  
    
 grant_type=password&username=admin&password=changeMyPassword
    
    
    
    

Authentication Server 将 Token 传递至 Client 端。

Client 在请求 Resource Server 时,需携带相应的 Token 信息。

复制代码
 ** HTTP Request **

    
  
    
 POST http://localhost:9090/api/resource-serv

全部评论 (0)

还没有任何评论哟~