Google Sites API: OAuth2 for Java - google-sites

Is there any Java sample codes that allows Google Sites API to use OAuth2 credential?
I can't see any OAuth2 APIs at com.google.gdata.client.sites.SitesService (https://developers.google.com/gdata/javadoc/com/google/gdata/client/sites/SitesService).

I know why now. There is a missing library for gdata-media-1.0.jar =.='

Related

How to authenticate google api to insert calendar events - NodeJs

How can I authenticate my api access to insert new events to my google calendar without OAuth? I'm writing a node script without any front end/website and everywhere seems to recommend using OAuth with a redirect to your website...
The best solution I have come up with is write a secondary application purely to listen for that redirect and save the auth code returned.
Any suggestions would be greatly appreciated!
I think it was designed that OAuth be used to handle authentication and authorization when you're using Google APIs. You can read that from the Using OAuth 2.0 to Access Google APIs.
Google APIs use the OAuth 2.0 protocol for authentication and
authorization. Google supports common OAuth 2.0 scenarios such as
those for web server, installed, and client-side applications.
If you're using NodeJS for Calendar API, you can try the Node.js Quickstart. You'll be needing the following:
Node.js installed.
The npm package management tool (comes with Node.js).
Access to the internet and a web browser.
A Google account with Google Calendar enabled.

Azure API Apps - SPA login with authentication

I've been searching high and low for an example of using an Azure API App with authentication with a javascript client. Specifically I am interested in how something like an Angularjs app can authenticate with an Azure API app.
The closest I've got is this example http://azure.microsoft.com/en-us/documentation/articles/app-service-api-javascript-client/
but unfortunately this does not use authentication.
Given many users with be using SPA applications with Azure API Apps I would think there will be a lot of demand for this.
Does anyone have any pointers?
http://azure.microsoft.com/en-us/documentation/articles/app-service-api-dotnet-consume/#authenticated-call-from-a-windows-desktop-application shows how to authenticate for scenarios where we don't yet have an SDK. You should be able to follow the same steps from a JavaScript client. Hope that helps!
Thanks,
Mohit

how to provide oauth access to my web service

Searching online for oauth yields various platforms and how to sign in, etc but has no resources on how to provide oauth access myself.
How would I go about building a platform allowing 3rd party access? Are there any tutorials?
Eventually I want to make a passport plugin if that helps in suggestions.
You could use these:
OAuthorize, which is a suite of middleware for implementing an OAuth 1.0a server.
OAuth2orize for OAuth 2.0.

Library to authenticate user using their Facebook and Google accounts using OAuth on Mono Droid and Mono Touch

I'm very new to Mono Droid and Mono TOuch, but I would like to know if there is any library that allows me to authenticate users of my application using their Facebook and Google accounts?
I've seen some examples for the Facebook SDK on "Mono for Android" and "Mono Touch" , but since I don't need the full facebook SDK and I only need a small set of info from the user I was wondering if there is a simple library that will allow me to authenticate to any site using OAuth (I'm only interested on Google and Facebook for now).
Did you try community-based implementations from OAuth site?
About Facebook API binding: I tried Facebook API binding for MonoTouch with no success. After that I started using official JSON-based Facebook Graph API. It's relatively easy to implement calling of any API method. For more information about using Facebook API in MonoTouch/MonoDroid apps please see that answer.

Google login in my site

I want my website user should be login through fbconnect or gmail account.
fbconnect is simple, but i am not able to do with gmail.
Can anybody please let me know how to do that?
Use the Google OpenID API (as this site does)
Google are an OpenID provider.
To login with a google account you need to use openID
Google Docs on their implementation: http://code.google.com/apis/accounts/docs/OpenID.html
It could be easy to solve if you use library that implements open ID for you.
Java Version http://code.google.com/p/openid4java/
.net Version http://code.google.com/p/dotnetopenid/
List of Libraries for various programming languages http://wiki.openid.net/Libraries

Resources