× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Without a browser on your device you have 2 options when dealing with
OAuth 2.0 and Google APIs:

1. Service account
2. 2-Legged

With option 1, you'll get used to receiving the error "invalid_scope" for
some of the APIs, like drive. I've confirmed with Google they have some of
them turned off right now and that's whey the error happens.

With option 2 you have to store the userid and pw of the account which
defeats the purpose and intention of OAuth 2.0 (ie, you don't have to know
or ask for their account id and pw). Not sure it's as "easy" as it was
with 1.0 as well.

Anything is possible, and I could have written something to mimick a
browser, but with the service account option (which you would use on
devices that don't have browsers, like a fridge or IBM i) I'm sure the APIs
will open up soon enough.

You still have to USE a browser with the service account. But it isn't as
seamless as if you were using a PC or Android phone where the user is
already logged into their google account on that device and therefore just
gives authority to use the specific API/service/app.

Brad
www.bvstools.com



On Thu, Feb 14, 2013 at 12:29 PM, Richard Schoen <richard@xxxxxxxxxxxxxxx>wrote:

Nope, don't get your newsletter :-)

Look at the OAuth2 examples on the google site. Looks doable without an
actual browser so not sure why you wouldn't want to use it. Java has HTTP
classes you can utilize which I'm sure you know about.

Now to be fair I'm at the front end of my project, so I may be back
shortly looking for advice, but the code samples look workable to me.

Regards,
Richard Schoen
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business
Intelligence
Email: richard@xxxxxxxxxxxxxxx
Web Site: http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
------------------------------

message: 3
date: Thu, 14 Feb 2013 11:13:42 -0600
from: Bradley Stone <bvstone@xxxxxxxxx>
subject: Re: *afpds spooled file not printing correctly on ip attached
printer

Richard,

I have (must not get my newsletter! lol).

They currently don't give access to certain APIs via the interface
required for the IBM i since there's no integrated browser via OAuth 2.0.
They may via the depreciated login process, but that's going away in a
couple years so I chose not to go down that route.

I've already integrated Google Cloud Print and Google Calendar (
www.bvstools.com/g4g.html) using OAuth 2.0, which is what Google is using
now for security.

I would have (and will have) a lot more features (such as google drive) if
they allowed access to the APIs for us running that would use a service
type account. But I want to keep it native to the IBM i. And they claim
that they will be opening up API access in the future.

Yes, once could probably "Fake" the web interface but that would be MESSY.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.