If you don't provide a value for onelogin.saml2.security.signature_algorithm, this library defaults to signing requests with RSA-SHA1.
SHA-1 as a signature algorithm is obsolete. Wikipedia says that it is
recommended to remove SHA-1 from products as soon as possible and instead use SHA-2 or SHA-3. Replacing SHA-1 is urgent where it is used for digital signatures.
It would probably make more sense to default to SHA-256 instead.