We are currently facing two SAML issue with Kibana/ES version 8.7.1 and RoR 1.48 (+ Azure AD):
When the user is previously logged with other authentication methods RoR will just reject the authentication and we get a message like:
AADSTS75011: Authentication method ‘X509, MultiFactor’ by which the user authenticated with the service doesn’t match requested authentication method ‘Password, ProtectedTransport’. Contact the application owner.
How can we set the valid authentication methods in Readonly. It should be controlled with the parameter RequestedAuthnContext but there is nothing I can see in the doc.
The second problem is that whatever we try once we have the right Authentication method, we always get [error][plugins][ReadonlyREST][samlRouterFactory] saml_azure error: Error: Invalid signature
We have check the cert.pem path which is fine (content too) and the ssl certificate at the same place is read without issue. We really don’t understand what may cause this issue. Any hint will be greatly appreciated.
When the user is previously logged with other authentication methods RoR will just reject the authentication and we get a message like: AADSTS75011: Authentication method ‘X509, MultiFactor’ by which the user authenticated with the service doesn’t match requested authentication method ‘Password, ProtectedTransport’. Contact the application owner.
If I understand correctly, based on the error description and proposed resolution, this value should be removed
RequestedAuthnContext is an optional value. If possible, ask the application if the value could be removed.
Currently, we don’t allow to set this flag, however as I see, it’s possible. I can prepare a pre-release build with an option to disable it
The second problem is that whatever we try once we have the right Authentication method, we always get [error][plugins][ReadonlyREST][samlRouterFactory] saml_azure error: Error: Invalid signature
Could you send all Kibana logs? Based on the docs cert file should be the base64 version of the certificate. Could you confirm it?
The cert is an absolute path to the base64 version of the certificate ReadonlyREST Enterprise will use to verify the signature of the SAML assertion coming from Azure AD. This file can be downloaded from : (3) SAML Signing Certificate > Certificate (Base64)
That would be great to be able to either be able to control the Authentication context or to disable it completely as we are using more complex strategies than just password authentication.
I will be glad to send you the kibana logs and config but what is the best way to procede?