AuthMeReloaded icon indicating copy to clipboard operation
AuthMeReloaded copied to clipboard

Xenforo support in Authme 5.0 ?

Open Slaand opened this issue 11 years ago • 54 comments

I remember, what older authme versions having xfsha256 encryption, but xenforo have separate tables: user table and password table Is it real to return back xenforo support? Its would be nice p.s. sorry for my english

Slaand avatar Jul 21 '15 06:07 Slaand

The problem with xenforo is that it isn't open source, so we have difficulties to study his database structure.

sgdc3 avatar Jul 21 '15 07:07 sgdc3

I can give a clean xenforo forum with db

Slaand avatar Jul 21 '15 07:07 Slaand

bump

sgdc3 avatar Dec 29 '15 02:12 sgdc3

FYI: Admin password in the dump is oIYPsCpn (as mentioned by @Xephi).

The code that we have for Xenforo (doesn't work!) has been pushed to the 137-xenforo-support branch (aed23cb). There are various code snippets with TODO #137 scattered all around the codebase that need to be tackled. In particular:

  • [x] Make sure that the salt and the hash are always retrieved and stored together
  • [ ] Test AuthMe with the XENFORO hash and make sure it works (register a player, unregister a player, change a player's password...)
  • [x] Create a test for the Xenforo algorithm class. It already exists and a comment in the class explains how to create the test class (It's as simple as running a method to generate the entire class)
  • [x] Make sure there are no more TODO #137 in the code.
  • [x] If you want, you can add to the README.md file that we support Xenforo
  • [x] Suggestion: Rename XF.java to XENFORO.java, or even better: Xenforo.java

I recently refactored the encryption algorithm section of AuthMe, so if you have a question about the inner workings (such as he HashedPassword or PasswordSecurity class), please contact me. :)

ljacqu avatar Dec 30 '15 23:12 ljacqu

Also, do you know, what XF use 2 separate tables? xf_user - user table xf_user_authenticate - password table

And yes, for now it's doesn't work at all. [Server thread/WARN]: [AuthMe] Unknown Hash Algorithm; defaulting to SHA256

Waiting for new builds to test them :dancer:

Slaand avatar Dec 31 '15 09:12 Slaand

Thanks for the info. @DNx5 is working on adding Xenforo support. Right now it's not in AuthMe just yet, so it doesn't know the "XENFORO" hash algorithm for now. ^^

@Slaand, thanks a lot for all of your help (the information and the dump you have provided) and your patience!

ljacqu avatar Dec 31 '15 09:12 ljacqu

@DNx5 How are you doing with xenforo? I recently generated the test class for Xenforo and I think the only problem was a null pointer exception from ConsoleLogger. That's just because of the test — I'll fix this (i.e. I'll do the test class) so it doesn't stop progress on this issue

ljacqu avatar Jan 06 '16 17:01 ljacqu

I renamed XENFORO hash algorithm to XFBCRYPT because current version of xenforo is using Bcrypt but the old version is sha256/md5

DNx5 avatar Jan 07 '16 00:01 DNx5

That sounds nice! Thanks for all the recent commits. I'll fix the tests and assign this to you for merging to master? I don't know if there's anything else pending for Xenforo support

ljacqu avatar Jan 07 '16 17:01 ljacqu

Tests fixed.

ljacqu avatar Jan 07 '16 19:01 ljacqu

Ok, @Slaand can you try it? ;)

sgdc3 avatar Jan 08 '16 00:01 sgdc3

  1. Problem with player register, after /reg command server server snow me an error at console: [Craft Scheduler Thread - 1/WARN]: [AuthMe] Field 'email' doesn't have a default value So what's wrong? :D My cfg http://pastebin.com/xTuxfd4Z
  2. After password change at server, player can't log in anymore. At server/website same error: wrong password.

Slaand avatar Jan 08 '16 09:01 Slaand

Also if you still need alot more info from this, you can take all my logins and passes from xenforo db, but admin account is broken for now, because of this passchange at server :D P.S. Sorry for my english

Slaand avatar Jan 08 '16 09:01 Slaand

try to set encryption to xfbcrypt

DNx5 avatar Jan 08 '16 12:01 DNx5

probably related to #418 but I dont know why.

DNx5 avatar Jan 08 '16 12:01 DNx5

My encryption already is XFBCRYPT, you can see my config, comments above.

Slaand avatar Jan 08 '16 12:01 Slaand

You can't login only after change your password right?

DNx5 avatar Jan 08 '16 13:01 DNx5

Yes, that's right. Later I'll do more tests with xenforo and authme, maybe we get more bugs :)

Slaand avatar Jan 08 '16 13:01 Slaand

Is your previous password generated by AuthMe with xfbcrypt encryption? Or by Xenforo?

DNx5 avatar Jan 08 '16 13:01 DNx5

By xenforo

Slaand avatar Jan 08 '16 13:01 Slaand