phpCAS icon indicating copy to clipboard operation
phpCAS copied to clipboard

Implement cas encrypted attributes decryption

Open dgeo opened this issue 9 years ago • 4 comments

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 :)

dgeo avatar Nov 28 '15 11:11 dgeo

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

gboddin avatar Jan 26 '17 20:01 gboddin

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.

dgeo avatar Jul 15 '17 16:07 dgeo

We are happy to receive a pull request ;-)

jfritschi avatar Jul 15 '17 19:07 jfritschi

When (if) I have to use it :)

dgeo avatar Jul 15 '17 20:07 dgeo