iam icon indicating copy to clipboard operation
iam copied to clipboard

IAM fails in decrypting assertions issued by Shibboleth IDP v. 4

Open andreaceccanti opened this issue 3 years ago • 2 comments

2021-03-02 19:31:37.543  INFO 89038 --- [nio-8080-exec-2] i.a.ExternalAuthenticationFailureHandler : External authentication failure: Response doesn't have any valid assertion which would pass subject validation

org.springframework.security.authentication.AuthenticationServiceException: Error validating SAML message

A (quite unacceptable) workaround is to request the use of unencrypted assertions on the IdP side.

andreaceccanti avatar Mar 02 '21 18:03 andreaceccanti

This is caused by the move to AES-GCM encryption (see here) which is backward incompatible.

Another workaround, as suggested in the above wiki page, is to revert shib idp configuration to AES-CBC, either globally or per endpoint.

andreaceccanti avatar Mar 03 '21 08:03 andreaceccanti

I think the priority of this issue should be raised. I had the problem with a couple of IdPs already who moved to v4 and upgraded to the AES-GCM encryption (which is desirable I think from the security point of view). It would be good to avoid having IAM not able to interact with some IdPs because they don't accept to downgrade the encryption, a small but non-zero risk IMO. I don't have any clue about how complex a change it is but we need a solution at some point...

jouvin avatar May 31 '23 13:05 jouvin