当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
214 Star 596 Fork 307

Geek / central-platform
暂停

 / 详情

后台登录错误

待办的
创建于  
2018-11-02 16:37

查看后台管理的源代码,login.html
layer.load(2);
$.ajax({
url: config.base_server + 'api-auth/oauth/token',
//url: 'http://127.0.0.1:8000/oauth/token',
data: field,
type: 'POST',

这段代码调用的是oauth/token,我没有找到这个路径,请问这个controller在哪里?

评论 (4)

oygitee 创建了任务

{[/oauth/token],methods=[GET]}" onto public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.getAccessToken(java.security.Principal,java.util.Map<java.lang.String, java.lang.String>) throws org.springframework.web.HttpRequestMethodNotSupportedException

程序启动的时候有一个这种东西,会把[/oauth/token]等等列举出来,后面跟着有地址.或者这个项目里是用了swgger,可以用那个看,最后,你问的这个问题,别人都注释了没用了

@cyc川 你好, url: config.base_server + 'api-auth/oauth/token',这个代码没有注释,另外oauth默认的url是/oauth/token,在启动中确实有。但我看了一下代码,作者把这个url重写了一个,改写为/oauth/user/token和/oauth/client/token,所以我看完以后就不太明白作者的想法。而且我下载代码后不能通过后台登录,显示找不到/oauth/token这个url,后来我改为/oauth/user/token和其他一些代码才能正常登录。我应该怎么做才是正确的。谢谢!

zuul,你看一下这个,然后再对照配置文件看一下.应该就知道了

@cyc川 这个问题确实也令我挺困惑的,那/api-auth/oauth/token这个地址是映射到auth-server 中 /oauth/user/token , /oauth/client/token ,的哪一个地址呢?

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(3)
1833155 cyc zero 1589874398
Java
1
https://gitee.com/GeekPerson/central-platform.git
git@gitee.com:GeekPerson/central-platform.git
GeekPerson
central-platform
central-platform

搜索帮助