Skip to content

Fix incorrect usage of phpCAS on PT renewal#12

Open
mabes wants to merge 1 commit intodfwarden:masterfrom
mabes:master
Open

Fix incorrect usage of phpCAS on PT renewal#12
mabes wants to merge 1 commit intodfwarden:masterfrom
mabes:master

Conversation

@mabes
Copy link

@mabes mabes commented Nov 14, 2014

Using retrievePT without updating the phpCAS client from session info
will result in an incorrect call to the CAS server :

Error while retrieving new PT: PT retrieving failed
(code=INVALID_REQUEST', message='pgt' and 'targetService' parameters are both
required')

This only happens in cases where the PT becomes invalid without
expiring, for instance if the credential cache does not manage multiple
credentials, or if it expires for any reason other than timing out.
This particular cas was not handled by the previous code.

Using retrievePT without updating the phpCAS client from session info
will result in an incorrect call to the CAS server :

Error while retrieving new PT: PT retrieving failed
(code=`INVALID_REQUEST', message=`'pgt' and 'targetService' parameters are both
required')

This only happens in cases where the PT becomes invalid without
expiring, for instance if the credential cache does not manage multiple
credentials, or if it expires for any reason other than timing out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant