开发者

Migrating Rails restful authentication users to Django

开发者 https://www.devze.com 2023-01-15 20:31 出处:网络
I\'m looking to migrate users of a rails app which uses the Restful Authentication module (which uses a stretched sha1 encryption algorithm) to a Django app, using the default authentication framework

I'm looking to migrate users of a rails app which uses the Restful Authentication module (which uses a stretched sha1 encryption algorithm) to a Django app, using the default authentication framework (which uses a plain sha1 algorithm). Does anybody know how I can make this happen? specifically开发者_运维百科, can I somehow implement the same encrytion algorithm in Django? Thanks for your help.


Yes, you should be able to create your own backend. I've done this to create an 'e-mail instead of username' and a 'ignore case' backends.

See "Writing authentication backends".

0

精彩评论

暂无评论...
验证码 换一张
取 消