Skip to content

Latest commit

 

History

History
40 lines (22 loc) · 1023 Bytes

21 UAA.md

File metadata and controls

40 lines (22 loc) · 1023 Bytes

UAA (User Authentication and Authorize)

介绍

架构图

Access Control

  • User access is configured using “roles” and RBAC
  • Machines access is configured using “scopes” and RBAC
  • Complex access configuration is expressed using ABAC, using boolean expressions over both “roles” and “scopes”
    • example: hasRole(“ADMIN”) and hasScope(“shop-manager.read”, “shop-manager.write”)

流程图

内部微服务

微服务分组

  • 基于scope完成
@Override
    public void configure(HttpSecurity http) throws Exception {
        ......
            .anyRequest().access("#oauth2.hasScope('read')")
    }