aws auth displayName (#14954)
* set displayName to include RoleSessionName
This commit is contained in:
parent
a0dbb30757
commit
103dd2ad0b
|
@ -1407,6 +1407,11 @@ func (b *backend) pathLoginUpdateIam(ctx context.Context, req *logical.Request,
|
||||||
Name: identityAlias,
|
Name: identityAlias,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if entity.Type == "assumed-role" {
|
||||||
|
auth.DisplayName = strings.Join([]string{entity.FriendlyName, entity.SessionInfo}, "/")
|
||||||
|
}
|
||||||
|
|
||||||
roleEntry.PopulateTokenAuth(auth)
|
roleEntry.PopulateTokenAuth(auth)
|
||||||
if err := identityConfigEntry.IAMAuthMetadataHandler.PopulateDesiredMetadata(auth, map[string]string{
|
if err := identityConfigEntry.IAMAuthMetadataHandler.PopulateDesiredMetadata(auth, map[string]string{
|
||||||
"client_arn": callerID.Arn,
|
"client_arn": callerID.Arn,
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note:change
|
||||||
|
auth/aws: Add RoleSession to DisplayName when using assumeRole for authentication
|
||||||
|
```
|
Loading…
Reference in New Issue