Delete CASGatewayCookie after successful authentication.

This allows people to reauthenticate after their mod_auth_cas session times out when using gateway mode.
Thanks Phil, that helps.

It runs now, but some of the tests fail:

Running suite(s): mod_auth_cas
69%: Checks: 56, Failures: 17, Errors: 0
mod_auth_cas_test.c:236:F:core:getCASScope_test:0: Failed
mod_auth_cas_test.c:618:F:core:CASCleanCache_test:0: Failed
mod_auth_cas_test.c:666:F:core:createCASCookie_test:0: Failed
...

Is that normal? Anyway, I should be able to write my test now.

Earl
-

On Mon, 18 Aug 2014, pames <notifications@github.com> wrote:

>
>In src/mod_auth_cas.c:
>
>> @@ -2061,6 +2061,10 @@ int cas_authenticate(request_rec *r)
>>  				return HTTP_INTERNAL_SERVER_ERROR;
>>
>>  			setCASCookie(r, (ssl ? d->CASSecureCookie : d->CASCookie), cookieString, ssl, CAS_S
>ESSION_EXPIRE_SESSION_SCOPE_TIMEOUT);
>> +			/* remove gateway cookie so they can reauthenticate later */
>> +			if (getCASCookie(r, d->CASGatewayCookie)) {
>> +			    setCASCookie(r, d->CASGatewayCookie, "TRUE", ssl, CAS_SESSION_EXPIRE_COOKIE_NOW
>);
>
>Can you re-run configure with --with-check and try again?
>
>(Sorry, that should be documented)
>
>—
>Reply to this email directly or view it onGitHub.[354268__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNDAxMDA4OCwiZGF0Y
>SI6eyJpZCI6MzQ5MDAwODV9fQ==--07681c587145863153bfab8f97b6a33bc60f9106.gif]
>
>
>