graal icon indicating copy to clipboard operation
graal copied to clipboard

[GR-36719] Automatically register the Sasl provider.

Open graalvmbot opened this issue 3 years ago • 1 comments

The Sasl service does not conform to the JCA and therefor is not automatically registered by our SecurityServicesFeature. This service uses SaslClient#createSaslClient and SaslServer#createSaslServer methods as a means of instantiating different implementations of the service. However, we cannot use these methods directly for reachability handlers, as the Sasl service is used through a facade class: javax.security.sasl.Sasl

This PR adds the special handling required to automatically register the Sasl provider when used through javax.security.sasl.Sasl

graalvmbot avatar Jan 31 '22 13:01 graalvmbot

@gradinac it looks like this one slipped through the cracks :)

zakkak avatar Sep 15 '22 12:09 zakkak

@zakkak thank you for looking into this one! :) It had been gathering dust for a bit, I've rebased it and added internal tests, I'll look into merging it to master now :)

gradinac avatar Sep 27 '22 10:09 gradinac

I have the probleme of build native here to use "-H:AdditionalSecurityProviders=software.amazon.msk.auth.iam.internals.IAMSaslClientProvider"

Do you know how to solve this

cmtoan avatar Jan 24 '24 10:01 cmtoan