zorn-v / nextcloud-social-login

GNU Affero General Public License v3.0
198 stars 137 forks source link

"Ce compte est déjà connecté" ("this account is already connected") #296

Closed albedo15 closed 2 years ago

albedo15 commented 2 years ago

Bonjour,

Lors de l'utilisation du connecteur Custom Oauth2, un message bloquant apparaît dans ce cas de figure :

  1. Je clique sur le connecteur, et me connecte parfaitement à mon service avec l'Oauth2.
  2. Je ferme l'onglet de mon service sans me deconnecter
  3. Je veux retourner sur le service, et clique de nouveau sur le connecteur, et là le message suivant apparaît : 'ce compte est déjà connecté' et on se retrouve bloqué.

image

N'est-il pas possible d'autoriser la redirection même quand l'utilisateur est déjà connecté ?

Merci


Hello,

When using the Custom Oauth2 connector, a blocking message appears in this case:

  1. I click on the connector, and connect me perfectly to my service with the Oauth2.
  2. I close my service tab without logging out
  3. I want to go back to the service, and click again on the connector, and there the following message appears: 'this account is already connected' and we find ourselves blocked.

image

Is it not possible to allow redirection even when the user is already logged in?

Thank you

zorn-v commented 2 years ago

If you already logged in, why you need to click on some connector ? Why just not open index page ?

albedo15 commented 2 years ago

Bonjour,

Le connecteur chez nous a deux fonctions, il sert également de "raccourcis". Il s'agit d'un Espace Numérique de Travail destiné à des structures scolaires (enfant dès 10 ans et adultes), l'usage de notre connecteur ici est double :

Le fait que le connecteur "refuse" l'accès en étant déjà connecté serait un obstacle contraignant pour un certain nombre d'utilisateurs.


Hello,

The connector with us has two functions, it also serves as "shortcuts". This is a Digital Work Space intended for school structures (children from 10 years old and adults), the use of our connector here is twofold:

The fact that the connector "refuses" it being already connected would be a restrictive access obstacle for a certain number of users.

**Different formulation:

we use the shortcut to the Oauth2 login page as a way to avoid having to use the standard authentication method, but if the user closes the NextCloud tab, he or she will go back to the page containing the same shortcut to open it back, hence the issue.**

zorn-v commented 2 years ago

If you have only one provider configured you can use 'social_login_auto_redirect' => true nextcloud system config option (check readme) for autoredirect to auth via that provider from login page.

albedo15 commented 2 years ago

Bonsoir, Désolée de la réponse tardive. Merci pour cette solution, cela permet de contourner le problème, et me convient parfaitement. Merci

Good evening, Sorry for the late response. Thank you for this solution, it works around the problem, and suits me perfectly. Thank you