phpCAS
phpCAS copied to clipboard
Implement cas encrypted attributes decryption
I'd love phpCAS to be able to decrypt attributes from CAS server > 4.1, http://jasig.github.io/cas/4.1.x/integration/Attribute-Release.html#encrypting-attributes It would mean (as well as I understand):
- using some private key stored somewhere
- dunno how to detect which attributes are to be decrypted (specify list with private key ?)
- expose a function to decrypt attribute, or transparently decode them
Unfortunately, I miss time and skills to propose a useable patch here, it's just a whish for now :)
I don't know if it helps but there's a setCasAttributeParserCallback which you can pass your parser/decrypt class to (in master branch).
See https://github.com/Jasig/phpCAS/commit/9376b31c8c51180e918efa11470f9d928cdc43ef
I'd think that this is to be included in cas protocol, it'd have been nice to have the cas library take care of it :)
Anyway, thank you for the pointer, I'll keep in mind for the next time I need this.
We are happy to receive a pull request ;-)
When (if) I have to use it :)