I am looking at the remote authentication API provided by https://developers.google.com/glass/develop/gdk/authentication.
Here are the first two steps, as documented on the website:
1. When users turn on your Glassware in MyGlass, they are redirected to your authentication URL.
2. The user enters their credentials on your authentication page.
I am confused on how one can achieve the second part. There is no keyboard or any other way to type in keys on Glass. How can one enter the credentials? Regards.
MyGlass is not on glass. The my glass interface is either through the myglass website or via the my glass android application. So you never turn on glassware inside glass itself, you do it externally on a device that does have the ability to handle the transaction. Once done, the glassware (and, in this case any authentication and configuration info you set) gets pushed to your glass behind the scenes.
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 have created a Youtube API application to enable access to Youtube API for Integromat. All my Youtube API application does it gives access to my Youtube channel videos for Integromat. Integromat grabs the links to videos and uploads the links to my Airtable. So the only user for the Youtube API is going to be myself and my own Integromat workflow.
The Youtube API app is in development. I want to verify the app to get rid of the 1-hour deactivation of the authorization (Integromat connection to Youtube API breaks after 1 hour).
To get verified, I looked the steps here https://support.google.com/cloud/answer/7454865?hl=en. The first step it tells me to do is "Update the OAuth consent screen details" and I go to that screen and shows the publishing status. Do I click to "publish to production"?
When I click that, it tells me:
Your app will be available to any user with a Google Account.
Screenshot showing the step to publish my app
That's sounds scary. What does it mean?
I do not need (nor want) have other users logging to my Youtube API. I am the only user and Integromat is the only app that will access the Youtube API.
I am novice in this and don't have much idea about programming so I don't even know what questions I should be asking here.
Thanks.
Here are more details about what I am trying to do in Integromat:
Youtube API Integromat testing app - connection getting disabled
It means that you will be able to share your app via that link with anyone you please. The whole point of an API is that it's available publicly, at least on a technical level. Whether you're actively soliciting users is an entirely other matter, naturally.
Since you canĀ“t do all the nice looking stuff with the GDK at this point (html, images and so on) on cards. I was wondering if there is a possibility to ask a Mirror API from within my application (created with GDK) to send me some data?
Example:
I see the flow like this:
The GDK app is started with "ok glass, search app"
You talk what you want to search for.
The app takes the word and asks the Mirror API for a result.
The Mirror API sends the result to the glass timeline.
Regards
Joakim
Absolutely. If it makes sense for your app to either communicate with an external service that sends data back via the Mirror API, or calls the Mirror API itself, then you can certainly do so. (Although you begin getting dangerously close to just doing it all in Mirror at that point.)
The biggest challenge you'll face is having your app go through the OAuth dance to get an auth token to use.
It sounds like the core of your issues is that you want a richer way to display content in the static part of the timeline to the right of the clock. You have a couple of options.
GDK
If you'd like to stay pure GDK, you can create your own view, and flatten it into a bitmap. The steps to complete this are the same as for other Android devices.
Mirror API
You could also use the Mirror API to insert HTML static cards using timeline's insert method, but to do this you will need to communicate some authentication information to your GDK Glassware. For example, if you want to insert into the Mirror API directly from Glass, you would need a way to provide an access and refresh token to your GDK Glassware.
There is no graceful way to do this with the released APIs, but I've seen some people accomplish this using the OAuth 2.0 flow for devices or scannable QR codes.
If you go down this route, be prepared to update your implementation. Google has announced improved support for sending authentication information to GDK Glassware. Once it's available you will want to switch over to it.
Mirror API allow you to communicate back to it from Glass through the contact that you can create using Mirror API.
How it works -
you create a contact,
then when you need to do wit GDK on step 2 of your flow is share a
note with your contact
the words get transcribed and delivered to you Mirror notification
listener.
the mirror notification listener on server get the text of what kind
of app you would like to search, perform the search and deliver the
result by simply publishing on your timeline.
That's the best that i can see right now.
Here is a link how to declare voice menu commands (now only two are available, but you can propose more)
https://developers.google.com/glass/develop/mirror/contacts#declaring_voice_menu_commands
P.S. To go through oauth2 challenge - download sample mirror app
https://developers.google.com/glass/samples/mirror edit you
oauth2.properties file with creds you will get on your google development web console (you will need to create the app with google and request to enable Mirror API)
then run mvn clean install
then run
mvn jetty:jetty
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 trying to make a sample app on Google Glass. Currently, I do not have a device.
My question: after I finish creating the app, what is the action needed to see it on the launch page? Do I need to send an API request to add the card to the user's timeline? or I can perform some kind of a normal install, and see it on the main menu then?
Thank you for your help.
There are two types of Glasswares (Glass applications):
GDK Glassware
MirrorApi Glassware
You can only distribute Mirror Api Glassware for now. See my question and answer for it.
If you are trying to distribute a Mirror Api Glassware (after you finished development), you have to fill the submission form.
Your glassware is going to be reviewed by Google. After Google approves, your Glassware is going to be seen at MyGlass site. Then users can go to MyGlass site and register to your Glassware with OAuth flow.
Also see this distribute page.
As far as I've understood by "launch page" you mean MyGlass page (https://glass.google.com/myglass).
If that's the case - Your Mirror-based application will appear on the user's MyGlass page once he/she authorizes it (OAuth will be completed).
Hope this will help.