perf(功能优化): 兼容多用户组的情况#58
Open
syshlang wants to merge 1 commit into
Open
Conversation
我是广州人工智能算力中心开发人员,目前使用了华为的私有云HCSO,在对接用户组时遇到多用户组兼容性问题,如下:
如果联邦用户需要在IAM中属于多个用户组,身份转换规则如下所示。
以下示例表示联邦用户在IAM中的用户名称为“remote”的第一个属性值+空格+第二个属性值,即FirstName
LastName。所属用户组为“remote”的第三个属性值,即Groups。
```json
[
{
"local": [
{
"user": {
"name": "{0} {1}"
}
},
{
"groups": "{2}"
}
],
"remote": [
{
"type": "FirstName"
},
{
"type": "LastName"
},
{
"type": "Groups"
}
]
}
]
```
以上的结构无法满足接口调用的数据格式
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
我是广州人工智能算力中心开发人员,目前使用了华为的私有云HCSO,在对接用户组时遇到多用户组兼容性问题,如下: 如果联邦用户需要在IAM中属于多个用户组,身份转换规则如下所示。
以下示例表示联邦用户在IAM中的用户名称为“remote”的第一个属性值+空格+第二个属性值,即FirstName LastName。所属用户组为“remote”的第三个属性值,即Groups。
[ { "local": [ { "user": { "name": "{0} {1}" } }, { "groups": "{2}" } ], "remote": [ { "type": "FirstName" }, { "type": "LastName" }, { "type": "Groups" } ] } ]以上的结构无法满足接口调用的数据格式