Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2047 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Default Elixir model does not support transparent password encryption

Reported by: Chris Arndt Owned by: Chris Arndt
Priority: normal Milestone: 1.1
Component: Identity Version: 1.1 HEAD
Severity: normal Keywords: quickstart, elixir
Cc: needs patch

Description

The default SQLAlchemy identity model adds a special property for the password attribute of the User object that takes care of transparently encrypting the password before storing it in the database, if this is enabled in the identity configuration.

Unfortunately this technique doesn't work for Elixir, because properties need to defined differently for elixir.Entity object.

We need to add some support for encrypting the password when setting the corresponding attribute of the User object to the default Elixir quickstart identity model.

Change History

comment:1 Changed 8 years ago by Chris Arndt

If anybody has experience with Elixir and knows how to do this, help would be appreciated. I looked at the current Elixir docs but couldn't find out how to define properties that not only support a property function for reading but also for setting an attribute.

comment:2 Changed 8 years ago by Chris Arndt

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r6639 (thanks to Gaëtan de Menten, who provided the solution on the Elixir mailing list). Needs Elixir version >= 0.6.1.

Note: See TracTickets for help on using tickets.