简体   繁体   中英

Snowflake connector with passcode (Python)

I used to use Snowflake Connector in Python and MFA with Duo Mobile and push notifications without any problems. But after changing my smartphone to a new one, I can only use SMS and call authentification with Duo Mobile.

So now, in order to use Snowflake Connector with SMS authentification (which provides a passcode), I add the "passcode" parameter as I found on Python Connector API

I use the second parameter "passcode": Passcode parameters

This results in an error:

Error connection BDD Snowflake 250001 (08001) ... Incorrect passcode was specified.

Is it normal that I have to provide a passcode via the connector even if I have not received an SMS? (The passcode in parameter is the last one I received...)

I haven't found a solution to access Snowflake with Python, so if any one has an idea, that would be great.

You will always need to enter a valid passcode when using your Python script with the API. Otherwise, it will not work. Regarding the DUO Mobile push that stopped working on the new phone, please raise a Snowflake Support ticket to get the new phone re-enrol with the DUO push.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM