E
E
Eugene2018-06-26 15:34:07
Django
Eugene, 2018-06-26 15:34:07

Authorization on a local django site for visitors from the Internet with login verification via ldap + additional verification via sms?

Good day!
I implemented SSO on the local server using the django-auth-ldap library, it works as expected, the user with his domain account goes to the site. But... thinking about expanding the functionality, I came to the conclusion that it would also be necessary to implement the entrance to the corporate site through the external Internet, using the same login and password, only plus everything you need to send an SMS with a confirmation code. What is the actual question: by what mechanisms is it possible to implement such a two-factor authorization?
When logging in via ldap to django, a user is created which actually needs to be checked (probably), but what if there was no first login from the local area, and there is no user in the django database? It turns out that I should have two login addresses, one for internal users, the second for external ones?
Thanks for the kind words))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-06-26
@dimonchik2013

start with
How does ldap authorization work in php?
dig the place
in part
and send it there
if you are not talking about LDAP - then what does LDAP have to do with it at all? regular reg / login, better on social networks, but also via SMS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question