From 491443f7e7753923bdac6cd35957858a19f36329 Mon Sep 17 00:00:00 2001 From: Lowis <370483891@qq.com> Date: Fri, 2 Jul 2021 11:02:01 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=88=A4=E6=96=AD=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E9=94=99=E8=AF=AF=EF=BC=8C=E5=AF=BC=E8=87=B4email?= =?UTF-8?q?=E3=80=81phone=E3=80=81address=20=E4=B8=8E=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E9=A2=84=E6=9C=9F=E4=B8=8D=E7=AC=A6=E7=9A=84BUG=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=9D=9E=E5=88=A4=E6=96=AD=E5=8D=B3=E5=8F=AF=E8=A7=A3?= =?UTF-8?q?=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fujieid/jap/ids/endpoint/UserInfoEndpoint.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jap-ids/src/main/java/com/fujieid/jap/ids/endpoint/UserInfoEndpoint.java b/jap-ids/src/main/java/com/fujieid/jap/ids/endpoint/UserInfoEndpoint.java index 478572b..ff37731 100644 --- a/jap-ids/src/main/java/com/fujieid/jap/ids/endpoint/UserInfoEndpoint.java +++ b/jap-ids/src/main/java/com/fujieid/jap/ids/endpoint/UserInfoEndpoint.java @@ -79,7 +79,7 @@ public class UserInfoEndpoint extends AbstractEndpoint { } } // This scope value requests access to the email and email_verified Claims. - if (scopes.contains("email")) { + if (!scopes.contains("email")) { ScopeClaimsMapping scopeClaimsMapping = ScopeClaimsMapping.email; List claims = scopeClaimsMapping.getClaims(); for (String claim : claims) { @@ -87,7 +87,7 @@ public class UserInfoEndpoint extends AbstractEndpoint { } } // This scope value requests access to the phone_number and phone_number_verified Claims. - if (scopes.contains("phone")) { + if (!scopes.contains("phone")) { ScopeClaimsMapping scopeClaimsMapping = ScopeClaimsMapping.phone; List claims = scopeClaimsMapping.getClaims(); for (String claim : claims) { @@ -95,7 +95,7 @@ public class UserInfoEndpoint extends AbstractEndpoint { } } // This scope value requests access to the address Claim. - if (scopes.contains("address")) { + if (!scopes.contains("address")) { ScopeClaimsMapping scopeClaimsMapping = ScopeClaimsMapping.address; List claims = scopeClaimsMapping.getClaims(); for (String claim : claims) { -- Gitee