narenchoudhary / django-iitg-auth

A custom authencation backend for authenticating with IIT Guwahati webmail (POP) servers. :star: Example project: https://github.com/narenchoudhary/django-iitg-auth-example :star:
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Example app not working? #4

Closed adityadivekar03 closed 6 years ago

adityadivekar03 commented 6 years ago

Could you confirm if the example app is working? Reproduce -

git clone https://github.com/narenchoudhary/django-iitg-auth.git
python setup.py install
cd example/
python manage.py migrate
python manage.py runserver

The login does not work, and an error No user found for given credentials. is produced for correct credentials

narenchoudhary commented 6 years ago

This error comes from WebMailAuthenticationBackend.authenticate method in auth.py file. https://github.com/narenchoudhary/django-iitg-auth/blob/3cdc88b00931ed29d124e5f302035420cd8de90a/iitgauth/auth.py#L55

This basically means application is unable to open a POP3 connection with IITG webmail servers.

I need answers for following questions:

I'm not in campus so I'll need some of this info from you.

https://github.com/narenchoudhary/django-iitg-auth/blob/3cdc88b00931ed29d124e5f302035420cd8de90a/iitgauth/constants.py#L1

narenchoudhary commented 6 years ago

:wave: @kmskrishna can you help with the questions?

kmskrishna commented 6 years ago

Nothing changed and POPlib is working fine.

narenchoudhary commented 6 years ago

@adityadivekar03

~It is a Django2.0 issue. I'll push the update over the weekend. Can you try with Django<=1.10.5 ?~

It wasn't a Django2.0 issue. You probably were doing something wrong. Anyways, I've separated example project into a new repository. It is now available here: https://github.com/narenchoudhary/django-iitg-auth-example.