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

Single sign-on with Tatoeba #3

Open
jiru opened this issue Mar 1, 2020 · 1 comment
Open

Single sign-on with Tatoeba #3

jiru opened this issue Mar 1, 2020 · 1 comment

Comments

@jiru
Copy link
Member

jiru commented Mar 1, 2020

Here is a rough plan to allow having the same users/registration/login on Tatoeba and the wiki, based on cookie sharing:

  1. Disallow registration on the wiki.
  2. Manually match existing tatowiki users with existing Tatoeba users (we only have 242 tatowiki users so far, including invalid spammer accounts).
  3. Modify user ids in all the tables of tatowiki so that they are the same as Tatoeba’s user ids.
  4. On Tatoeba, upon login or registration, create an additional encrypted cookie containing id and username.
  5. On tatowiki, when accessing any page, check for the existence of that cookie. If that cookie is set and successfully decrypted, tatowiki automatically registers a new user if he doesn’t exist, and it automatically logs in the user if he’s not logged in.
  6. Make sure the session timeout of tatowiki is lower or equal than Tatoeba’s.
  7. On tatowiki, change the login link to point to the Tatoeba login page.

Another approach is to make tatowiki look up users from Tatoeba’s database. Users will still have to login separately, but they don’t have to register two times any more. It requires to:

  1. Disallow registration on the wiki.
  2. Modify user ids in all the other tables of tatowiki so that they are the same as Tatoeba’s user ids.
  3. Modify tatowiki’s password hashing algorithm to match Tatoeba’s (Tatoeba uses something pretty custom).
  4. Make tatowiki read users from the Tatoeba database (note that tatowiki is currently based on sqlite while Tatoeba uses MySQL).
@agrodet
Copy link

agrodet commented Mar 18, 2020

Just wanted to let you know that I was contacted spontaneously for help to translate wiki articles. Fortunately, it's for a Japanese translation of a text-only page so it shouldn't pose any problem.

That would be nice if we could have at least login integration relatively quickly.

I guess that with the recent emulation about U.I. translations, more people may want to also translate some wiki pages.

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

No branches or pull requests

2 participants