Comment 2 for bug 745801

Revision history for this message
James Westby (james-w) wrote : Re: system-based authorization doesn't store useful credentials in gnome-keyring

Here's the serialize code for what is stored

        parser.add_section(CREDENTIALS_FILE_VERSION)
        parser.set(CREDENTIALS_FILE_VERSION,
                   'consumer_key', self.consumer.key)
        parser.set(CREDENTIALS_FILE_VERSION,
                   'consumer_secret', self.consumer.secret)
        parser.set(CREDENTIALS_FILE_VERSION,
                   'access_token', self.access_token.key)
        parser.set(CREDENTIALS_FILE_VERSION,
                   'access_secret', self.access_token.secret)
        parser.write(writable_file)

so it executes the first line fine, but the rest don't have the desired
effect.

I'm not sure what would cause the other statements to have
no effect.

The write() must have an effect, otherwise you would get nothing,
so either there is something odd going on with the ConfigParserClass
or we are getting the equivalent of short read/write (the writeable_file
isn't a real file here, just an in memory one, so it's not that exactly)

There is some oddness with a credential_save_failed that could be
involved.

Adding an upstream task for their input.

Thanks,

James