记录一下spring security+oauth2 指定登陆后跳转路径失败原因

时间:2024-05-23 09:44:11

真的太坑了。。
授权码模式的访问路径应该是
localhost:40400/auth/oauth/authorize? client_id=XcWebApp&response_type=code&scop=app&redirect_uri=http://localhost+返回的授权码。
而我直接输入了localhost:40400/auth/login。。跳转的登录界面是一模一样的。
记录一下spring security+oauth2 指定登陆后跳转路径失败原因然后我就奇怪为啥我输入了正确的客户端账号密码返回的是白页。

记录一下spring security+oauth2 指定登陆后跳转路径失败原因记录一下spring security+oauth2 指定登陆后跳转路径失败原因去源码查询:
记录一下spring security+oauth2 指定登陆后跳转路径失败原因到这儿发现认证通过了啊,为什么会失败呢?

后来参考了大佬的文章:https://blog.****.net/rfjian123/article/details/81742165.

进入了这个源码才发现是成功后的跳转界面问题:
记录一下spring security+oauth2 指定登陆后跳转路径失败原因。。。。卡了好久,人都晕啦!

最后这个是正确的返回授权码界面。

记录一下spring security+oauth2 指定登陆后跳转路径失败原因