您好,我使用的cuba7.2.2版本.
按您的step1使用idp获取ticket,能获取到ticket.
但是step2中,sp获取token,却出错了.(此处sp与idp服务是分开的,且各自有各自的数据库)
idp配置:
cuba.webAppUrl = http://cuba1:8080/app/
cuba.idp.serviceProviderUrls = http://cuba1:8080/app,http://cuba2:8081/app2,http://cuba3:8082/app3
cuba.idp.serviceProviderUrlMasks = http://cuba1:8080/app/.*,http://cuba2:8081/app2/.*,http://cuba3:8082/app3/.*
cuba.idp.serviceProviderLogoutUrls = http://cuba1:8080/app/dispatch/idpc/logout,http://cuba2:8081/app2/dispatch/idpc/logout,http://cuba3:8082/app3/dispatch/idpc/logout
cuba.idp.trustedServicePassword = 123456
cuba.web.idp.baseUrl = http://cuba1:8080/app/idp/
cuba.web.idp.trustedServicePassword = 123456
cuba.web.idp.enabled =true
sp配置:
cuba.rest.client.id=admin
cuba.rest.client.secret=123456
cuba.rest.idp.baseUrl = ${cuba.web.idp.baseUrl}
cuba.rest.idp.enabled = true
cuba.rest.idp.trustedServicePassword = ${cuba.web.idp.trustedServicePassword}
cuba.rest.idp.defaultRedirectUrl = https://www.baidu.com
cuba.idp.trustedServicePassword = ${cuba.web.idp.trustedServicePassword}
cuba.web.idp.enabled =true
cuba.web.idp.baseUrl = http://cuba1:8080/app/idp/
#cuba.web.idp.baseUrl = http://198.18.19.202:28080/app/idp/
cuba.web.idp.trustedServicePassword = 123456
期待您的回复.