授权码模式(authorization_code)调用问题

Blade 未结 2 1255
guoqingshan
guoqingshan 剑圣 2020-09-24 15:44

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

1. 打开浏览器访问如下地址:

http://172.16.0.245:8089/oauth/authorize?tenant_id=000000&client_id=sword&redirect_uri=http://localhost:8080&code=233333&response_type=code

8089是网关gateway,

2. 没有出现提示 输入用户名和密码,

{"code":404,"data":null,"message":"Failed to handle request [GET http://172.16.0.245:8089/oauth/authorize?tenant_id=000000&client_id=sword&redirect_uri=http://localhost:8080&code=233333&response_type=code]: 404 NOT_FOUND"}

2. 

3.


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


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

2.6.1

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


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

2条回答
  • 2020-09-24 16:38

    授权码模式访问的是blade-auth服务的端口,不是网关端口。把8089改成blade-auth端口就可以了

    0 讨论(0)
  • 2020-10-08 10:26

    redirect_uri指的是应用首页吗,还是接口地址?目前报错也是

    {"code":404,"data":null,"message":"Failed to handle request [GET http://localhost:8888/?code=WF0978]: 404 NOT_FOUND"}


    0 讨论(0)
提交回复