I have a sample GDK app ready to be loaded for glass. It would work only if the app is published, and authentication happens from Google to third-party using MyGlass page.
Can someone help with this?
Here's a library I wrote for OAuth before Google even had an OAuth solution: https://github.com/victorkp/GlassAuth
And there's an example application for that library here: https://github.com/victorkp/GlassWebNotes
Basically, the GlassAuth library is able to use Google's OAuth for Devices service - the user will see a code displayed on Glass, then he or she can go to a https://google.com/devices on a phone/computer, sign in, and enter that code. At that point, you can use the AuthHttpsTask in the library to make use of the OAuth token.
Related
We are using Google Sheets API in our product.
To use API, we configured OAuth consent screen described in the doc below, and we passed the valification process by Google.
So, functions using the Sheets API have now been released and are already in working order.
Configure the OAuth consent screen:
However, due to the change of our company name and product logo, we have to change the infomation shown in OAuth consent screen.
We will not change scope of API access.
After some research, I found that if I tried to change that information, it would trigger Google's validation process again.
My question is, can we use Sheets API while Google's revalidation process?
We must run our production app with no down, even if our OAuth app under validation process.
I cannot find any document about that.
Someone please tell me the availability of API under validation process, or tell me the document about that.
I've successfully implemented Facebook login with their Javascript SDK but was hoping that when used on mobile, the native Facebook application would launch. Will going through the manual flow here allow this behavior? This question seems to say otherwise but was vague.
I want to avoid using Android and iOS mobile SDKs because my situation is basically an OAuth within an OAuth and it would get messy. Any other approaches people think could work like redirect URIs or other OAuth magic would be really appreciated.
I am trying to login to gmail and read the inbox messages (Subject, content).
I have basic code for that to login and read the messages. But I'm unable to do so. Reason for this is, I will have to use Oauth to authenticate orchange the settings in gmail as "Allow less secure apps to ON" (I tried and it's working) as suggested here. But i don't want to go with second option to change settings. How do i use Oauth/Oauth2 to login to gmail and read the inbox messages, subject and content (Python code) ?
You may check this documentation which describes OAuth 2.0, when to use it, how to acquire client IDs, and how to use it with the Google APIs Client Library for Python. The oauth2client library is included with the Google APIs Client Library for Python. It handles all steps of the OAuth 2.0 protocol required for making API calls. It is available as a separate package if you only need an OAuth 2.0 library. The sections below describe important modules, classes, and functions of this library.
Check this Python Quickstart for Gmail API.
We have an existing Android and iOS application that consumes REST API from our servers. The API provides a token to the authenticated users after they log in using their credentials (username, password combo.) from the mobile applications.
Now, we're planning to create a Google Glass application for the same. In this case, we'd like to use the existing REST API along with Glass also. The Glass app will be built natively using the GDK.
My concern is, how would the users be able to input credentials? Because, users may have signed up for the service using non-google accounts?
Many thanks in advance.
At the moment, there is no supported way for apps made with GDK Early Access to authenticate the user or provide a way to connect the Glass account to your auth system. The Glass team has indicated such methods are coming, however - the Strava Cycling app, for example, does this, and it is expected that a similar feature will become widely available as the GDK matures.
Strava Cycling appears to get its credentials at the time you setup the app through MyGlass. When you turn it on it redirects you to a website to log into Strava's service before completing the install.
I just gave a talk on this exact topic at Wearables DevCon. The solution I proposed is purely done through GDK. All the user has to do is sign into their Google Account on a phone/tablet/computer and enter a code that is shown on Glass.
Check out the slides here:
https://docs.google.com/presentation/d/1NepYwlKdEvLV0QH9ix2I8l-JY1kHjBR9AXKBNpgTI6g/edit
And the code here:
https://github.com/victorkp/GlassWebNotes
The latest Glass release (XE16) publishes the remote authentication API for apps distributed through MyGlass:
https://developers.google.com/glass/develop/gdk/authentication
I'm using MonoTouch (latest version) and I want to be able to allow the user of my app to make a wall post based on a log entry made in this app. All I need is a simple implementation so that the user can tap "Share on Facebook" (UIActionSheet) and then it logs them into Facebook (shows the login) and returns the token which I can then use to make the WebRequest to post to their wall.
I've seen the MonoTouch bindings on github but have no idea how to use it. Can someone please provide a simple sample of how to just login to Facebook to retrieve a token so I can post. I know how to do the post, it's the auth process that I'm not getting right.
Thank you.
Neal
Neal,
I have added a sample that replicates about half of the Facebook sample here:
https://github.com/mono/monotouch-bindings/tree/master/facebook/sample
I would recommend to use client-side javascript login more than native device login.
Sooner or later you might want an Android, Windows Phone or even Facebook version.
Having an In-App browser wrapper to deal with javascript and direct Graph API calls are easier for cross-platform implementation. Just from my personal experience.