如何授权码获取Blade-Auth

Java 已结 1 1265
SophieRoyal
SophieRoyal 剑者 2020-04-16 10:11

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

1. 访问地址,账号密码为默认的admin: http://localhost:8100/oauth/authorize?
tenant_id=000000&client_id=saber&redirect_uri=http://localhost:8080&code=233333&response_t
ype=code
2. 获取跳转后的code值(http://localhost:8888/?code=VhYNLR)之后, 调用 http://localhost/bladeauth/oauth/token 传入对应的参数


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

第一步就卡死了,我这里后台采用的springboot版本,端口是80,ip是192.168.0.9,前端框架采用saber,地址http://192.168.0.5:1888/,按照模式我应该更改地址http://192.168.0.9/blade-oauth/authorize?
tenant_id=000000&client_id=saber&redirect_uri=http://localhost:8080&code=233333&response_t
ype=code

或者

http://192.168.0.9/oauth/authorize?
tenant_id=000000&client_id=saber&redirect_uri=http://localhost:8080&code=233333&response_t
ype=code

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

采用BladeX SpringBoot版本,在window10上


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

打不开链接,我想知道怎么获取Blade-Auth:的值,或者怎么产生的



我本地运行=http://192.168.0.9/doc.html#/home

前端运行链接=http://192.168.0.5:1888/#/login


1条回答
  •  smallchill
    smallchill (最佳回答者)
    2020-04-16 10:24

    springboot版本未集成oauth2,这个是只有cloud版本才有的

    1 讨论(1)
提交回复