Dear all. I apologie for posting this question here, but I got no response from django-users.
I try to make my own Authentication-backend, I'll call it l2auth (2nd Level Auth). What I want in this application is - Use by multi companies that bussiness relation between them - I want to delegate user/group administaration to each company - Users will login using loginname as 'username@company'. It's not an email, it's more like 'realm' - more or less just like https://github.com/bennylope/django-organizations, but I dont want 'end-users' to touch core User/Group model/table. 1. I post settings.py, models.py, backends.py in a single pastebin at http://pastebin.com/srkLWQLi 2. I made a shell test using : -----START----------- from l2auth.models import * from l2auth.backends import L2Backend print 'List of Companies ', Company.objects.all() myauth=L2Backend() aa=myauth.authenticate('binonet01@binonet','1111') myauth.get_group_permissions(aa) for atr in aa.__dict__.keys() : print '%s = %s' %(atr, getattr(aa,atr)) -----STOP------------ and the result at : http://oi48.tinypic.com/64e6wx.jpg looks like ok. 3. but when I try to login via web using the same loginname and password, I got response as http://oi49.tinypic.com/143glyx.jpg Kindly please give me your enlightment to fix this problem Sincerely -bino- -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
