From 4a8f907aed2edc62fddb5a3403288304b80f3274 Mon Sep 17 00:00:00 2001 From: luojielin <384184718@qq.com> Date: Mon, 14 Feb 2022 14:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AD=97=E6=AE=B5=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=9AIdentity.ConnectionId=20=E6=94=B9=E4=B8=BA=20?= =?UTF-8?q?ExtIdpId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/management/organization_management_client_test.go | 6 +++++- lib/model/models.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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"`