Closed shawnxiang0511 closed 2 years ago
JDK 版本(必填) : 1.8.0 源码版本(必填):4.11.0 lamp-cloud-pro-datasource-column MySQL(必填): 8.0.30 Nacos(必填):2.0.3
无法通过postman请求登录认证 1、请求地址为http://127.0.0.1:18760/api/oauth/anyTenant/login 2、请求头为: Authorization,值是Basic ZnJlaWdodF93ZWJfcHJvOmZyZWlnaHRfd2ViX3Byb19zZWNyZXQ= tenant,值是MDAwMA== token,值是Bearer test
3、请求体body为raw选项,值为如下 { "code": "", "grantType": "PASSWORD", "password": "lamp", "refreshToken": "", "username": "lamp" }
postman返回的错误信息为 { "code": -1, "data": null, "msg": "验证token出错", "path": null, "extra": null, "timestamp": "1663828043397", "errorMsg": "", "isSuccess": false }
如果该issue帮助了你, 麻烦给项目点个star, 并给当前issue回复一下 “👍” 或者 “已解决”.
已解决,主要是请求头需要传入正确的applicationID、验证参数,租户信息
版本信息:
JDK 版本(必填) : 1.8.0 源码版本(必填):4.11.0 lamp-cloud-pro-datasource-column MySQL(必填): 8.0.30 Nacos(必填):2.0.3
问题描述:
无法通过postman请求登录认证 1、请求地址为http://127.0.0.1:18760/api/oauth/anyTenant/login 2、请求头为: Authorization,值是Basic ZnJlaWdodF93ZWJfcHJvOmZyZWlnaHRfd2ViX3Byb19zZWNyZXQ= tenant,值是MDAwMA== token,值是Bearer test
3、请求体body为raw选项,值为如下 { "code": "", "grantType": "PASSWORD", "password": "lamp", "refreshToken": "", "username": "lamp" }
报错截图
postman返回的错误信息为 { "code": -1, "data": null, "msg": "验证token出错", "path": null, "extra": null, "timestamp": "1663828043397", "errorMsg": "", "isSuccess": false }
重现步骤
支持一下
如果该issue帮助了你, 麻烦给项目点个star, 并给当前issue回复一下 “👍” 或者 “已解决”.