restapi idp

启用了cuba.web.idp.enabled,cuba.rest.idp.enabled
1.通过idp_ticket已经能获取到access_token,refresh_token,但是通过refresh_token访问刷新接口,返回空内容,怎么解决呢?
2.通过access_token访问自定义的controller,跳转到登录页面,这个怎么解决呢?

方便上传一个示例程序吗?

cubatest.zip (1.2 MB)

测试 :http://localhost:8080/app/rest/test

用你的示例程序是可以使用这个 controller 的:
image

另外,你可以参考这个帖子,了解 idp 的 rest api 用法:

一、情况下:
1、程序启动时,首先直接访问:http://localhost:8080/app/rest/test,出现下面的情况:跳转到登录页面
image

二、情况二:
1、如果先访问:http://localhost:8080/app/idp/auth:可以正常访问
image
2、然后再访问:http://localhost:8080/app/rest/test:貌似不是刚才的登录页
image
3、然后再访问一次:http://localhost:8080/app/rest/test:就能正常访问了,其中没有加入访问token信息
image

升级到 7.2.13 看看能否解决?

升级到7.2.13了,还是一样的结果