2755 Commits

Author SHA1 Message Date
Gabriele C
6f1c63e693 Add delay to bungee force-login messages 2022-08-18 03:39:40 +02:00
Gabriele C
b65ffd7c74 Send logout message to bungee on self-unregister 2022-08-18 02:04:08 +02:00
Gabriele C
7c8bbe6294 Remove cache-update bungee messages, always use the player in the context to send bungee messages, minor codestyle changes 2022-08-18 01:48:34 +02:00
Gabriele C
24d03aa1e2 Add missing "MARIADB" datasource backend to the configuration file, remove "mySQLDriverClassName" property as it is no longer needed. 2022-07-28 18:11:57 +02:00
HarvelsX
a9898fd806 Add support MariaDB driver: https://github.com/AuthMe/AuthMeReloaded/issues/2556; 2022-07-25 12:14:26 +03:00
HarvelsX
ed4200b23f Fix column check: https://github.com/AuthMe/AuthMeReloaded/issues/2543; 2022-07-25 12:14:17 +03:00
Gabriele C
0ac1854a52 Implement allowPublicKeyRetrieval option in mysql datasource 2022-07-18 13:03:05 +02:00
Gabriele C
a67a4bb72b Don't let unrestricted usernames bypass the locked ip-username check 2022-07-17 18:40:11 +02:00
Ghost_chu
25cf85a7dc
Execute simple check before enable BungeeCord hook.
This commit added a simple check that check spigot.yml -> settings.bungeecord status by using AuthMe built-in method bukkitService.isBungeeCordConfiguredForSpigot() and disable hook if it enabled and not behind an BungeeCord proxy.

Register plugin message channel without BungeeCord proxy will allow attacker send fake login payload to treat AuthMe login with Plugin Message for him and bypass the user login.

This commit also updated SettingsWarner for new behavior.
2022-07-06 15:39:06 +08:00
ljacqu
571c6106a7 Fix some Checkstyle issues
- Remove unused imports
- Fix issues relating to line length / whitespace
- Update Checkstyle suppression in matcher classes with new check name
2022-01-30 10:32:49 +01:00
Gabriele C
5a3e585883
Fix #2467 2021-12-25 15:38:07 +01:00
Gabriele C
70db362e2a Add legacyHashes hint to the LoginSecurity converter #2449 2021-11-28 17:01:35 +01:00
Gabriele C
31564d8284 Relocate MySQL connector and fix migrations 2021-11-28 16:47:47 +01:00
ljacqu
6be9cec16e #2413 Always use ArrayList for LimboPlayer groups to prevent issue with Gson 2021-10-09 15:08:20 +02:00
bundabrg
80e37578b1
If a player is not registered then we send a LOGIN plugin message on join (#2275)
* If a player is not registered then we send a LOGIN plugin message on join

* Make looking up a profile optionally quiet

This prevents an issue where a forcedLogin of a player that doesn't exist occurring when an unregistered player switches a server. The first login would tell AuthBungee that the player is logged in, and subsequent switches would have AuthBungee send a performLogin back that would then send an unregistered player error message to the player.

Co-authored-by: bundabrg <bundabrg@grieve.com.au>
Co-authored-by: Gabriele C <sgdc3.mail@gmail.com>
2021-08-30 11:35:36 +02:00
Gabriele C
97a599c885 Implement MySQL 8 support #1779 2021-08-21 23:22:21 +02:00
Gabriele C
18c31e3a42 Update MySQL driver class name
+ implement fallback to the legacy driver
2021-08-21 22:54:36 +02:00
David Maes
d969d314b3
LuckPerm: keep contexts active after reload of groups (#2186)
* Use context aware groups

* Revert "Use context aware groups"

This reverts commit 5adc6ef7

* Keep luckperm contexts after authentication

* Code cleanup

* Code cleanup

* Fix nullpointer for context maps

* Code cleanup

* Use uuids for sqlite and postgresql

* Revert "Use uuids for sqlite and postgresql"

This reverts commit 05296e5f23bd4379a89647656f08432c718e6f9c.

* Cleanup imports

* Fix test

Co-authored-by: David Maes <david.maes@kbc.be>
2021-08-21 22:19:45 +02:00
Ruoshi Lin
5c23d3343d
Fix SQLite file not found issue (#2371)
When OP customize bukkit/spigot plugins directory location, SQLite file will still on default directory.
It will cause directory not found exception. Also let SQLite file not correct in the plugin directory.

Co-authored-by: Yuehu Lin <dev@fntsr.tw>
2021-06-28 09:41:35 +02:00
Gabriele C
5d9b941471 Update the authors list, enhance the "/authme about" command 2021-06-26 17:53:24 +02:00
games647
e7338f7c92
Raise BCrypt default cost factor for current computing power (#2360)
Fixes #2356
2021-06-24 18:26:21 +02:00
Gabriele C
f2a660712e Move onJoinMessage to HIGH priority 2021-06-07 02:26:58 +02:00
Andrea Cavalli
3393d989d9
Fix java 16 compatibility issue (#2342) 2021-05-26 21:40:59 +02:00
Pietro T
12cf3aa060
Fix #2018. using player's health value instead of isDead (which is unreliable) (#2302) 2021-03-31 20:47:34 +02:00
games647
fc8c9d8748
Open GEO connection after checking config values
(Related #2289)
2021-03-28 22:41:03 +02:00
Gabriele C
d50ad908d7
Fix typo in database setrings properties 2021-03-15 10:20:56 +01:00
Hex3l
b1e9b43294
adds proxy sessions, fixing auto login from bungee messages issues (#2285) 2021-03-15 02:49:45 +01:00
Gabriele C
543c9782be
Fix wrong default mysql driver class #2303 2021-03-15 02:46:37 +01:00
Gabriele C
8a42a77519 Bump spigot and bstats version 2021-03-14 03:12:01 +01:00
Eric-01
4e55f26a41
Added /log command to the allowCommands sequence (#2290) 2021-03-14 02:53:00 +01:00
MacacoLew
f2bdaa0454
Specify the Driver Class Name ("com.mysql.cj.jdbc.Driver") (#2262)
* Specify the Driver Class Name ("com.mysql.cj.jdbc.Driver")

TODO: Configurable Driver Class Name

* Update DatabaseSettings.java

* Update MySQL.java
2021-03-14 02:46:17 +01:00
ljacqu
ac5868787a Update to ConfigMe 1.2.0 2020-09-07 21:33:00 +02:00
ljacqu
e92721e597 #2158 Remove unneeded SQLite migration of column length
- SQLite always returns a column length of 2,000,000 as they don't really have a column length restriction, cf. https://stackoverflow.com/questions/35413956/trying-to-get-the-column-size-of-a-column-using-jdbc-metadata
2020-08-29 11:09:13 +02:00
Alexander Emelyanov
2eabb0d09d
Add player's IP into login logger (#2064) (#2169) 2020-08-20 00:59:17 +02:00
Gabriele C
eeb5530f61 Fix sqlite migrater logic #2158
Co-Authored-By: ljacqu <ljacqu@users.noreply.github.com>
2020-07-18 01:05:22 +02:00
Gabriele C
e291a0415b Attempt to fix issue #2158 2020-07-17 18:07:42 +02:00
Gabriele C
a1021f9dc3 Fix totp column size #2154 2020-07-16 00:18:51 +02:00
Gabriele C
990830c395 Bump spigot api version, fix BukkitService.runTaskTimerAsynchronously() #2150 2020-07-10 20:55:15 +02:00
Gabriele C
06be8ea6f4 Port thread safety/performance optimizations from #1992 2020-06-26 22:23:50 +02:00
Leo Garbe
35a3ad1867
Fixed unrestricted inventories (#2080) 2020-04-22 12:18:48 +02:00
ljacqu
f7911edd60
#1448 Create AuthMePlayer to get player data from API with (#2000)
* #1448 Create AuthMePlayer to get player data from API with

* #1448 Add tests for new API method & AuthMePlayer

* #1448 Create AuthMePlayer to get player data from API with
- Use Optional for all values that may be null

* #1448 Add comment that AuthMePlayer data does not update itself
2020-02-12 20:06:42 +01:00
Gabriele C
0e8da5a556 Fix the GeoIp DB updater 2020-01-26 22:29:14 +01:00
Drc-DEV
8fb21c5fb4 Add method to get the registration date to the API (#1993)
* Add method to get the registration date to the API

* Removed unnecessary check

* Add method to get the registration IP to the API
2020-01-24 23:09:28 +01:00
Gabriele C
b85ba98d85 Add bStats pluginId 2020-01-22 10:47:08 +01:00
Gabriele C
4796069ff8 Link to EssentialsX's MaxMind license tutorial 2020-01-21 10:33:46 +01:00
Gabriele C
a43127dd2b
Update the GeoIp database download method [BREAKING] (#1990)
* Update the GeoIp database download method [BREAKING]

Now GeoIp database updates require a ClientID and a LicenseKey, which can be obtained for free at https://www.maxmind.com/en/accounts/current/license-key

* Codestyle
2020-01-21 10:28:50 +01:00
Gabriele C
e05c07799d Compile against 1.15 api, update luckperms to 5.0 (breaking change) 2019-12-12 16:41:44 +01:00
ljacqu
442737c27c Output server details if AuthMe stops because of server type (#1946) 2019-12-08 20:12:30 +01:00
ljacqu
e31cb5bb9e Fix some CodeClimate issues
- Mostly missing Javadoc on methods & line length violations
2019-11-03 10:54:43 +01:00
Arvind Kumar
d6711d83b3 Fixes in documentation (#1927)
* Fixed typos and grammer in documentation
2019-10-17 08:34:27 +02:00