diff --git a/lib/management/organization_management_client_test.go b/lib/management/organization_management_client_test.go index 0a99138..d51065f 100644 --- a/lib/management/organization_management_client_test.go +++ b/lib/management/organization_management_client_test.go @@ -43,8 +43,12 @@ func TestClient_All(t *testing.T) { } resp1, _ := client.ListMembers(req) log.Printf("%+v\n", resp1) +} + +func TestClient_Detail(t *testing.T) { + client := NewClient(userPoolId, appSecret) log.Println("==========通过 ID 获取用户信息==========") - resp2, _ := client.Detail("60a6f9ad5bcccc51834950c5") + resp2, _ := client.Detail("611a149db64310ca4764ab15") log.Printf("%+v\n", resp2) } func TestClient_GetOrganizationList(t *testing.T) { diff --git a/lib/model/models.go b/lib/model/models.go index 63ba1d4..76066b9 100644 --- a/lib/model/models.go +++ b/lib/model/models.go @@ -330,7 +330,7 @@ type Identity struct { Openid *string `json:"openid"` UserIdInIdp *string `json:"userIdInIdp"` UserId *string `json:"userId"` - ConnectionId *string `json:"connectionId"` + ExtIdpId *string `json:"extIdpId"` IsSocial *bool `json:"isSocial"` Provider *string `json:"provider"` UserPoolId *string `json:"userPoolId"`