Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A GUI selector to define connection (Simple or Full) #155

Closed
wants to merge 1 commit into from

Conversation

GayLaurent
Copy link

I propose a GUI modification.

In fonction of a parameter (inside a json file guiconfig.json or guiconfig-template.json), the connection in GUI change.

  • selector=0 : it's like currently, with full connexion (username, password, option)
  • selector=1 : a simple connexion, with only username (no password or option)
  • selector=2 : with a selector to chose Full or Simple connection.

=> This modification is use when we define group with users without password.
It's confusing to have a GUI asking a password if it's not necessary.

@jech
Copy link
Owner

jech commented Mar 16, 2023

I agree with the goal, but I don't agree with the mechanism.

We already have a mechanism for passing arbitrary data to the GUI — it's the .status.json mechanism. See here:

So I suggest you rework your patch to use the existing mechanism rather than inventing your own. Additionally, please use descriptive names rather than integers.

@jech
Copy link
Owner

jech commented Apr 1, 2023

Thanks for the PR. Thinkig it over, I believe that your use-case will be covered by the next version of Galene, which has support for invites. You may test my working version of the code, which is in the branch token.

  1. In order to disable the password prompt, you simply create an invite with no username by typing /invite. This creates a link with an embedded token, which causes Galene to display a login dialog with no Password field.
  2. In order to disable the login prompt altogether, you create an invite with a username, by typing something like /invite anonymous. This creates a link with an embedded token that contains the specified username.

Please feel free to test by doing git clone -b token https://github.com/jech/galene. Please be aware that I'm still working on this code (the server-side code is almost ready, the client-side code needs some cleaning up).

@jech
Copy link
Owner

jech commented Apr 4, 2023

The need to provide a simplified login UI has been met in a different manner, by using stateful tokens. Please see https://lists.galene.org/galene/[email protected]/T/.

Please reopen this PR, or file a new issue, if you have a usecase that's not met.

@jech jech closed this Apr 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants