Is it possible to log in to Google from a different website? - web-services

I use Google Docs to handle some documents, which i display on my website through the publish feature.
Is it possible to log on to Google automatically through my own site? If so, wouldnt have to log in two different places if i need to edit some documents.
Thanks

Can you change your website to authenticate using google openid? If so, then you could use your google account to sign into your own website and that would guarantee you're also signed into google. https://developers.google.com/accounts/docs/OpenID.

There this: https://developers.google.com/google-apps/documents-list/#what_can_this_api_do

Related

How can I make a Google DataStore database publicy readable?

I have a Datastore instance that contains public data. I want website users to query the database when they visit a particular url. Once the data is fetched, I'll use javascript to aggregate and display the data. It's a static site so I can't do this from a back end.
Is it possible to do this without creating a service account and using credentials? Cloud functions has the allUsers permission and I was hoping there is something similar for Datastore?
If it isn't possible to make the data public, I guess I could use a Cloud function. But I'd like to confirm there isn't a simpler solution first.
This is a use case that's supported with Firestore in Native mode and the Firebase Web SDK (docs).
For Datastore, you are correct. You would need to use a something like a Cloud Function to make a back-end. By default, the Cloud Function service account has permission to access to a Datastore database in the same project.
After looking for a while I think that it is possible to make a Google DataStore database publicly readable, in this link you will find an explanation of how to do that.
Best regards.

Google Admin SDK API for Mail Log Query

Does anyone know if the google Admin SDK API has functionality for querying it's E-Mail log search?
The functionality I'm referring to is found [1].
From the reading, It appears to be only available via the Admin Console and I was able to find any reference to it in the API docs.
If such is not available, does anyone know off the top of their heads, whether or not writing a screenscaper/bot to do these queries independent of an API would violate TOS?
References:
1. https://support.google.com/a/answer/2604578?hl=en
To your first question: There is not currently a way to get the email logs via the API. People have been looking for it for some time.

Google calendars django website

I am trying to display and maintain a separate Google calendar for each user on my Django website. I also want to synchronize each users' Google calendar on the website, with their actual Google Calendar so that events are maintained and displayed not just on the website, but when they log into their Google Calendar through their Google account.
I have no idea how to approach this. Does anyone know how I can do this?
The first thing you are going to have to do is look into OAuth2 for authentication this will allow you to access your users Google Calendars. You will just need to save the refresh Token for each user then you will be able to access the information again by requesting a new access Token.
After that you should look into the Google Calendar API reference
There is also a Google Client library for python that will probably make things a lot easer. Google APIs Client Library for Python.
I don't have any django or python experience so I cant help you out with any code. But if you get stuck just ask a new question on Stack. These links should at least give you an idea of where to start.

Google Cross Domain Authentication

I have various sites (on their own domain) with their own authentication systems. What I'm trying to do is combine all the authentication into Google's authentication so the users will only have to log in with their Google credentials. What I'm thinking of is that they would log in with their Google credentials and be redirected to a dashboard which has image links to the other sites. The user should be able to go to any of the sites and be automatically logged in since they were already authenticated. I saw that there's an authentication for Google Apps but is this the same thing for my websites?
What I'm not sure about is how does this happen cross domain? How do the other domains know that the user is already authenticated?
Also, if the user logs out, they should not be able to access any of the sites anymore.
Anyone have any experience implementing something like this? Any resources are much appreciated. I will be implementing this in Coldfusion so Coldfusion resources are a bonus.
Your talking about using Google to login/signup i.e. Using OAuth 2.0.
You will need to register each of your app domains with Google. The user will need to confirm each application to allow access (in your case for signup/login).
Resource on Google Login with ColdFusion by Raymond Camden
The point is you need to establish a certain protocol to build a trust.
Other options are:
Google oauth javascript cross domain

Django + Google SSO openid

I would like to have my application http://app.acquee.com/designer to accept a google account as a login. I found a bunch of libs for django but most work on top of existing Django authentication system that I do not use. I have my own set of user tables where I keep user info and privileges.
Any suggestion on how to integrate that with the Google Openid?
Seems I will have to do it manually using python-openid. Or could I use django-openid?
However, with the latter, I don't even know how to issue the discover command.
Regardless, I get stuck on google's step 5, sending a login authentication request (optionally with OAuth parameters) to the provided endpoint address. Can someone provide a sample request? is it a GET/POST? content?
Cheers
You can try https://launchpad.net/django-openid-auth - I'm using it in a commercial project, for both regular Google Accounts and Google Apps accounts. I remember that it was the most convincing one at the time I was doing a review, although I can't give you any details now due to my short memory. Anyway - it's working great.