Hi Guys,

I'm trying to request a service ticket according to documentation 
https://apereo.github.io/cas/6.0.x/protocol/REST-Protocol.html#request-a-service-ticket
but I don't see it in the response however I see it in the log file and 
this ticket is validated without problems. How to obtain service ticket via 
rest api response?

In my case I send a POST request to my 
CAS http://10.131.30.55:8443/cas/v1/tickets/TGT-2-t-zrIbxxxxxxxxxxxxxxx 
with parameter service=http://www.example.com
and Content-Type=application/x-www-form-urlencoded

This is a response headers:
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Content-Type: application/vnd.cas.services+yaml;charset=UTF-8
Content-Length: 0
Date: Fri, 11 Oct 2019 22:19:54 GMT
Server: Apereo CAS

This is a log file:
2019-10-11 22:19:54,030 INFO 
[org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit 
trail record BEGIN
=============================================================
WHO: gsi
WHAT: ST-1-l6udFD0OXHBYplF91h--lXRnVdY8d63a7ebd424 for 
http://www.example.com
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Fri Oct 11 22:19:54 UTC 2019
CLIENT IP ADDRESS: 10.85.189.191
SERVER IP ADDRESS: 172.19.0.2
=============================================================

>
2019-10-11 22:19:54,036 INFO 
[org.apereo.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit 
trail record BEGIN
=============================================================
WHO: gsi
WHAT: [status=200-OK,body=ST-1-l6udFD0OXHBYplF91h--lXRnVdY8d63a7ebd424]
ACTION: REST_API_SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Fri Oct 11 22:19:54 UTC 2019
CLIENT IP ADDRESS: 10.85.189.191
SERVER IP ADDRESS: 172.19.0.2
=============================================================


-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/46083c84-300b-4681-a2c6-fd51c3bdfe7d%40apereo.org.

Reply via email to