I want to do oauth inside an Excel add-in. I have an embedded browser where I can open the oauth url. Which oauth options I should go for ?
manual copy/paste
programmatic extraction
(https://developers.google.com/identity/protocols/OAuth2InstalledApp)
As all apps will be manually verified by Google, so I am asking before developing the solution. I want something which will be approved by Google.
Related
I'm using auth0 one-time password option to set up MFA in my application:
https://auth0.com/docs/mfa/guides/configure-otp
This allow users to set up the MFA with google authenticator or similar applications that read the QR code.
I'm also an user of this kind of MFA in multiple services, as for example, Slak, GitHub or Auth0 itself. I've seen that when having a lot of applications it can be a bit messy, but Slak or Github have their picture set up in the authenticator application.
Is there anyway I can setup the icon of my application using this option on Auth0? I guess the image is also in the QR code that is scanned. If auth0 doesn't give you that option, but it exists, is there any other option to generate the MFA QR for my users including my app icon?
I've seen in their code that https://freeotp.github.io/ uses a parameter image when generating the otpauth uri, even they refer to https://github.com/google/google-authenticator/wiki/Key-Uri-Format where there is no documentation about this parameter. It seems to work. The open standars HOTP and TOTP neither has any information about the image, so I guess is not part of the standar.
No idea yet about how could I implement it with auth0, so bounty still open for that.
How can I get an authentication token without requiring an Office365 user to sign in? (sign in again, that is - assume the user is signed into Onenote with OneDrive) I would like to create a Onenote plugin utilising semi-new API features for teachers (here).
Microsoft released a plugin early on in their branch of Onenote schools support that added basic buttons as a Onenote toolbar but they only lead to the online interface. I'm under the impression it then isn't possible to get a token from within Onenote.
Unfortunately, this capability does not exist yet. In order to be able to call the OneNote API, the user will have to sign in and give your app permissions. This is obviously not the ideal user experience, but currently there is no way around it.
The closest example I can think of is the meeting details button in the home tab in OneNote Web. It calls outlook APIs and therefore needs to be able to sign the user in.
On the positive side, once the user is signed in, you can store the refresh token in a cookie (remember to encrypt and mark it for expiration) and he/she will not have to sign in again in that browser.
I'm playing around with building an app to integrate a 3rd party API into google sheets using app script and the new AddOn API's for google docs. I've got the Oauth2.0 flow working by adapting this code here. This works, but I don't want this app to be a standalone web app - I just want to add another menu with a few select functions - one of which will be authenticate to the spreadsheet. I have this working in parts (1. new menu with authenticate button that runs a function when clicked. 2. Url that starts Oauth process when I hit that specific URL in a another window), I just am not sure how to connect them.
My problem is that I'm not sure how to display the 3rd party API's Oauth dialog in a way that is integrated with Google Docs. I've tried loading it into a sidebar, but that doesn't seem to be working. Is there a way to open a 3rd party Oauth2.0 dialog with app script?
This is my first interaction with app script but It'e been pretty easy and painless so far. I'm just wondering what the best way to approach this problem would be.
Thanks!
There is no built-in way to do a 3rd party OAuth2 flow using Google Apps Script. However it is possible to write an OAuth2 flow on top of Apps Script, and this library is one such implementation:
https://github.com/googlesamples/apps-script-oauth2
I am trying to make a webpage that can display information about documents on my google drive. For example I would like to display the titles of all my google documents on a webpage. I don't want the user to have to be logged into a google account, and I don't want to have to authorize anything (or the user to authorize anything). I just want the user to be able to see what I display - in a read only format - when they navigate to the page. The user will have no chance to edit or upload or delete anything, they can just view the info I display.
Is there a way to get files from google drive (via the API or any other way) possibly without using oauth 2.0? I've looked through the api docs and even coded up the sample apps, but all of them have a step that says, "Go to this URL, click Allow, enter the code" then you get access. These steps shouldn't be necessary. I just want to download the file and be able to manipulate it (either in memory or as a stream) then display something about it.
Also, I may misunderstand how OAuth 2.0 works so if that seems like the case, any helpful information would be much appreciated. Thank you.
You don't need to authenticate your visitors into Google, but need to authenticate yourself, so your web app can retrieve data from your personal Drive.
Get an access token and refresh token for yourself, store them and autenticate your requests. If you're using one of our client libraries, most of them refresh the access tokens once they are expired. See Using OAuth 2.0 for Web Server Applications for more details and OAuth 2.0 Playground helps you to understand how to get these tokens.
I'm kind of new to dealing with Gmail API and I have a question regarding the development environment.
I want to create a simple application that fetches unread emails from a gmail user, sends it to a processing server of mine (RESTful web service) where I analyze the data and extract some information, then finally use the extracted information to add it to the user's Google calendar.
I was thinking of developing a sidebar gadget but I was curious about which IDE to use. Do I use the Google scripts API? Will it make my gadget portable? Which IDE to use?
I know about the Gmail API that uses oAuth access to IMAP & SMTP but how can I integrate it with the sidebar gadget? Where do I write the code? Which language?
First, you will want to read Google's Gmail gadget documentation to learn how to make them.
Basically, you can either use the Google Gadget Editor (GGE), which is a very simple IDE that runs in your browser, or you can use whatever editor you prefer for editing JavaScript and XML. You will also need a website where you can post your code. A google gadget is an XML+Javascript file that resides in some webserver and that follows the schema google dictates.
Google Apps Scripts are a different thing. They are scripts that run in a google spreadsheet and can access the user's google services (docs, gmail, and some other ones). But, they are not Gadgets. To write one, create a new spreadsheet then go to Tools->script editor.
IMAP and SMTP are another thing. They are protocols for talking to a mail server. There are imap and smtp libraries available for nearly all programming languages. But, that is not what you want if you want to implement a gadget.
One important thing to consider is that Apps Script is the only way to get full access to Gmail. You could easily automate all the processing to send the information to Calendar.