Google Oauth prompt page- add more text? - oauth

I'm using GoogleBrowserClientRequestUrl to send the browser to the page prompting the user to allow my application access to their Google Docs account. This all works fine, but I'd like to know if you can add some extra information to that prompt page as well as the auto-generated stuff?

No, the only custom information that Google displays on that page is the product name and the product logo you specified in Google's API Console.

Related

Is it possible to add a callback URL to Create Google Account flow?

Our app requires Google OAuth2. When a user, with an existing Google account, authenticates with Google then we use a callback to return users to our App. This is what we want.
The issue is, for those users who do not have a Google account we ask them to create a Google account (gmail address) or connect their existing email address to Google. A user who has to follow either of these flows ends up on the "Thanks for creating a Google account page" and not back at our App.
This is supposed to work as you are expecting. There is a continue button on that page and that should bring the user back.
If that is not working, can you tell us more (about OS, client id, urls and the exact steps) or give us a link to test/reproduce? Is this on the web or on mobile app?

What Twitter access token should I use to automate tweets?

I would like to know what access token I require to achieve the following.
My Meteor app crawls various RSS feeds and makes a daily digest. I would like to automatically tweet about the daily digest when it is created, using the app's Twitter account.
As I see, in the doc, it seems that I need to use application owner access token and create my app using the app's Twitter account. Is this a correct approach?
Yes, that's correct. It's quite simple too.
Go to Twitter Apps and login with your regular twitter account
assuming you have one, if not you need to create one.
Once signed in click on Create New App button.
Fill out the application (Name, description, and whatever else it requires).
Create your key and access tokens. Share those with users that you trust as they'll be used to access the twitter API to read/write information.
Give the application you created a "Read and Write" permission based on what you asked in the question.
Then depending on the software/language you use there's a plenty of existing packages that can help you access and obtain the information from the API.

Login to Google using different usernames and passwords?

I'm developing a blog poster software and in that software, there is a text area that my user writes the content of a blog post, and two text boxes for specifying username and password.
Now I want to login with the specified authentication information into Google quickly. Google API doesn't ask me for authentication data and it seems to me that Google doesn't implement the ability to login with custom username. Is there anyway to do that?
What you mean is that you want user can log in your software by enter their username and password in the text box of your app. And your app can authenticate user by call some Google API. But this is improper, and Google does not support this.
What you need is OAuth 2. By authorized by Google user via OAuth, you can call Blogger API v3 to to create new blog posts, edit or delete existing posts, and query for posts that match particular criteria. The Google official docs have given detailed reference.
So follow this document and I think you'll get to be clear about it.

Using Google + API and LinkedIn API within a desktop application (without prompting user for username-password)

I'm going to create a page which will download user's activity and save it in an .xml file because my iphone app needs to process it. The problem is that I cannot prompt the user for login-password... so I was wondering if there is a sort of permanent key that I can use to access into linkedin and gplus?
Thank you.
Google+
I can field the Google+ part of your question :)
You can access your users' public activity using the REST API's activity list method. To identify who they are you'll need to send them through an OAuth flow during which they will authorize you to know who they are on Google+.
The best way to get started doing server side OAuth flows in Google+ is to grab one of the starter projects and go through the included readme. That will give you a working project to copy code out of, or develop upon.
I'd include a code sample to show you how it works, but I don't know what would best apply to your back end :)
Linkedin
I'm far from an expert on their APIs, but it looks like the flow would be similar using OAuth.

Showing Tweets of a User in his account on mywebsite once he has allowed my website to his twitter account?

In my webapp I want to show the recent tweets of a logged-in user.
I've connected user's twitter account to my application using Omniauth and have stored the auth token and secret in the database for the future use.
So I want, as a user logged in to mywebapp, that I can use the stored Auth token and secret of that user and show him his recent tweets in an iframe (like how the facebook social plugin provides their own interface and views for their recent activities, etc.)
I have also gone through the twitter gem, but I just get the data from that site; I need the same layout and view like twitter by using the iframe and twitter plugin.
Is there any way to do that with Rails app?
Any help will be appreciated.
Thanks
You can use the Twitter plugin, but change the script include. Instead of using the Twitter-provided widget.js, you'll use your own javascript file. Your own javascript file will be identical to widget.js except the REST call to user_timeline will include the oauth token and secret as parameters.
See https://dev.twitter.com/docs/auth/oauth#Making_a_resource_request_on_a_user-s_behalf
If you already have the data from twitter in text format, it is trivial to write your own view that uses this data from the Rails controller. you can render that view as a static webpage.
If you would like to do the same as an iframe, you may have to do the data fetching via javascript. you may use the Twitter javascript plugin and modify the call to the user's timeline to include his/her access token.

Resources