Django Multiple concurrent logged-in accounts
NickName:Blazor Ask DateTime:2017-03-01T03:02:51

Django Multiple concurrent logged-in accounts

In the context of a e-health related service, the end-users (health operators, doctors and physiotherapists) working in the same physical environment and sharing just one client PC to interact with my backend, asked me to provide them with a mechanism to quickly switch among different accounts (security is not a concern most of the time because they are used to work within a LAN but, occasionally, they might work from remote clients, so I must keep an authentication/authorization backend in place). They would log in just once and then, before using the web application, would select their logged-in account from a combobox (sort-of).

The UI model might be the same as in GMail where it's possible to keep multiple logged-in user accounts and switch between them through the account selector in the top right corner.

I'm no django-authentication expert, so I am not able to even tell whether this is possible in the context of a django based app.

Does anyone know of any ready-made app/middleware to get this done? Or maybe point me in the right direction if I have to extend or modify existing code?

Thanks a lot.

Copyright Notice:Content Author:「Blazor」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/42516758/django-multiple-concurrent-logged-in-accounts

More about “Django Multiple concurrent logged-in accounts” related questions

Django Multiple concurrent logged-in accounts

In the context of a e-health related service, the end-users (health operators, doctors and physiotherapists) working in the same physical environment and sharing just one client PC to interact with...

Show Detail

Django redirects to /accounts/profile

I have written some middleware that restricts access to all URLs except the exempted ones. A user can access all the URLs only if they are logged in, if not logged-in, a user can only access exempted

Show Detail

In a django site I want to let users create other users that are tied to their accounts

I want to let a logged-in and registered user create extra user accounts that he will be the admin of. These accounts will be special "subordinate" accounts that are tied to the user creating them...

Show Detail

django-allauth: Linking multiple social accounts to a single user

In testing django-allauth, if I log in and log out with different social accounts, they don't seem to be linked together (in that I cannot access them by looking at socialaccount_set.all.0,

Show Detail

How does one set up multiple accounts with separate databases for Django on one server?

What options are there for installing Django such that multiple users (each with an "Account") can each have their own database? The semantics are fairly intuitive. There may be more than one User...

Show Detail

Multiple concurrent database transactions with Django?

Is it possible to use multiple concurrent transactions within one Django process? Specifically, I've got two functions which should each execute concurrently (yielding between each other), but sho...

Show Detail

Django: multiple accounts, with multiple users under each account, but account-specific data

Using Django 1.5 here. I have an application I've created that currently has one big set of data, for one "account" if you will. Meaning all the data in all the models in my application are avail...

Show Detail

Django allauth - Multiple social accounts with a custom user

I've been trying to find how to add a new social account to a user that has already signed up and loged in, using django-allauth. So far, I have found this question, and this other question related...

Show Detail

How to filter Django model data using the logged-in users with multiple objects

I am new to Django and trying to figure out how to filter data using the logged-in users with multiple objects. When the user logged in, the user should be able to see the book which was authored b...

Show Detail

Allowing Users logged in with multiple accounts at once to the same Django site

I'm creating a widget that gets installed on various different sites and I need distinct users for each site. Problem is, the same person browsing might have 2 different sites open at once that use...

Show Detail