Package: kotti_accounts
Code|Bugs|Forum|Docs|License|Contactkotti_accountsis aKottiplugin which allows a user principal to be associated to
multiple email accounts.Find out more about KottiFor the impatientThere’s a demo which shows how it works.
Just run the commands below inside a clean virtualenv.git clone https://github.com/frgomes/kotti_velruse_demo.git
cd kotti_velruse_demo
./run-server.shSetupInsertkotti_accounts.kotti_configureonkotti.configuratorskotti.configurators = kotti_velruse.kotti_configure
                      kotti_accounts.kotti_configure
                      # other plugins...See alsokotti_velrusefor other configurations, sincekotti_velruseandkotti_accountswere designed to work together.Design Decisionsassociate multiple externally authenticated identities to a single Principal.substitute part of the internal registration workflow provided bykotti.security.behave as a drop-in to the existingkotti.securityPrincipals.all existing test cases depending on Principals must pass.integrate withkotti_velrusevia events.WorkflowNew userThe actions enumerated below happen when a user authenticates for the first time using
his/her external OpenID account (or any other authentication method):the user’s real name and email address are obtained from the external provider;a new Principal is created and populated with the real name and email address;a new Account is created and populated with the email address;the newly created Account is associated with the newly created Principal;event UserSelfRegistered is triggered, in order to integrate with other plugins.the session is then authenticated with the allocated Principal.Returning userThese actions enumerated below happen when a returning user authenticates:the user’s real name and email address are obtained from the external provider;find the Account which matches the email address;finds the Principal associated with the Account;the session is then authenticated with the Principal found.Add email to existing userThese actions enumerated below happen when new email addresses are added to an existing
Principal, using the new Preferences page:the user remains authenticated as he/she was, keeping the current Principal;the user performs a new login, authenticates against another external provider;the user’s real name and email address are obtained from the external provider;a new Account is created and populated with the email address; the real name is discarded;the newly created Account is associated with the existing created Principal;the session remains authenticated as it was in the beginning.Pending(TODO) ability to merge accounts.TroubleshootingHow do I authenticate as administrator?The default authentication method provided by Kotti retrieves Principals from the database
and compares the password you type against what is stored there. The authentication method
provided bykotti_accountsrelies on authentication performed by external providers,
which means that the usualadmin/qwertyis not valid anymore.The way to become administrator consists on these steps:Insert something similar to the below into your configuration file:kotti.accounts.admins = admin@example.com
                        webmaster@example.comNoteThis allows the specified list of emails to be understood as special.
It means that administrator rights will be automatically assignedonlyat Principal
creation, which happenswhen the user authenticates for the first time.Start the server and authenticate using some external provider, employing any of the
emails listed as part ofkotti.accounts.admins.Stop the serverRemove the configuration you just done onkotti.accounts.admins.WarningIn order to enforce security, it’s a good practice to removekotti.accounts.adminsfrom your configuration.Start the serverWhen you login to your previously created user account, using an external provider, you
will be recognized as administrator.SupportPlease find links on the top of this page.AuthorsRichard Gomes <rgomes.info@gmail.com>Changelog0.2.5 (05-FEB-2014)bugfix: trouble with Facebook authentication.
Thanks tiberiuichim for your contribution! :)0.2.4 (15-JAN-2014)bugfixes
Thanks tiberiuichim for your contribution! :)https://github.com/frgomes/kotti_accounts/pull/10.2.3 (21-Nov-2013)Allows a list of administrative accounts. For example:kotti.accounts.admins = admin@example.com
                        webmaster@example.com0.2.2 (18-Nov-2013)Propagates event UserSelfRegistered when a new Principal is created.0.2.1 (11-Nov-2013)Provides a replacement for Preferences page (@@prefs)0.2 (06-Nov-2013)Better integration with kotti_velruse0.1 (02-Nov-2013)Preview version.