accounts-sso:signon.git
7 years agoMerge branch 'forgot'
Tomi Suviola [Fri, 14 Jan 2011 06:59:25 +0000 (08:59 +0200)]
Merge branch 'forgot'

7 years agoVersion 6.2 6.2
Aurel Popirtac [Thu, 13 Jan 2011 11:31:13 +0000 (13:31 +0200)]
Version 6.2

7 years agoFixes: NB#217201 - [Maemo] Empty Mechanism is recieved when 250 or 350K of data is...
Aurel Popirtac [Wed, 12 Jan 2011 20:13:44 +0000 (22:13 +0200)]
Fixes: NB#217201 - [Maemo] Empty Mechanism is recieved when 250 or 350K of data is sent from an application to ovi authplugin via signon demon.

7 years agoAdd missing parts for forgot my password use case
Tomi Suviola [Tue, 11 Jan 2011 13:59:11 +0000 (15:59 +0200)]
Add missing parts for forgot my password use case

7 years agoFixed 210071 changed password not updated in db
Devanjan Choudhury [Wed, 5 Jan 2011 07:46:42 +0000 (13:16 +0530)]
Fixed 210071 changed password not updated in db

7 years agoversion inc 6.1
Tomi Suviola [Tue, 28 Dec 2010 08:43:41 +0000 (10:43 +0200)]
version inc

7 years agoAdded new error codes to session
Tomi Suviola [Mon, 27 Dec 2010 11:59:47 +0000 (13:59 +0200)]
Added new error codes to session

7 years agoAdd verify user functionality
Tomi Suviola [Mon, 27 Dec 2010 11:18:38 +0000 (13:18 +0200)]
Add verify user functionality

7 years agoAdd verify user button and functionality
Tomi Suviola [Mon, 27 Dec 2010 11:09:58 +0000 (13:09 +0200)]
Add verify user button and functionality

7 years agoAdd overloaded verify user functionality and new error codes
Tomi Suviola [Mon, 27 Dec 2010 10:08:32 +0000 (12:08 +0200)]
Add overloaded verify user functionality and new error codes

7 years agoVersion 6.0
Aurel Popirtac [Mon, 13 Dec 2010 13:52:26 +0000 (15:52 +0200)]
Version 6.0

7 years agoIncluded common header.
Aurel Popirtac [Mon, 13 Dec 2010 13:46:10 +0000 (15:46 +0200)]
Included common header.

7 years agoVersion 5.9
Aurel Popirtac [Mon, 13 Dec 2010 13:26:40 +0000 (15:26 +0200)]
Version 5.9

7 years agoMerge branch 'bug_210802'
Aurel Popirtac [Mon, 13 Dec 2010 13:25:54 +0000 (15:25 +0200)]
Merge branch 'bug_210802'

7 years agoUpdated other tracing defs: libsignon-qt, signon plugins.
Aurel Popirtac [Mon, 13 Dec 2010 12:44:24 +0000 (14:44 +0200)]
Updated other tracing defs: libsignon-qt, signon plugins.

7 years agoDaemon init and removal of idle tracing.
Aurel Popirtac [Mon, 13 Dec 2010 07:38:52 +0000 (09:38 +0200)]
Daemon init and removal of idle tracing.

7 years agoLogging level configurable.
Aurel Popirtac [Mon, 13 Dec 2010 07:38:17 +0000 (09:38 +0200)]
Logging level configurable.

7 years agoCommon defs.
Aurel Popirtac [Mon, 13 Dec 2010 07:37:24 +0000 (09:37 +0200)]
Common defs.

7 years agoModifying Trace object.
Aurel Popirtac [Mon, 13 Dec 2010 07:35:35 +0000 (09:35 +0200)]
Modifying Trace object.

7 years agoFixes: NB#205808 - license_question.
Aurel Popirtac [Fri, 10 Dec 2010 12:42:18 +0000 (14:42 +0200)]
Fixes: NB#205808 - license_question.

7 years agoincrease version 5.8
Tomi Suviola [Fri, 10 Dec 2010 12:17:42 +0000 (14:17 +0200)]
increase version

7 years agoFix bug 209899 - [Maemo] : Run time error when using SignOn::Identity::signOut
Tomi Suviola [Fri, 10 Dec 2010 10:00:22 +0000 (12:00 +0200)]
Fix bug 209899 - [Maemo] : Run time error when using SignOn::Identity::signOut

7 years agoVersion 5.7
Aurel Popirtac [Fri, 3 Dec 2010 12:02:08 +0000 (14:02 +0200)]
Version 5.7

7 years agoFixing credentials DB update.
Aurel Popirtac [Fri, 3 Dec 2010 11:32:54 +0000 (13:32 +0200)]
Fixing credentials DB update.

7 years agoSetting DB version at the creation time.
Aurel Popirtac [Fri, 3 Dec 2010 11:32:29 +0000 (13:32 +0200)]
Setting DB version at the creation time.

7 years agoVersion 5.6 5.6
Alberto Mardegan [Wed, 1 Dec 2010 14:04:59 +0000 (16:04 +0200)]
Version 5.6

7 years agoRemove useless return value from {add,remove}Reference
Alberto Mardegan [Wed, 1 Dec 2010 08:30:55 +0000 (10:30 +0200)]
Remove useless return value from {add,remove}Reference

Instead, use D-Bus error messages to inform the client of any error occurred.

7 years agoConvenience method for error reply.
Alberto Mardegan [Wed, 1 Dec 2010 08:20:46 +0000 (10:20 +0200)]
Convenience method for error reply.

Factor out the code to send an error reply, into the new errorReply() method.

7 years agofix tests target
Tomi Suviola [Fri, 26 Nov 2010 09:14:53 +0000 (11:14 +0200)]
fix tests target

7 years agoinc version 5.5
Tomi Suviola [Fri, 26 Nov 2010 08:33:13 +0000 (10:33 +0200)]
inc version

7 years agofix bug 203868 - signond-tests fail during execution.
Tomi Suviola [Wed, 24 Nov 2010 13:55:10 +0000 (15:55 +0200)]
fix bug 203868 - signond-tests fail during execution.

7 years agoVersion 5.4 5.4
Alberto Mardegan [Tue, 23 Nov 2010 13:59:33 +0000 (15:59 +0200)]
Version 5.4

7 years agoConditionally depend on gq-gconf
Alberto Mardegan [Tue, 23 Nov 2010 13:43:58 +0000 (15:43 +0200)]
Conditionally depend on gq-gconf

7 years agoVersion 5.3 5.3
Alberto Mardegan [Tue, 23 Nov 2010 12:38:51 +0000 (14:38 +0200)]
Version 5.3

7 years agoMerge branch 'tests'
Alberto Mardegan [Tue, 23 Nov 2010 12:24:20 +0000 (14:24 +0200)]
Merge branch 'tests'

7 years agoDon't crash if credentials system is closed twice.
Alberto Mardegan [Tue, 23 Nov 2010 12:23:52 +0000 (14:23 +0200)]
Don't crash if credentials system is closed twice.

7 years agoImprove debugging
Alberto Mardegan [Tue, 23 Nov 2010 12:23:34 +0000 (14:23 +0200)]
Improve debugging

7 years agoCAM: make tests run successfully.
Alberto Mardegan [Tue, 23 Nov 2010 12:21:20 +0000 (14:21 +0200)]
CAM: make tests run successfully.

7 years agoFix building of tests
Alberto Mardegan [Tue, 23 Nov 2010 11:43:39 +0000 (13:43 +0200)]
Fix building of tests

7 years agoMerge branch 'db-version'
Alberto Mardegan [Tue, 23 Nov 2010 11:30:14 +0000 (13:30 +0200)]
Merge branch 'db-version'

7 years agoRemove printing of compilation time
Alberto Mardegan [Tue, 23 Nov 2010 10:22:46 +0000 (12:22 +0200)]
Remove printing of compilation time

It's just misleading.

7 years agoStatement has no effect :-)
Alberto Mardegan [Tue, 23 Nov 2010 10:07:31 +0000 (12:07 +0200)]
Statement has no effect :-)

7 years agoDB versioning
Alberto Mardegan [Tue, 23 Nov 2010 10:04:03 +0000 (12:04 +0200)]
DB versioning

Write the DB version into the QSLite DB. Also, when upgrading from previous
versions to version 1, drop the metadata DB (the secrets DB now has a new name,
so there won't be conflicts there).

7 years agoCAM: Abort inititalization if directory can't be created
Alberto Mardegan [Tue, 23 Nov 2010 07:31:57 +0000 (09:31 +0200)]
CAM: Abort inititalization if directory can't be created

Suggestion coming from code review.

7 years agoFix reopening of the secrets DB
Alberto Mardegan [Mon, 22 Nov 2010 09:10:21 +0000 (11:10 +0200)]
Fix reopening of the secrets DB

This patch makes reopening of the SecretsDB functional: the
credentialsSystemOpened() condition was always evaluating to true.

7 years agoDon't create a journaled FS
Alberto Mardegan [Mon, 22 Nov 2010 08:56:27 +0000 (10:56 +0200)]
Don't create a journaled FS

7 years agoDon't access the encrypted partition if we don't have a key
Alberto Mardegan [Mon, 22 Nov 2010 08:54:41 +0000 (10:54 +0200)]
Don't access the encrypted partition if we don't have a key

7 years agoFix credentialsdb unit tests
Alberto Mardegan [Sat, 20 Nov 2010 15:52:10 +0000 (17:52 +0200)]
Fix credentialsdb unit tests

Also, add some debug lines here and there.

7 years agoCheck for 0 identity in all SecretDB data methods
Alberto Mardegan [Sat, 20 Nov 2010 15:51:41 +0000 (17:51 +0200)]
Check for 0 identity in all SecretDB data methods

7 years agoConnect SQL queries to the respective DB
Alberto Mardegan [Sat, 20 Nov 2010 15:50:20 +0000 (17:50 +0200)]
Connect SQL queries to the respective DB

We don't have a default connection, so we cannot just instantiate QSqlQuery
objects without specifying the DB.

7 years agoFix database disconnection
Alberto Mardegan [Sat, 20 Nov 2010 15:49:20 +0000 (17:49 +0200)]
Fix database disconnection

7 years agoPartial support for secret usernames
Alberto Mardegan [Sat, 20 Nov 2010 13:26:37 +0000 (15:26 +0200)]
Partial support for secret usernames

7 years agoFactor out updating of realms
Alberto Mardegan [Sat, 20 Nov 2010 13:09:12 +0000 (15:09 +0200)]
Factor out updating of realms

7 years agoRefactor MetaDataDB::updateIdentity()
Alberto Mardegan [Sat, 20 Nov 2010 12:51:39 +0000 (14:51 +0200)]
Refactor MetaDataDB::updateIdentity()

Move the parts related to the CREDENTIALS table into updateCredentials()

7 years agoRename methods
Alberto Mardegan [Sat, 20 Nov 2010 12:46:43 +0000 (14:46 +0200)]
Rename methods

7 years agoRemove STORE table and password field from MetaDataDB
Alberto Mardegan [Sat, 20 Nov 2010 12:20:14 +0000 (14:20 +0200)]
Remove STORE table and password field from MetaDataDB

7 years agoUse RETURN_IF_NO_SECRETS_DB() macro
Alberto Mardegan [Sat, 20 Nov 2010 12:15:47 +0000 (14:15 +0200)]
Use RETURN_IF_NO_SECRETS_DB() macro

7 years agoImplement plugin data storage in SecretsDB
Alberto Mardegan [Sat, 20 Nov 2010 12:15:29 +0000 (14:15 +0200)]
Implement plugin data storage in SecretsDB

7 years agoImplement CredentialsDB::removeCredentials() in SecretsDB
Alberto Mardegan [Sat, 20 Nov 2010 10:51:30 +0000 (12:51 +0200)]
Implement CredentialsDB::removeCredentials() in SecretsDB

7 years agoFix SecretsDB table structure
Alberto Mardegan [Sat, 20 Nov 2010 10:41:18 +0000 (12:41 +0200)]
Fix SecretsDB table structure

7 years agoImplement CredentialsDB::updateCredentials() in SecretsDB
Alberto Mardegan [Sat, 20 Nov 2010 10:38:09 +0000 (12:38 +0200)]
Implement CredentialsDB::updateCredentials() in SecretsDB

7 years agoImplement CredentialsDB::checkPassword() in SecretsDB
Alberto Mardegan [Sat, 20 Nov 2010 10:03:54 +0000 (12:03 +0200)]
Implement CredentialsDB::checkPassword() in SecretsDB

7 years agoMake CredentialsDB::credentials() work with split storage
Alberto Mardegan [Sat, 20 Nov 2010 09:54:07 +0000 (11:54 +0200)]
Make CredentialsDB::credentials() work with split storage

7 years agoDo not directly use SignonIdentityInfo fields
Alberto Mardegan [Sat, 20 Nov 2010 09:47:17 +0000 (11:47 +0200)]
Do not directly use SignonIdentityInfo fields

This object is likely to become implicitly shared.

7 years agoDefine noSecretsDB error.
Alberto Mardegan [Sat, 20 Nov 2010 09:07:41 +0000 (11:07 +0200)]
Define noSecretsDB error.

It's going to be used in several places.

7 years agoUse transaction methods from SqlDatabase
Alberto Mardegan [Sat, 20 Nov 2010 08:50:34 +0000 (10:50 +0200)]
Use transaction methods from SqlDatabase

7 years agoAutomatic error handling
Alberto Mardegan [Sat, 20 Nov 2010 08:46:10 +0000 (10:46 +0200)]
Automatic error handling

7 years agoMake CredentialsDB::clear() operate on both DBs
Alberto Mardegan [Sat, 20 Nov 2010 08:05:01 +0000 (10:05 +0200)]
Make CredentialsDB::clear() operate on both DBs

7 years agoReimplement MetaDataDB::removeCredentials()
Alberto Mardegan [Sat, 20 Nov 2010 07:53:44 +0000 (09:53 +0200)]
Reimplement MetaDataDB::removeCredentials()

Use transactionalExec().

7 years agoRemove excessive debugging
Alberto Mardegan [Sat, 20 Nov 2010 07:48:30 +0000 (09:48 +0200)]
Remove excessive debugging

The error is printed by the exec() method.

7 years agoReimplement MetaDataDB::clear() with transactionalExec()
Alberto Mardegan [Sat, 20 Nov 2010 07:44:56 +0000 (09:44 +0200)]
Reimplement MetaDataDB::clear() with transactionalExec()

7 years agoRemove unused methods
Alberto Mardegan [Fri, 19 Nov 2010 21:24:39 +0000 (23:24 +0200)]
Remove unused methods

7 years agoMove all logic into MetaDataDB
Alberto Mardegan [Fri, 19 Nov 2010 21:21:42 +0000 (23:21 +0200)]
Move all logic into MetaDataDB

This is temporary; some logic will need to be moved in SecretsDB.

7 years agoMove code around
Alberto Mardegan [Fri, 19 Nov 2010 20:46:22 +0000 (22:46 +0200)]
Move code around

7 years agoCredentialsDB: create virtual methods for initialization
Alberto Mardegan [Fri, 19 Nov 2010 20:44:50 +0000 (22:44 +0200)]
CredentialsDB: create virtual methods for initialization

7 years agoCreate MetaDataDB and SecretsDB
Alberto Mardegan [Fri, 19 Nov 2010 20:31:04 +0000 (22:31 +0200)]
Create MetaDataDB and SecretsDB

7 years agoImplement CredentialsDB::openSecretsDB()
Alberto Mardegan [Fri, 19 Nov 2010 19:24:24 +0000 (21:24 +0200)]
Implement CredentialsDB::openSecretsDB()

Create the DB if it doesn't exist.

Implement also isSecretsDBOpen() and closeSecretsDB().

7 years agoRefactor error handling
Alberto Mardegan [Fri, 19 Nov 2010 19:49:45 +0000 (21:49 +0200)]
Refactor error handling

7 years agoWhen all keys are disabled, close only the secrets DB
Alberto Mardegan [Fri, 19 Nov 2010 19:02:00 +0000 (21:02 +0200)]
When all keys are disabled, close only the secrets DB

7 years agoAdd CredentialsAccessManager::isSecretsDBOpen
Alberto Mardegan [Fri, 19 Nov 2010 18:58:17 +0000 (20:58 +0200)]
Add CredentialsAccessManager::isSecretsDBOpen

7 years agoUpdate m_systemOpened after opening the cred. system
Alberto Mardegan [Fri, 19 Nov 2010 18:17:09 +0000 (20:17 +0200)]
Update m_systemOpened after opening the cred. system

7 years agoDon't use m_systemOpened just for the secrets DB
Alberto Mardegan [Fri, 19 Nov 2010 18:13:36 +0000 (20:13 +0200)]
Don't use m_systemOpened just for the secrets DB

7 years agoSimplify openSecretsDB(), remove useless function
Alberto Mardegan [Fri, 19 Nov 2010 18:04:09 +0000 (20:04 +0200)]
Simplify openSecretsDB(), remove useless function

7 years agoSimplify opening of secrets DB
Alberto Mardegan [Fri, 19 Nov 2010 17:53:06 +0000 (19:53 +0200)]
Simplify opening of secrets DB

The existing code seems wrong, it's not clear what it's being doing.

7 years agoRename closeDB() to closeMetaDataDB()
Alberto Mardegan [Fri, 19 Nov 2010 17:41:59 +0000 (19:41 +0200)]
Rename closeDB() to closeMetaDataDB()

7 years agoAdd closeSecretsDB
Alberto Mardegan [Fri, 19 Nov 2010 17:38:33 +0000 (19:38 +0200)]
Add closeSecretsDB

7 years agoImplement openMetaDataDB
Alberto Mardegan [Fri, 19 Nov 2010 17:37:23 +0000 (19:37 +0200)]
Implement openMetaDataDB

And remove openDB

7 years agoProvide a stub for openMetaDataDB, and use it
Alberto Mardegan [Fri, 19 Nov 2010 17:34:54 +0000 (19:34 +0200)]
Provide a stub for openMetaDataDB, and use it

7 years agoOpen the secrets DB in openSecretsDB
Alberto Mardegan [Fri, 19 Nov 2010 17:33:43 +0000 (19:33 +0200)]
Open the secrets DB in openSecretsDB

The metadata DB will be opened elsewhere

7 years agoMake openSecretsDB() always mount the FS
Alberto Mardegan [Fri, 19 Nov 2010 17:18:35 +0000 (19:18 +0200)]
Make openSecretsDB() always mount the FS

7 years agoRename openCredentialsSystemPriv to openSecretsDB
Alberto Mardegan [Fri, 19 Nov 2010 17:15:13 +0000 (19:15 +0200)]
Rename openCredentialsSystemPriv to openSecretsDB

The functionality is going to be changed soon

7 years agoSignonDaemon: always call openCredentialsSystem() when initializing
Alberto Mardegan [Fri, 19 Nov 2010 17:11:35 +0000 (19:11 +0200)]
SignonDaemon: always call openCredentialsSystem() when initializing

As the comment says, if the secure storage is unavailable, the metadata DB will
be opened anyways.

7 years agoDo not attempt to open the secure storage in CAM::init()
Alberto Mardegan [Fri, 19 Nov 2010 17:09:59 +0000 (19:09 +0200)]
Do not attempt to open the secure storage in CAM::init()

That code is probably never executed anyway, but in any case it's better to
move the opening of the secure storage to openCredentialsSystem().

7 years agoLet anyone construct the CredentialsDB
Alberto Mardegan [Fri, 19 Nov 2010 15:23:50 +0000 (17:23 +0200)]
Let anyone construct the CredentialsDB

7 years agoRemove CredentialsDB::disconnect()
Alberto Mardegan [Fri, 19 Nov 2010 15:21:43 +0000 (17:21 +0200)]
Remove CredentialsDB::disconnect()

This is useless, as the SqlDatabase closes the DB when destroyed.

7 years agoAdd CredentialsDB::init()
Alberto Mardegan [Fri, 19 Nov 2010 15:18:13 +0000 (17:18 +0200)]
Add CredentialsDB::init()

Move code from credentialsaccessmanager.cpp which better fits into
CredentialsDB.

7 years agoAdd methods to open and close the secrets DB
Alberto Mardegan [Fri, 19 Nov 2010 14:59:06 +0000 (16:59 +0200)]
Add methods to open and close the secrets DB

7 years agoCredentialsDB: have a second DB for storing secrets
Alberto Mardegan [Fri, 19 Nov 2010 14:49:08 +0000 (16:49 +0200)]
CredentialsDB: have a second DB for storing secrets

This patch just adds an additional private variable and renames the references
to the DB consequently.

7 years agoReindent
Alberto Mardegan [Fri, 19 Nov 2010 14:30:46 +0000 (16:30 +0200)]
Reindent

7 years agoCorrectly link to libsignon-extension.so
Alberto Mardegan [Mon, 22 Nov 2010 09:18:20 +0000 (11:18 +0200)]
Correctly link to libsignon-extension.so

Don't use the libsignon-extension.so from the system.