开发者

Restful CAS client and Proxy Granting Tickets

I have an application that uses a CAS server to authenticate. I first use a REST call to generate a ticket generating ticket which is then validated successfully and a service ticket is generated.

My next step is to pass this ticket to another webapp as开发者_如何学运维 a parameter in a web service call and let them login to the same CAS server with it. Apparently this kind of behaviour is possible if I use proxy granting tickets instead of ticket granting tickets but I can't see any way to get a PGT through the REST client.

Can anyone help with getting PGTs, or am I on a wild goose chase?


Try looking at https://wiki.jasig.org/display/CAS/Proxy+CAS+Walkthrough

I went through the example, mimicking the various calls in code and it worked fine. The tricky bit was then writing the code to represent that code. In my case, it had to fit in with Spring Security


Spring Security comes with libraries for authenticating to a stateless service using CAS. This includes requesting a ProxyGrantingTicket and then requesting a ProxyTicket.

The Spring Security 3.1.6 docs describe this in section 22.3.3

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜