I want to use Google Spreadsheets as a database when somebody fills out a form. Currently I have been able to use google spreadsheets with google account that does not have the two step authentication enabled. I did that with the Zend Framework.
I want to take it one step further and use the two step authentication so that even authenticated google account will also be able to store information in Google Spreadsheets.
I have a php website, how can I ask the user to authenticate and enable his website to access his spreadsheets and write in them.
I am seriously stuck. Any help will be much appreciated.
Sounds like you will need to use OAuth2 with Google Speadsheets API v3. This will allow users of your app to give it access to their Google docs.
Related
I have an existing web application which is used for HR, managing tasks, sending forms and so on.
My client wants me to integrate Microsoft's multi-factor authentication when signing resources, forms and other stuff.
For now, the signing process is just a token that is generated and sent by email, so the users have to click a link to sign it. My goal here is to give users the possibility to also choose to sign whatever they're signing with multi-factor authentication through their own Microsoft account.
The only thing I've done so far is managing to log in and authorize with the Microsoft Graph API and get Calendar events and other stuff from the user.
Of course, I've googled a lot - but I haven't found the right documentation for my use case. So I need someone to pin point me to the right documentation for my use case. Can anyone help me with that?
Based on my investigation on this issue, I have not seen a direct way of signing files and other resources as well as enabling MFA via the Graph API. I however saw a feature request related to enabling MFA via a Graph API call here. Please consider upvoting it
I am new to OpenID and have been requested to build a login system to work with the company's Google account. They want to restrict logins to users of their domain. They login into Gmail using their domain and they want this feature to allow access to their systems.
Let's say the domain is example.com. They would log into Gmail as user#example.com or go to their domain login page to access their accounts.
I have been doing some research and it seems that the Google Federated Login is what I should be working with. I downloaded the Google APIs Client Library for PHP and have been playing with the examples but I still cannot get it to restrict access to whom logs in. Currently anyone with a google account seems to be able to login. Also, the API wants to access certain information... I only want to authenticate the user to ensure they are a valid user of the domain and eventually allow SpreadSheet Access in Google Docs so that another script (in the same system) can create SpreadSheets while the user is updating the system.
So my questions are:
1) Which service do I need to enable in the Google API console? Enterprise License Manager API is the only service that is enabled.... I'm starting to think maybe I should disable it.. Do any services have to be enabled? I'm not really sure about this.
2) Is there anything special about the PHP Google APIs that would require me to use Google's API or is this functionality available with any OpenID library? If the latter, which libraries are good for what I am trying to accomplish? (PHP)
3) I have found a few examples for allowing login with a Google account but I haven't found a single one for restricting it to a single domain. I am sure this is possible but am starting to feel that it's very difficult to implement... Any information on this would be very beneficial.
Thanks for any information you can toss my way.
I am trying to access google calendar from php program. I am using a php program as middle person to communicate with my android program and Goolge Calendar.
Google provided API to access calendar. when I try to access calendar it asks for authentication, then Login to google account, then Grant Access permision. My problem is I don't need multiple steps to access calendar. I will send Gmail ID and Password from android program to php by calling Calendar.php(For ex:), then php should receive that and directly login to Google Calcendar.
You cannot do this. Google uses OAuth for all it's 3rd party plugins, so the user has to go to a google page to authenticate, and then your app is given an OAuth key to use.
This is to stop you from maliciously storing the username and password given to your app and mis-using it.
Have you try the Canlendar.php demo from ZEND_GDATA which provided by google?
specially function 'outputCalendar'.that's the function to retrieve events from google calendar.
You can preview codes here
you should download demos somewhere and check yourself :)
I've been reading through Google Docs API and having some trouble. I want to do the following:
Embed a Google Doc in my web application
Anyone who can access that page in the web app can edit the Google Doc, without having to sign in to their Google account
(If Possible) Show who made which changes using their identities in my web app, not their Google account.
There are a few ways you can embed. A quick Google search will yield several answers.
As far as I know, it's not possible to edit without signing into an account.
As this is related to (2), I don't think this is possible as all.
Hi guys I'm working on my google apps application - currently I've build the authentication upon the example available at google namely this url
The problem is that the session seems to time out and that everytime I am logged into my google apps account and go to my application I need to authenticate again and go through the screen where google asks me if I should allow the application to access the services like GMAIL, Docs etc listed in the manifest xml file. I don't think I'm doing it right as other applications allow instant access.
Any ideas
you should store and reuse the oauth access & secret key. this should avoid the re-authentication with google (or other oauth based services) - unless your access key has been revoked of course.
Cheers!