✅已解决 | 有AuthenticationClient.introspectToken 调用的sample代码吗

有AuthenticationClient.introspectToken 调用的sample代码吗

或者Java后台自行验证token是否有效的sample代码有吗?

有的
验证 access_token 可参考 标准协议认证模块 | Authing 文档
验证 Id_token 可参考
标准协议认证模块 | Authing 文档

文档中的返回值和实际结果有很大区别。我在后台维护的性别/邮件 地区都没有返回
{updated_at=2021-11-26T12:01:23.465Z, address={country=null, postal_code=null, region=null, formatted=null}, phone_number_verified=true, phone_number=13940897258, locale=null, zoneinfo=null, birthdate=null, gender=U, email_verified=false, email=null, website=null, picture=https://files.authing.co/user-contents/photos/3452fb47-fb19-4092-a72e-94d5f7db4c1d.jpg, profile=null, preferred_username=null, nickname=null, middle_name=null, family_name=null, given_name=null, name=李***, sub=618a58cf0b1cf526a8e444e2, external_id=null, unionid=null, username=null, data={type=user, userPoolId=6163a269fc610e3f2130dd1d, appId=6184880089185e871ed20107, id=618a58cf0b1cf526a8e444e2, xxuserId=618a58cf0b1cf526a8e444e2, _id=618a58cf0b1cf526a8e444e2, phone=139408xx258, email=null, username=null, unionid=null, openid=null, clientId=6163a269fc610e3f2130dd1d}, userpool_id=6163a269fc610e3f2130dd1d, aud=6184880089185e871ed20107, exp=1639137919, iat=1637928319, iss=https://hep-pxy.authing.cn/oidc}

能不能通过ID token获得当前用户信息,和登录组件返回的用户信息一致?

您好,请提供下登录组件用户信息截图,及调用方法截图,以方便我们后续分析

1赞