oauth2授权码问题

Blade 未结 3 1242
clh
clh 2021-05-26 11:14

一、该问题的重现步骤是什么?

1. oauth2授权码,出现

{"code":500,"success":false,"data":{},"msg":"User must be authenticated with Spring Security before authorization can be completed."}

2. 在浏览器上直接访问认证服务(不通过网关),输入授权码方式,在浏览器敲上

http://localhost:8100/oauth/authorize?tenant_id=000000&client_id=sword&redirect_uri=http://localhost:8888&code=233333&response_type=code

没有出现,输入用户名和密码窗口,出现了是

User must be authenticated with Spring Security before authorization can be completed.

3.


二、你期待的结果是什么?实际看到的又是什么?

授权码,输入上面地址后,应该出现输入用户名和密码窗口

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

bladex企业版 2.8.0.RELEASE

windows7 操作系统上


四、请提供详细的错误堆栈信息,这很重要。

image.png


代码配置:

image.png

image.png

image.png



五、若有更多详细信息,请在下面提供。

3条回答
  •  clh
    clh (楼主)
    2021-06-18 17:01

    我按上面的文档,在POSTMAN 导入JSON,发送请求,有正常的返回

    image.png

    但是 在浏览器输入地址,用授权码模式后,就不出现登录页面,奇怪

    image.png

提交回复