Hi Patrick,
sorry I couldn't reply earlier than this.
-----Original Message-----
From: Patrick Ohly [mailto:patrick.ohly@intel.com]
Sent: Wednesday, July 24, 2013 5:06 PM
To: Valluri, Amarnath
Cc: Laako, Jussi; Kanavin, Alexander; SyncEvolution; ken(a)vandine.org;
Alberto Mardegan
Subject: Re: getting started with gSSO (was: Re: SyncEvolution + SSO +
credentials)
On Wed, 2013-07-24 at 08:04 +0000, Valluri, Amarnath wrote:
> >I'm now at the stage where files are installed. What's next?
>
> [Amarnath] That's great, but you need even signonui-gtk, which is not
yet hosed at
code.google.com.
> I will share the private repo url.
Got it. It's installed such that it can be auto-acticated via D-Bus. I
start gsignond manually:
gsignond-Message: 114849.429844 /home/pohly/src/accounts-
sso/accounts-sso.gsignond/src/daemon/main.c:150 main server started at :
unix:path=/tmp/testing/temp-testpim/cache/gsignond/bus-sock
gsignond-Message: 114849.429922 /home/pohly/src/accounts-
sso/accounts-sso.gsignond/src/daemon/main.c:152 main Entering main event
loop
When I run the fixed gsignond-oauth2-example, I get:
Got a UI interaction request:
{'FinalUrl': <'http://somehost/login.html'>,
'OpenUrl':
<'https://somehost/somepath?response%5Ftype=code&state=fU7CgH3vjiBJS5zK4
1ZAcjFM4dc%3D&client%5Fid=megaclient&redirect%5Furi=http%3A%2F%2Fsomehos
t%2Flogin%2Ehtml&scope=Photos+Videos'>}
Got an error: Returned state and generated state don't match
Can someone explain how the UI interaction is meant to work with this
example? user_action_required_callback() uses some hard-coded redirect
URI. What's the real value that an app would use, for example with
Google?
[Amarnath] This is the wrong/incomplete example to run. I forgot to mention in my
earlier reply.
Please use oauth2 example in libgsignon-glib - examples branch, which is the complete
working example.
Usage:
./google-oauth2-example --create-identity="some_caption"
--identity-method="oauth"
./google-oauth2-example --get-google-token=<<identity_id_returned_above>>
--cilent-id=<<client_id_given_by_google>>
--client-secret=<<client_secret_from_google>>
It should popup the SignonUI where you can enter your google credentials, then if
everything goes well that should fetch tokens from google.
Cheers,
Amarnath
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.