Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(功能优化): 兼容多用户组的情况 #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 10, 2023

  1. perf(功能优化): 兼容多用户组的情况

    我是广州人工智能算力中心开发人员,目前使用了华为的私有云HCSO,在对接用户组时遇到多用户组兼容性问题,如下:
    如果联邦用户需要在IAM中属于多个用户组,身份转换规则如下所示。
    以下示例表示联邦用户在IAM中的用户名称为“remote”的第一个属性值+空格+第二个属性值,即FirstName
    LastName。所属用户组为“remote”的第三个属性值,即Groups。
    ```json
    [
            {
    
    "local": [
                    {
                        "user": {
    
    "name": "{0} {1}"
                        }
                    },
    
    {
                        "groups":  "{2}"
                    }
    
    ],
                "remote": [
                    {
    
    "type": "FirstName"
                    },
                    {
    
    "type": "LastName"
                    },
                    {
    
    "type": "Groups"
                    }
                ]
            }
    ]
    
    ```
    以上的结构无法满足接口调用的数据格式
    syshlang committed Mar 10, 2023
    Configuration menu
    Copy the full SHA
    2aa663f View commit details
    Browse the repository at this point in the history