Is there a platform independent way to launch a web browser from Pharo?
I want to use Pharo's new OAuth capabilities to access google's spreadsheets. However, I don't want to build a webapp, I just want to authenticate, and then pull the data down into Pharo. In order to do this, I need to initiate a session, with a web browser. Do I have to use OSProcess for this, or is there a mechanism already built in? Cheers Andy
On 23 January 2013 21:36, Andy Burnett <andy.burnett@knowinnovation.com> wrote:
I want to use Pharo's new OAuth capabilities to access google's spreadsheets. However, I don't want to build a webapp, I just want to authenticate, and then pull the data down into Pharo.
In order to do this, I need to initiate a session, with a web browser. Do I have to use OSProcess for this, or is there a mechanism already built in?
why you need a browser if you have Zinc? You can initiate HTTP session from Pharo itself. Or you need something extensive, like cookies etc?
Cheers Andy
-- Best regards, Igor Stasenko.
On 23 Jan 2013, at 21:44, Igor Stasenko <siguctua@gmail.com> wrote:
On 23 January 2013 21:36, Andy Burnett <andy.burnett@knowinnovation.com> wrote:
I want to use Pharo's new OAuth capabilities to access google's spreadsheets. However, I don't want to build a webapp, I just want to authenticate, and then pull the data down into Pharo.
In order to do this, I need to initiate a session, with a web browser. Do I have to use OSProcess for this, or is there a mechanism already built in?
why you need a browser if you have Zinc? You can initiate HTTP session from Pharo itself. Or you need something extensive, like cookies etc?
This is special stuff related to SSO: the other end, Google, Facebook, Twitter, etc, runs the authentication/authorization using their web apps, this is very hard, probably impossible to do with a programmatic HTTP client.
Cheers Andy
-- Best regards, Igor Stasenko.
Andy Burnett wrote
In order to do this, I need to initiate a session, with a web browser
Search for ExternalWebBrowser on Squeaksource for a pre-made solution... or use OSProcess, which would be easy enough... or I guess you could probably use NB... -- View this message in context: http://forum.world.st/Is-there-a-platform-independent-way-to-launch-a-web-br... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (4)
-
Andy Burnett -
Igor Stasenko -
Sean P. DeNigris -
Sven Van Caekenberghe