You can find Authy Id in the settings main tab.Ī: This should be really rarely error, please wait a time mentioned in error and try again.Enable Authenticator Backups to get your data synced.Enable Allow Multi-device option to allow extension to connect to your account.NewProperties = JSON.Warning: This extension is using Authy private api and may not compliant with the Terms of Service of Authy. Var authyID = JSON.stringify(userResponse) Var userResponse = JSON.parse(newUserResponse) Var newUserResponse = newUser.getContentText() Var newUser = UrlFetchApp.fetch(addUserURL, addUserOptions) Var userProperties = PropertiesService.getUserProperties() Var userSession = Session.getTemporaryActiveUserKey() You can access the entire script on my github repository here however, the breakup of the code is described below - adding a user var authyKey = 'YourAuthyAPIKeyGoesHere' This article would cover the last 2 types. finally, the push-notification based authentication (in some sense, this has become pretty standard too).the one that i found interesting was the transactional totp based authentication, which can be used in cases where users are unable to receive sms or calls and have absolutely no internet connectivity.first is the standard sms or a voice call based otp (not covered in this article, just because).You can achieve 3 kinds of authentication with authy. setup incoming webhook as 'post' request towards the push authentication callbacks.build the script as prescribed within the codebase below (we do not need any sheet associated with this setup, just an apps script in case you don't know how to initiate a standalone script, you can check that out here).create and configure an authy application (make a note of the authy api key, at this stage).I realise that its a cliché but getting this setup to work for you is as simple as following a 1-2-3 step procedure that are as follows. it is optional at this stage to sign up for their services (which, for a user is completely free) however, you'd be required to provide your email & phone number at the time of testing/implementing this setup.Īrchitecture twilio's console and the authy api documentation is so darn amazing that you'd not have any glitch setting up your first authy application. you'd need to have the authy mobile app installed on your phone as well.a verified twilio account - with their free tier, you get less than 100 auths/month with unlimited users.You can view the final output of this setup here. preview Authy push notifications on Google Apps Script demo icymi: should you not want a complicated 3rd party application for the aforementioned scenario, i've also written about password protected web app that utilises sheets to store & authenticate passwords. This leads to administer a certain level of security towards the kind of users you intend to expose your dashboard to and while one can easily modulate that using the deployment module, there are cases where you require your web app to be publicly accessible so other applications could talk to your script (ex: as a webhook) and yet, have a need to restrict everyone (even anonymous) to be able to access your frontend. I recently started contributing on stack overflow & realised that there has been a rise in the adaptation of web apps (provided by google apps script) and while for the most part it was so far being used as a 'backend' engine, users now feel increasing comfortable exposing the same as their frontend "dashboard" as well. In case you're wondering what exactly is authy - think of it as a means to enforce 2-factor authentication along with "passwordless" login. 4 min read Use Twilio's Authy with Google Apps Script web app.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |