Hi William,

you’d need to map the default cookie cipher executor to the noop one here:

https://github.com/apereo/cas/blob/4.2.x/cas-server-webapp/src/main/webapp/WEB-INF/deployerConfigContext.xml#L76
 
<https://github.com/apereo/cas/blob/4.2.x/cas-server-webapp/src/main/webapp/WEB-INF/deployerConfigContext.xml#L76>

like so:

<alias name=“noOPCipherExecutor" alias="defaultCookieCipherExecutor" />

You’d also need to explicitly define the noop cipher executor as it’s not 
marked with @Component and therefor not picked up by Spring component scanning 
machinery:

https://github.com/apereo/cas/blob/4.2.x/cas-server-core-util/src/main/java/org/jasig/cas/util/NoOpCipherExecutor.java
 
<https://github.com/apereo/cas/blob/4.2.x/cas-server-core-util/src/main/java/org/jasig/cas/util/NoOpCipherExecutor.java>

Those are just mechanics - but I’d first ask yourself - why you need to disable 
the encryption, etc.

Cheers,
D.

> On May 10, 2016, at 10:13 AM, William <[email protected]> wrote:
> 
> Misagh,
> 
> Is there a way to tell CAS not to encrypt the ticket granting cookie so I can 
> use it against the serviceValidate endpoint?
> 
> Regards,
> 
> William Crowell
> 
> On Tuesday, May 3, 2016 at 1:04:18 PM UTC-4, Misagh Moayyed wrote:
> What you should be doing is:
> 
>  
> 1.       Login, get a ticket, validate it.
> 
> 2.       Login with a renew=true, get a ticket, validate it.
> 
> 3.       Login, get a ticket, validate it with renew=true
> 
> 4.       Login with a renew=true, get a ticket, validate it with renew=true
> 
>  
> PGTs are an entirely different matter. I haven’t looked at your tests, but 
> you should not be reusing tickets.
> 
>  
> From: [email protected] <javascript:> [mailto:[email protected] 
> <javascript:>] On Behalf Of William
> Sent: Monday, May 2, 2016 1:47 PM
> To: CAS Community <[email protected] <javascript:>>
> Subject: [cas-user] Re: /p3/serviceValidate returning "Ticket...not 
> recognized"
> 
>  
> Makes sense.  I have been writing functional tests in Geb: 
> https://github.com/wcrowell/cas-functional-tests 
> <https://github.com/wcrowell/cas-functional-tests>
>  
> I am specifically working on this test: 
> https://github.com/wcrowell/cas-functional-tests/blob/master/src/test/groovy/RenewSpec.groovy
>  
> <https://github.com/wcrowell/cas-functional-tests/blob/master/src/test/groovy/RenewSpec.groovy>
>  
> I am using this document as a blueprint for the tests: 
> https://wiki.jasig.org/display/CAS/CAS+Functional+Tests 
> <https://wiki.jasig.org/display/CAS/CAS+Functional+Tests>
>  
> The tests repeat the clause: "with a valid service ticket"
> 
>  
> Is there a way I could use another ticket type (e.g. Proxy Granting Ticket) 
> to validate the tickets or maybe I am making this too complicated.
> 
>  
> Regards,
> 
>  
> William Crowell
> 
> -- 
> 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] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>.
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/ 
> <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/a32396aa-15ff-4571-be88-a8a7c3e9d2e6%40apereo.org
>  
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/a32396aa-15ff-4571-be88-a8a7c3e9d2e6%40apereo.org?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/a/apereo.org/d/optout 
> <https://groups.google.com/a/apereo.org/d/optout>.
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/ 
> <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/eec4a0e8-f9fd-4213-a463-a644df2bf5c3%40apereo.org
>  
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/eec4a0e8-f9fd-4213-a463-a644df2bf5c3%40apereo.org?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/a/apereo.org/d/optout 
> <https://groups.google.com/a/apereo.org/d/optout>.

-- 
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/E6CFA092-9875-49D1-B22E-E4419BB627FE%40unicon.net.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

Reply via email to