Announcement Announcement Module
Collapse
No announcement yet.
why i get TGT instead of PGT from cas server? can anyone help?? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • why i get TGT instead of PGT from cas server? can anyone help??

    According to https://wiki.jasig.org/display/CAS/P...AS+Walkthrough, all i need to do is to append a pgtUrl to the serviceValidate request url. So i did this:

    https://cas.roland.org:8443/cas/serv.../bookservice/j

    I got the right response
    <cas:serviceResponse xmlns:cas='http://www.yale.edu/tp/cas'>
    <cas:authenticationSuccess>
    <cas:user>
    11
    </cas:user>
    <cas:attributes>
    <cas:role>ROLE_ADMIN</cas:role>
    </cas:attributes>
    <casroxyGrantingTicket>PGTIOU-12-udJGiPFxfhlMG4bzdqp9-cas01.example.org</casroxyGrantingTicket>
    </cas:authenticationSuccess>
    </cas:serviceResponse>

    but when i look through the server log, i got to know that i didn't get PGT, got TGT instead. Here is my log in

    127.0.0.1 - - [19/Nov/2012:18:12:53 +0800] "GET /bookservice/j_spring_cas_security_proxy_receptor?pgtIou=PGTIOU-18-uCuBQJnD3q6CpByeAjky-cas01.example.org&pgtId=TGT-41-ssfMDvMrN16ILKOYV11jfwmFdfcZpjQbpPKWFIRVYMVhvDeAdm-cas01.example.org HTTP/1.1" 200 98

    So i can't get PT neither. Can anyone help. Thanks in advance.
    Last edited by roland_zong; Nov 19th, 2012, 06:42 AM.

  • #2
    Solved now.
    After a lot of debugging, i found that CAS now use "TGT-" prefix for Proxy Granting Ticket instead of "PGT-". That's so confusing.
    Last edited by roland_zong; Nov 21st, 2012, 01:25 AM.

    Comment

    Working...
    X