![]() GenerateSetupCode requires a couple arguments: String manualEntrySetupCode = setupInfo.ManualEntryKey String qrCodeImageUrl = setupInfo.QrCodeSetupImageUrl Var setupInfo = tfa.GenerateSetupCode("MyApp", "SuperSecretKeyGoesHere", 300, 300) TwoFactorAuthenticator tfa = new TwoFactorAuthenticator() Generating this information takes a couple lines of code: If using a mobile device, they can scan a QR code (easiest), or they can enter or copy/paste a manual code into the app. Users have two options when setting up a new Google Authenticator account. Present User Setup QR Code / Manual Entry Code with GenerateSetupCode This is supposed to be easy, so start by grabbing the NuGet package GoogleAuthenticator ( here’s a link). Scan the QR code into Google Authenticator, and then try validating your PIN code. Go get the app and give it a try to see how it works – I set up a sample workflow here: Prompt the user for this code during their login, and validate it!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |