Possible to prohibit Account Sharing ?
Afficher commentaires plus anciens
Hey,
I am currently in the progress of setting up a Webapp Server to a small user group.
As of now users are required to log in using OIDC over Google Accounts. Is there any way to detect if an user is sharing his Google Account with other Users? Or is there any other provider despite Google where Account sharing would not be possible?
Maybe to clarify it a bit further since it was mentioned in the comments: I would love to check if the same login credentials are logged in twice at the same time at all. And if they are, log out both instances / send a notification.If thats possible by any means it would help out what i am looking for.
If there is any possibility to even combine that with IP Checks, or similar, that would certainly help out but is neither mandatory nor my prefered solution.
Thanks for you replies.
2 commentaires
Image Analyst
le 28 Juil 2022
Do you mean like detect if the IP address of the person logging in is not the same as the original person?
Dominik Pahlke
le 28 Juil 2022
Réponse acceptée
Plus de réponses (2)
Walter Roberson
le 28 Juil 2022
0 votes
I'm at home, using my phone to access the site. My local IP address was determined by DHCP on my local 192.168.0.x subnet, and my external IP address is what was assigned by my home ISP.
I leave home and walk to the corner bus-stop. The distance is pretty marginal to continue connecting to my home WiFi, so the home WiFi connection may drop, and I might pick up the open WiFi node run by my ISP, which has a device in the hair dresser on the opposite corner of the street from the bus stop. My IP address becomes whatever was assigned by the ISP WiFi.
The bus arrives, I get on and it starts to drive. I get out of range of the WiFi node run by my ISP, and my phone automatically switches to cell phone data; my IP address becomes an IPv6 address gatewayed by my ISP to IPv4 if needed. Unless, that is, the bus just happens to be one of the ones that has WiFi on it, and I happen to have configured to accept that WiFi.
As the bus happens to have a stop close to a Starbucks, while we are near enough there, my phone detects the WiFi connection from Starbucks and switches to that (instead of using cellular data), and my IP address becomes something else.
Now, I might not have been the only person at home accessing the service, so routinely at home multiple users might be sharing the same external IP address, with distinct local addresses. The ISP open WiFi node has a whole bunch of people sharing the same external IP address. My cellular data service has a whole bunch of people sharing the IPv6 / IPv4 gateway. Starbucks has a number of people sharing the same IP address.
So... you cannot reliably tell different people apart by their IP address, and the same person might very legitimately have a number of different IP addresses.
1 commentaire
Dominik Pahlke
le 29 Juil 2022
Image Analyst
le 28 Juil 2022
0 votes
Maybe you need to use a sophisticated license checking program like Mathworks uses when a bunch of users check out licenses from a pool of available licenses. So they login somehow and if they're already logged in, you can prevent them from logging in again.
6 commentaires
Dominik Pahlke
le 29 Juil 2022
Image Analyst
le 29 Juil 2022
No, sorry. Why do you need to prevent the same user being logged in twice? What happens if they do?
Dominik Pahlke
le 30 Juil 2022
Walter Roberson
le 30 Juil 2022
Does the webapp have access to permanent storage?
Image Analyst
le 30 Juil 2022
You could use fingerprint identification or face recognition if it's really important enough to control who uses the program.
Dominik Pahlke
le 30 Juil 2022
Catégories
En savoir plus sur Server Management dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!