Set ID before invoking the client callback
authorAlberto Mardegan <alberto.mardegan@canonical.com>
Thu, 22 Nov 2012 10:48:21 +0000 (12:48 +0200)
committerAlberto Mardegan <alberto.mardegan@canonical.com>
Thu, 22 Nov 2012 10:48:21 +0000 (12:48 +0200)
commit484d663c6665c7d71d583fca9e385ce4077c42cf
treea0dd974848cda979cf63d173b44670349abe2a76
parent65e1948097695f26aa13f4104336a8a76a678b87
Set ID before invoking the client callback

This change makes SignonIdentity process the results from
store_credentials() before invoking the client callback. This is
important because otherwise any SignonAuthSession created by the client
from within the callback would not be bound to the identity.

Also, add a unit test to catch any regressions.

Fixes: http://code.google.com/p/accounts-sso/issues/detail?id=132
libsignon-glib/signon-identity.c
tests/check_signon.c