From ed47b2e0f81980d76202277840fbce756629b596 Mon Sep 17 00:00:00 2001 From: luojielin <384184718@qq.com> Date: Mon, 14 Feb 2022 15:35:53 +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 --- gql/schemas.gql | 2 +- lib/constant/gql.go | 2 +- lib/constant/gql_manage_user.go | 4 ++-- lib/management/organization_management_client_test.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gql/schemas.gql b/gql/schemas.gql index 8cc3cbc..9abdaa8 100644 --- a/gql/schemas.gql +++ b/gql/schemas.gql @@ -333,7 +333,7 @@ type Identity { openid: String userIdInIdp: String userId: String - connectionId: String + extIdpId: String isSocial: Boolean provider: String userPoolId: String diff --git a/lib/constant/gql.go b/lib/constant/gql.go index 609d844..7e851b8 100644 --- a/lib/constant/gql.go +++ b/lib/constant/gql.go @@ -510,7 +510,7 @@ const UsersWithCustomDocument = ` openid userIdInIdp userId - connectionId + extIdpId isSocial provider type diff --git a/lib/constant/gql_manage_user.go b/lib/constant/gql_manage_user.go index db8811c..f4ca58e 100644 --- a/lib/constant/gql_manage_user.go +++ b/lib/constant/gql_manage_user.go @@ -201,7 +201,7 @@ query userBatch($ids: [String!]!, $type: String) { openid userIdInIdp userId - connectionId + extIdpId isSocial provider type @@ -268,7 +268,7 @@ query userBatchWithCustomData($ids: [String!]!, $type: String) { openid userIdInIdp userId - connectionId + extIdpId isSocial provider type diff --git a/lib/management/organization_management_client_test.go b/lib/management/organization_management_client_test.go index d51065f..9ab7e9f 100644 --- a/lib/management/organization_management_client_test.go +++ b/lib/management/organization_management_client_test.go @@ -48,7 +48,7 @@ func TestClient_All(t *testing.T) { func TestClient_Detail(t *testing.T) { client := NewClient(userPoolId, appSecret) log.Println("==========通过 ID 获取用户信息==========") - resp2, _ := client.Detail("611a149db64310ca4764ab15") + resp2, _ := client.Detail("61e7fc4beff20c6bd8b81e4d") log.Printf("%+v\n", resp2) } func TestClient_GetOrganizationList(t *testing.T) {