Hello,
Unfortunately it is not possible to authenticate using a Certificate or Client secret iusing a QR code as explained in the Microsoft official article:
"If you'll import connection settings, we recommend that you use a certificate instead of a client secret. Because the client secret must always be stored securely, you can't import it from a connection settings file or a QR code, as described later in this article."
--If the reply is helpful, please Upvote and Accept as answer--