Multiple websites but one authentication system

36 views
Skip to first unread message

Isaac

unread,
Aug 26, 2021, 8:18:03 AM8/26/21
to Django users
Am working on a company website and there will be having more websites as time goes on, they don't want to be creating authentication system in each of their website. To avoid stress in creating multi account on these platform, there is a need to have one website that will do everything relating to authentication and authorization, just Google is.
 For example we will have domain1.com which will handle everything relating to  authentication and authorization(Signup,Signin,Password reset, Password change, Logout) while other domains like domain2.com, domain3.com, domain5.com etc will be falling back to domain1.com for authenticating users. Plz any suggesting on how i can do this will be highly appreciated. 

Eugene TUYIZERE

unread,
Aug 26, 2021, 8:29:47 AM8/26/21
to django...@googlegroups.com
My suggestion is that you can create a single entry where after login the system redirects users to the home page containing all these domains as icons and then the user selects the one he wants.

On Thu, 26 Aug 2021 at 10:18, Isaac <isaac.im...@gmail.com> wrote:
Am working on a company website and there will be having more websites as time goes on, they don't want to be creating authentication system in each of their website. To avoid stress in creating multi account on these platform, there is a need to have one website that will do everything relating to authentication and authorization, just Google is.
 For example we will have domain1.com which will handle everything relating to  authentication and authorization(Signup,Signin,Password reset, Password change, Logout) while other domains like domain2.com, domain3.com, domain5.com etc will be falling back to domain1.com for authenticating users. Plz any suggesting on how i can do this will be highly appreciated. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/efe93e26-23cb-4557-a763-1c2790bf541bn%40googlegroups.com.


--
TUYIZERE Eugene

Msc Degree in Mathematical Science

African Institute for Mathematical Sciences (AIMS Cameroon)
Crystal Garden-Lime, Cameroon


Bsc in Computer Science

UR-Nyagatare Campus

Email: eugene....@aims-cameroon.org
           eugenet...@gmail.com

Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

Isaac

unread,
Aug 26, 2021, 8:46:11 AM8/26/21
to Django users
Am trying to understand what you said sir but am still confuse, how will the domain2.com recognize that this person is a user ? Also how will the database schema  look like ? Will the two database be connected in a way ? 

Steven Mapes

unread,
Aug 26, 2021, 9:15:21 AM8/26/21
to Django users
You could use oauth between the projects. Look into https://django-oauth-toolkit.readthedocs.io/en/latest/ which would enable you to set up domain one as your authentication backend which the others could use

Christian Ledermann

unread,
Aug 26, 2021, 10:02:42 AM8/26/21
to django...@googlegroups.com
I did this in the past by setting up
https://github.com/jazzband/django-oauth-toolkit as an authentication server at login.my-domain.com and then connecting the other websites with





--
Best Regards,

Christian Ledermann

Galway, IE
Mobile : +353 (0) 899748838

https://www.linkedin.com/in/christianledermann
https://github.com/cleder/


<*)))>{

If you save the living environment, the biodiversity that we have left,
you will also automatically save the physical environment, too. But If
you only save the physical environment, you will ultimately lose both.

1) Don’t drive species to extinction

2) Don’t destroy a habitat that species rely on.

3) Don’t change the climate in ways that will result in the above.

}<(((*>

Isaac Imafidon

unread,
Aug 26, 2021, 10:54:21 AM8/26/21
to django...@googlegroups.com
Thanks everyone that contributed, you guys have really shown me much love.  Am so grateful . Much appreciated. 🙏🙏

Virus-free. www.avast.com

Isaac Imafidon

unread,
Aug 26, 2021, 10:55:17 AM8/26/21
to django...@googlegroups.com
Thanks specially sir

Virus-free. www.avast.com

On Thu, 26 Aug 2021 at 11:02, Christian Ledermann <christian...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages