I found what I was missing, but unfortunately it did not fix the issue.

Since I am using the CAS REST API to create the TGT, I needed to include a 
call to "/v1/tickets/TGT-<some TGT ID>" using the HTTP DELETE method before 
calling the "/cas/proxy" endpoint.  

I am attaching another test run which includes the call for the TGT to be 
deleted.

I can see the TGT get destroyed in the log, but then it allows me to create 
a proxy ticket off the proxy granting ticket.  That proxy granting ticket 
is tied to the destroyed TGT.

This seems like a bug to me unless I am missing something.  Any thoughts?

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/3bc28aa1-473f-47b3-88cb-2bea1dddb37f%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.
:clean
:protected-web-app:clean
:protected-web-app:prepareInplaceWebAppFolder
:protected-web-app:createInplaceWebAppFolder UP-TO-DATE
:protected-web-app:compileJava
:protected-web-app:processResources UP-TO-DATE
:protected-web-app:classes
:protected-web-app:prepareInplaceWebAppClasses
:protected-web-app:prepareInplaceWebApp
:farmBeforeIntegrationTest
14:02:11 INFO  No Spring WebApplicationInitializer types detected on classpath
2016-07-05 14:02:12,027 INFO [org.jasig.cas.CasEnvironmentContextListener] - <
******************** Welcome to CAS *******************
CAS Version: 4.2.2
Build Date/Time: 2016-05-20T12:21:38.000-04:00
Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre
Java Vendor: Oracle Corporation
Java Version: 1.8.0_60
OS Architecture: x86_64
OS Name: Mac OS X
OS Version: 10.11.5
*******************************************************
>
14:02:12 INFO  Initializing Spring root WebApplicationContext
2016-07-05 14:02:14,321 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 3 services from 
JsonServiceRegistryDao.>
2016-07-05 14:02:14,331 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Services manager will 
reload service definitions every 60 seconds>
2016-07-05 14:02:14,520 INFO 
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <Preparing to schedule 
job to clean up after tickets...>
2016-07-05 14:02:14,520 INFO 
[org.jasig.cas.ticket.registry.DefaultTicketRegistry] - <DefaultTicketRegistry 
will clean tickets every 2 minutes>
2016-07-05 14:02:15,006 WARN [org.jasig.cas.util.WebflowCipherExecutor] - 
<Secret key for signing is not defined. CAS will attempt to auto-generate the 
signing key>
2016-07-05 14:02:15,008 WARN [org.jasig.cas.util.WebflowCipherExecutor] - 
<Generated signing key 
3zmFuLSEHghJ2M0OVgJki4wFGhAfjjzeYQKtu0Lj1tCwA_83l17dQ4zbf5FTKHXLhaaDbbxajphWXJ_NTe4fmA
 of size 512. The generated key MUST be added to CAS settings.>
2016-07-05 14:02:15,008 WARN [org.jasig.cas.util.WebflowCipherExecutor] - <No 
encryption key is defined. CAS will attempt to auto-generate keys>
2016-07-05 14:02:15,008 WARN [org.jasig.cas.util.WebflowCipherExecutor] - 
<Generated encryption key geiVFhFDQIFXFDYP of size 16. The generated key MUST 
be added to CAS settings.>
2016-07-05 14:02:16,607 INFO [org.jasig.cas.CasEnvironmentContextListener] - 
<[jetty/9.2.15.v20160210] has loaded the CAS servlet application context: Root 
WebApplicationContext: startup date [Tue Jul 05 14:02:12 EDT 2016]; root of 
context hierarchy>
14:02:16 INFO  Initializing Spring FrameworkServlet 'cas'
14:02:22 INFO  No Spring WebApplicationInitializer types detected on classpath
14:02:22 INFO  Initializing Spring root WebApplicationContext
2016-07-05 14:02:24,569 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 3 services from 
JsonServiceRegistryDao.>
2016-07-05 14:02:24,656 INFO [org.jasig.cas.CasEnvironmentContextListener] - <
******************** Welcome to CAS *******************
CAS Version: 4.2.2
Build Date/Time: 2016-05-20T12:21:38.000-04:00
Java Home: /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/jre
Java Vendor: Oracle Corporation
Java Version: 1.8.0_60
OS Architecture: x86_64
OS Name: Mac OS X
OS Version: 10.11.5
*******************************************************
>
2016-07-05 14:02:25,166 WARN [org.jasig.cas.util.WebflowCipherExecutor] - 
<Secret key for signing is not defined. CAS will attempt to auto-generate the 
signing key>
2016-07-05 14:02:25,168 WARN [org.jasig.cas.util.WebflowCipherExecutor] - 
<Generated signing key 
Wny-zlH5cca0QmYJHAuenJ7aU4U57dJEckfendO9bpqCPAQoUL63GeYO2kYbfPCruUabBn1be07a5AQuEDOYUA
 of size 512. The generated key MUST be added to CAS settings.>
2016-07-05 14:02:25,168 WARN [org.jasig.cas.util.WebflowCipherExecutor] - <No 
encryption key is defined. CAS will attempt to auto-generate keys>
2016-07-05 14:02:25,168 WARN [org.jasig.cas.util.WebflowCipherExecutor] - 
<Generated encryption key IrkXDxvPkcQUtMGS of size 16. The generated key MUST 
be added to CAS settings.>
14:02:26 INFO  Initializing Spring FrameworkServlet 'cas-management'
14:02:26 INFO  Jetty 9.2.15.v20160210 started and listening on ports 8080, 8443
14:02:26 INFO  Central Authentication System (CAS) runs at:
14:02:26 INFO    http://localhost:8080/cas
14:02:26 INFO    https://localhost:8443/cas
14:02:26 INFO  CAS Management runs at:
14:02:26 INFO    http://localhost:8080/cas-services
14:02:26 INFO    https://localhost:8443/cas-services
14:02:26 INFO  protected-web-app runs at:
14:02:26 INFO    http://localhost:8080/protected-web-app
14:02:26 INFO    https://localhost:8443/protected-web-app
:farmIntegrationTest
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:war
:assemble
:compileTestJava UP-TO-DATE
:compileTestGroovy
:processTestResources
:testClasses
:test
2016-07-05 14:02:29,348 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Reloading registered 
services.>
2016-07-05 14:02:29,355 INFO 
[org.jasig.cas.services.DefaultServicesManagerImpl] - <Loaded 3 services from 
JsonServiceRegistryDao.>
2016-07-05 14:02:30,032 INFO 
[org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - 
<AcceptUsersAuthenticationHandler successfully authenticated casuser>
2016-07-05 14:02:30,036 INFO 
[org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - 
<Authenticated casuser with credentials [casuser].>
2016-07-05 14:02:30,040 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail 
record BEGIN
=============================================================
WHO: casuser
WHAT: Supplied credentials: [casuser]
ACTION: AUTHENTICATION_SUCCESS
APPLICATION: CAS
WHEN: Tue Jul 05 14:02:30 EDT 2016
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>
2016-07-05 14:02:30,052 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail 
record BEGIN
=============================================================
WHO: audit:unknown
WHAT: 
TGT-**********************************************w5lfY41viW-cas01.example.org
ACTION: TICKET_GRANTING_TICKET_CREATED
APPLICATION: CAS
WHEN: Tue Jul 05 14:02:30 EDT 2016
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>
2016-07-05 14:02:30,132 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - 
<Granted ticket [ST-1-OKHvLVQs6beAA9midw5B-cas01.example.org] for service 
[https://localhost:8443/protected-web-app/] and principal [casuser]>
2016-07-05 14:02:30,135 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail 
record BEGIN
=============================================================
WHO: casuser
WHAT: ST-1-OKHvLVQs6beAA9midw5B-cas01.example.org for 
https://localhost:8443/protected-web-app/
ACTION: SERVICE_TICKET_CREATED
APPLICATION: CAS
WHEN: Tue Jul 05 14:02:30 EDT 2016
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>
2016-07-05 14:02:30,236 INFO 
[org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - 
<HttpBasedServiceCredentialsAuthenticationHandler successfully authenticated 
https://localhost:8443/protected-web-app/proxyUrl>
2016-07-05 14:02:30,236 INFO 
[org.jasig.cas.authentication.PolicyBasedAuthenticationManager] - 
<Authenticated https://localhost:8443/protected-web-app/proxyUrl with 
credentials [https://localhost:8443/protected-web-app/proxyUrl].>
2016-07-05 14:02:30,237 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail 
record BEGIN
=============================================================
WHO: https://localhost:8443/protected-web-app/proxyUrl
WHAT: Supplied credentials: [https://localhost:8443/protected-web-app/proxyUrl]
ACTION: AUTHENTICATION_SUCCESS
APPLICATION: CAS
WHEN: Tue Jul 05 14:02:30 EDT 2016
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>
2016-07-05 14:02:30,244 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail 
record BEGIN
=============================================================
WHO: casuser
WHAT: 
PGT-**********************************************hmTxymZHru-cas01.example.org
ACTION: PROXY_GRANTING_TICKET_CREATED
APPLICATION: CAS
WHEN: Tue Jul 05 14:02:30 EDT 2016
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>
2016-07-05 14:02:30,255 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail 
record BEGIN
=============================================================
WHO: audit:unknown
WHAT: ST-1-OKHvLVQs6beAA9midw5B-cas01.example.org
ACTION: SERVICE_TICKET_VALIDATED
APPLICATION: CAS
WHEN: Tue Jul 05 14:02:30 EDT 2016
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>
2016-07-05 14:02:31,041 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail 
record BEGIN
=============================================================
WHO: audit:unknown
WHAT: 
TGT-**********************************************w5lfY41viW-cas01.example.org
ACTION: TICKET_GRANTING_TICKET_DESTROYED
APPLICATION: CAS
WHEN: Tue Jul 05 14:02:31 EDT 2016
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>
2016-07-05 14:02:31,058 INFO [org.jasig.cas.CentralAuthenticationServiceImpl] - 
<Granted ticket [PT-2-ZrR7gFlK57dzHKdXEKqa-cas01.example.org] for service 
[https://localhost:8443/protected-web-app/] for user [casuser]>
2016-07-05 14:02:31,060 INFO 
[org.jasig.inspektr.audit.support.Slf4jLoggingAuditTrailManager] - <Audit trail 
record BEGIN
=============================================================
WHO: https://localhost:8443/protected-web-app/proxyUrl
WHAT: PT-2-ZrR7gFlK57dzHKdXEKqa-cas01.example.org for 
https://localhost:8443/protected-web-app/
ACTION: PROXY_TICKET_CREATED
APPLICATION: CAS
WHEN: Tue Jul 05 14:02:31 EDT 2016
CLIENT IP ADDRESS: 127.0.0.1
SERVER IP ADDRESS: 127.0.0.1
=============================================================

>
:shutdownHook
:check
:build
:farmAfterIntegrationTest
14:02:33 INFO  Destroying Spring FrameworkServlet 'cas-management'
14:02:33 INFO  Closing Spring root WebApplicationContext
2016-07-05 14:02:33,650 WARN 
[org.jasig.cas.services.JsonServiceRegistryConfigWatcher] - <Directory key is 
no longer valid. Quitting watcher service>
14:02:33 INFO  Destroying Spring FrameworkServlet 'cas'
14:02:33 INFO  Closing Spring root WebApplicationContext
2016-07-05 14:02:33,675 WARN 
[org.jasig.cas.services.JsonServiceRegistryConfigWatcher] - <Directory key is 
no longer valid. Quitting watcher service>
Server stopped.
:protected-web-app:farmBeforeIntegrationTest SKIPPED
:protected-web-app:farmIntegrationTest SKIPPED
:protected-web-app:farmAfterIntegrationTest SKIPPED

BUILD SUCCESSFUL

Total time: 1 mins 3.39 secs

Reply via email to