ljacqu
51260fd22d
Disable regular Hikari log statements during test execution
...
- Also use mock logger instead of a real one in a few select tests to reduce the log output during tests
2019-11-03 17:38:14 +01:00
ljacqu
901b9adb8a
Github action: remove duplicate test step
...
- `mvn clean package` already runs tests
- Add -B switch to skip detailed logging of dependency download progress
2019-11-03 16:33:39 +01:00
ljacqu
39fbb4ac05
Remove tests calling hidden constructor of util classes
...
- Newer versions of JaCoCo now ignore hidden constructors out of the box so we don't need the dummy method that calls the constructor for coverage anymore
2019-11-03 11:27:18 +01:00
ljacqu
e31cb5bb9e
Fix some CodeClimate issues
...
- Mostly missing Javadoc on methods & line length violations
2019-11-03 10:54:43 +01:00
ljacqu
2673eb0f8e
Mockito: Replace deprecated verifyZeroInteractions with verifyNoInteractions
2019-10-26 21:56:54 +02:00
ljacqu
776d1e5fa3
Fix failing test
...
- googleauth uses a new website to generate QR codes, cf. https://github.com/wstrange/GoogleAuth/issues/77
2019-10-26 21:52:43 +02:00
ljacqu
969ed8c89c
Update dependencies as found by dependabot
...
- Closes #1919 , closes #1920 , closes #1922
2019-10-07 08:04:15 +02:00
ljacqu
7ab7c688c3
Update translations doc & translation files
2019-08-15 21:17:45 +02:00
ljacqu
e2f2ff0763
#1874 Output number of loggers in /authme debug stats
2019-08-11 11:36:28 +02:00
ljacqu
363e85e363
Set up logger at start of initialization to avoid NPE on errors later on
...
- Thanks to sgdc3 for the hint
2019-08-11 11:32:03 +02:00
ljacqu
647ee245e0
#1874 Format debug messages in log, use Java 8 date formatter
...
- Format debug messages properly in the authme.log as well
- Replace DateFormat with Java 8's DateTimeFormatter (which is thread-safe)
2019-08-10 22:44:57 +02:00
ljacqu
f268f7cd65
Fix verifyMessages tool task not finding English messages for todo comments
2019-08-10 22:34:45 +02:00
ljacqu
d87fa860e6
Add test for UuidUtils
2019-08-06 19:42:06 +02:00
ljacqu and Gabriele C
c34f00f759
#1874 Introduce individual ConsoleLogger instance per class ( #1875 )
...
* #1874 Introduce individual ConsoleLogger instance per class
- Create ConsoleLoggerFactory from which a separate logger can be created for each class
- Allows to support individual log level settings in the future
* Fix CodeStyle issue
* Replace full class name with import
* Update usages after merge from master
2019-08-06 15:15:16 +02:00
ljacqu and Gabriele C
ae68667f5e
Add Maven profile to skip Javadoc generation for local builds ( #1878 )
...
* #1877 Add Maven profile to skip Javadoc generation for local builds
* Make it nicer
2019-08-06 01:12:01 +02:00
ljacqu and GitHub
7bede2528f
#1523 Create admin commands to handle players' 2FA data ( #1876 )
...
* #1523 Create admin commands to handle players' 2FA data
- Create admin command to view if a player has enabled 2FA
- Create admin command to disable 2FA for a specified player
2019-08-05 19:31:59 +02:00
ljacqu
f0d3d085c6
#1574 Use server name in 2FA QR code link instead of IP
2019-08-02 15:38:13 +02:00
ljacqu
c00109074a
Minor: create dummy string of specific length with better method
2019-08-02 15:29:06 +02:00
ljacqu
61af2a0554
Update depenencies
...
- As reported by dependabot: closes #1859 , closes #1860 , closes #1867 , closes #1871 , closes #1873
2019-08-02 15:23:46 +02:00
ljacqu and Gabriele C
210a4f61cb
#1219 Make 2FA tokens one-use only ( #1848 )
...
- Make TotpAuthenticator keep track of the used codes and reject any known ones
2019-07-06 18:26:43 +02:00
ljacqu
fc06558687
Minor: change bukkit service to return a plain collection of Player
...
- List is read-only and can be easily "upcast" to Collection<Player>
- Remove awkward hack that was needed for mocking the method previously (issues with generics)
2019-06-22 23:50:06 +02:00
ljacqu
81cf14fbc1
#1752 #1830 Do not hide inventory if player is not registered
2019-06-22 23:30:56 +02:00
ljacqu
4be130b71b
Fix #1493 Extract handling of message file paths to a separate class with constants
2019-06-22 22:37:32 +02:00
ljacqu
ff2f43bdc5
#1743 Stop mobs from targetting players when not authenticated
2019-06-22 20:54:01 +02:00
ljacqu
d1b6161687
Minor: print stack trace if AuthMe is disabled due to exception, remove unused imports
2019-06-17 22:47:15 +02:00
ljacqu
6903e058d5
Undo star imports
2019-06-17 22:02:10 +02:00
ljacqu
e9cd16aaac
Undo star imports
2019-06-17 21:58:25 +02:00
ljacqu
55bff96807
#1831 Specify Java version to Javadocs Maven plugin
2019-06-17 21:54:04 +02:00
ljacqu
7f1894c5be
Remove no longer needed method in test class
2019-04-27 12:46:39 +02:00
ljacqu
53b8442309
Add Serbian to translation doc, rename from "rs" to "sr", fix percentage bar images
2019-04-14 11:10:07 +02:00
ljacqu
c856191659
Update to ConfigMe 1.1.0
...
- Squash of PR #1764
2019-03-01 20:22:38 +01:00
ljacqu
75e1e5ce51
#1707 Make column context thread-safe
2018-12-17 20:42:43 +01:00
ljacqu
c27a8d359c
Merge branch '5.5.0' of https://github.com/AuthMe/AuthMeReloaded
2018-12-04 19:52:12 +01:00
ljacqu
136b9e4b6e
Close #1317 Remove migration of lastlogin column from timestamp to bigint
2018-12-04 19:51:11 +01:00
ljacqu
bce1110b13
Minor: check returned permission system type in permission handler test
2018-12-04 19:48:46 +01:00
ljacqu
e84be5e4de
#1702 Consider that Vault permission handler may return null for permission groups
2018-12-04 19:45:46 +01:00
ljacqu
80647c04f4
Merge branch '5.5.0' of https://github.com/AuthMe/AuthMeReloaded
2018-12-04 19:05:14 +01:00
ljacqu
f431325516
#1650 Fix users with capitals not having their session saved
2018-12-04 19:04:25 +01:00
ljacqu
5ac34d5987
Merge branch '1449-commands-with-delay'
2018-09-11 22:11:49 +02:00
ljacqu
22c08c9fc3
#1449 Fix copying of Commands, add tests with command delay
2018-09-11 22:04:27 +02:00
ljacqu
db2094efc1
Merge remote-tracking branch 'origin/master' into patch-15
...
Conflicts: messages_es.yml
2018-09-09 20:32:58 +02:00
ljacqu
035c2f352a
#1449 Update commands.yml and make getter/setter in sync for new delay property
2018-09-09 15:53:39 +02:00
ljacqu
b7f0159618
Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into delay-commands-event
2018-09-09 15:49:12 +02:00
ljacqu
44763a055f
Fix VerificationCommandTest sometimes failing
...
- Need to set up ConsoleLogger to avoid NPE, didn't always happen because if all tests are run in a batch another test will initialize it
2018-09-09 15:47:52 +02:00
ljacqu and GitHub
ee764c0a6e
Update configme ( #1631 )
...
* Upgrade to ConfigMe 1.0.1
* Use ConfigMe reader whenever possible, minor simplifications
2018-09-09 15:45:00 +02:00
ljacqu and GitHub
b22f26822b
#1627 Replace BCryptService with Maven dependency ( #1629 )
...
* #1627 Replace BCryptService with Maven dependency
- Remove BCryptService in favor of a better BCrypt implementation (Maven dependency)
- Introduce BCryptHasher wrapping the dependency with more suitable methods
- Fix inaccurate details about salt length in docu annotation: for BCrypt it's always 22 chars
- Change phpBB hash to produce 2y hashes instead of 2a
* #1627 Use UTF-8 encoding when (dis)assembling Strings
* #1627 Small test additions
2018-09-03 23:13:48 +02:00
ljacqu
f79c364f84
Minor fixes as reported by CodeClimate
2018-09-01 09:17:42 +02:00
ljacqu
58e04556ee
Checkstyle: Add 'WhitespaceAfter' check, fix some violations
2018-09-01 08:38:14 +02:00
ljacqu and GitHub
c420255ad7
Merge pull request #1547 from AuthMe/ip-check
...
[Discussion] Skip IP check for API registration
2018-07-16 19:24:14 +02:00
ljacqu
fc07ad3df1
Update translations page
2018-06-25 21:54:42 +02:00
ljacqu and GitHub
fecd79fd28
Merge pull request #1577 from AuthMe/1417-chat-before-login-with-permission
...
#1417 Add permission node to allow chat before login
2018-05-22 19:51:15 +02:00
ljacqu
b9943675ba
#1557 Disallow player from using /email setpassword more than once
2018-05-21 13:29:34 +02:00
ljacqu
768ef9179a
Update datasource columns version
...
- Fixes #1551 Bad closing of resources in case of an exception
- Facilitates initialization of SQL handler implementation
2018-05-21 13:07:13 +02:00
ljacqu
68b896cfc3
Move salt column configuration to the other column configs
2018-05-21 09:10:27 +02:00
ljacqu
c4b02d74b7
Fix generic type in PlayerAuth matcher
2018-05-21 09:01:00 +02:00
ljacqu
6142042996
#1417 Add permission node to allow chat before login
2018-05-21 08:45:18 +02:00
ljacqu
8e4288f911
Minor code householding
2018-05-20 13:10:26 +02:00
ljacqu
c96e28f726
Add debug logging for teleports (relates to #1521 )
2018-05-13 22:52:41 +02:00
ljacqu
b5c028301b
Merge master into '1141-optional-additional-2fa-auth'
2018-05-13 18:54:19 +02:00
ljacqu
729c567dd5
#1141 Check that user is logged in before changing TOTP key
...
- Use PlayerCache to check that user is logged in where appropriate
- Add log statements
2018-05-13 18:49:40 +02:00
ljacqu
6f2f7a73af
Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 1141-optional-additional-2fa-auth
2018-05-01 22:49:23 +02:00
ljacqu
1e3ed795c1
#1141 2FA implementation fixes
...
- Merge TotpService into TotpAuthenticator
- Add missing tests
- Migrate old 2fa enabled key to new one
2018-05-01 22:49:07 +02:00
ljacqu and Gabriele C
d55b4bb3b5
#1561 Fix timing attacks by comparing hashes in constant time ( #1563 )
...
* #1561 Fix timing attacks by comparing hashes in constant time
* #1561 Fix timing attacks in phpBB fallback hashes
- As noted by @games647
2018-04-22 21:27:38 +02:00
ljacqu
ecdcaf2479
Fix failing tests
2018-04-22 13:26:51 +02:00
ljacqu
cff456c285
Help message updater: specify the name of the updated file
2018-04-22 12:51:41 +02:00
ljacqu
ecaffbabfc
Small cleanups / changes amassed over time
...
- Small javadoc fixes
- Simplifications
- Move logException method from StringUtils to ExceptionUtils
2018-04-22 12:45:34 +02:00
ljacqu
29ac3a7022
#1141 Fixes to TOTP implementation
...
- Revert back to SHA1 as HMAC hash function so that it works with Google authenticator
- Add message to user to tell him to run /2fa confirm to add a TOTP code
2018-04-22 11:13:27 +02:00
ljacqu
de0e588cf3
Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 1141-optional-additional-2fa-auth
2018-04-22 07:14:05 +02:00
ljacqu
9326094d9c
#1141 Fix review remarks by @games647
...
- Use SHA512 to generate keys instead of default SHA1
- Declare google authenticator dependency as optional and add relocation rule
2018-04-03 00:13:53 +02:00
ljacqu
2bf78dd186
Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 1141-optional-additional-2fa-auth
2018-04-02 23:44:19 +02:00
ljacqu
106dea1611
Minor: fix JavaDoc warnings
2018-04-02 23:43:52 +02:00
ljacqu
fc54c0311b
#1539 Columns handler: finishing touches
...
- Add relocation rule for shading of the library
- Fix SQLite connection not being refreshed on reload
2018-04-02 23:19:13 +02:00
ljacqu
ad9e6dbb6d
Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 1539-datasource-columns-integration
2018-04-02 22:33:26 +02:00
ljacqu
26472b6be3
#1539 Create common parent for SQLite and MySQL
2018-03-25 22:27:44 +02:00
ljacqu
4595a14191
#1539 Add support for columns that are not on player auth (is_logged, has_session)
2018-03-25 11:52:40 +02:00
ljacqu
137fc3d505
#1539 Use columns handler in more datasource methods; fix case-insensitivity for SQLite
2018-03-24 22:53:30 +01:00
ljacqu
881ef6a640
#1539 DataSource columns: close MySQL connections, add missing columns, use newly built-in types, improve column initialization
2018-03-24 21:16:43 +01:00
ljacqu
5a58f2c44f
#1539 Integrate data source columns library
...
- Create wrapper around SqlColumnsHandler for AuthMe-specific behavior
- Integrate columns handler into first SQLite and MySQL method implementations
2018-03-24 12:24:43 +01:00
ljacqu
e9ab82db6b
#1141 Make 2fa messages translatable, various cleanups (null safety, ...)
2018-03-21 23:56:13 +01:00
ljacqu
584a0bebbf
Minor: Fix failing test after command change
2018-03-20 23:13:48 +01:00
ljacqu
f66a8a5b06
Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 1141-optional-additional-2fa-auth
...
# Conflicts:
# src/main/java/fr/xephi/authme/permission/PlayerPermission.java
# src/main/java/fr/xephi/authme/service/BukkitService.java
2018-03-20 23:07:25 +01:00
ljacqu
495cfc69a9
#1141 Move TOTP code during login as separate step: /2fa code
...
Rough version.
- Introduces a limbo player state on the LimboPlayer, allowing us to add further mandatory actions between successful (password) authentication and the ability to play on the server
2018-03-20 23:06:08 +01:00
ljacqu and HexelDev
a1a909c01d
#1531 Move spigot detection to BukkitService ( #1534 )
2018-03-19 23:08:48 +01:00
ljacqu and GitHub
250bd0d148
Merge pull request #1517 from AuthMe/642-kick-on-fast-commands
...
#642 - Quick Command Protection
2018-03-19 22:35:49 +01:00
ljacqu
af6bee59bd
Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 1141-optional-additional-2fa-auth
...
# Conflicts:
# src/main/java/fr/xephi/authme/datasource/MySQL.java
2018-03-19 22:32:16 +01:00
ljacqu
fddb3bf265
Fix minor Checkstyle violations
...
- Mostly missing JavaDoc, some line lengths
2018-03-11 19:08:21 +01:00
ljacqu
ff0a7e1f89
Fix failing test
2018-03-11 16:34:25 +01:00
ljacqu
15f49dcbb3
Merge branch 'global-replacements'
2018-03-10 16:59:56 +01:00
ljacqu
1a53cd11b2
#829 Move CommandSender / name to first argument to avoid confusion with varargs
...
- Overloaded method with (String, String...) as args was problematic as it could be confusing on its own and also confusing with the (CommandSender, String...) flavor
2018-03-10 16:58:30 +01:00
ljacqu
eb9cd31a65
#1141 Split TOTP permissions for add/remove, refactor TOTP services
...
- Split TotpService further into GenerateTotpService and TotpAuthenticator, which wraps the GoogleAuthenticator impl
- Add missing tests for the services
- Change GenerateTotpService's interface to behave like a collection for more intuitive method behavior
2018-03-10 16:21:53 +01:00
ljacqu
e72d5d5e81
#1141 Require TOTP code to be passed with /login (temporary)
...
- Temporarily require the TOTP code to be provided with /login
- Future implementation should require it as a second step
2018-03-09 18:37:01 +01:00
ljacqu
c3cf9e3ee0
#1141 Rough version of TOTP commands to add and remove a code for a player
2018-03-07 20:11:53 +01:00
ljacqu
9954c82cb6
#1141 Add TOTP key field to database and PlayerAuth
...
- Add new field for storing TOTP key
- Implement data source methods for manipulation of its value
2018-03-05 19:50:58 +01:00
ljacqu
8d5afa7fbc
Minor: Use CommonService for permission lookup
...
- Some changes found in a very old patch :) - drop injection of PermissionsManager in favor of CommonService
- Rename IsEqualByReflectionMatcher's method to something more specific to differentiate it better from Hamcrest's equalTo() matcher
2018-02-23 23:37:24 +01:00
ljacqu and GitHub
329657bd5f
#1497 Show specific message for invalid YAML files ( #1506 )
...
* #1497 Throw dedicated exception for invalid YAML files and handle it on startup
- Wrap SnakeYAML exceptions when loading config.yml and commands.yml on startup into own exception type
- Handle exception type on startup with specific error message
* #1497 Fix inaccurate JavaDoc comment
2018-02-23 23:31:22 +01:00
ljacqu
7864bb06ac
Minor cleanups
...
- Fix line length violations
- Add JavaDoc to some longer methods
- Remove unused imports
2018-02-23 23:23:24 +01:00
ljacqu
83e247afe9
Minor: Simplify check for Spigot
2018-02-17 23:23:44 +01:00
ljacqu
90400650c3
Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 1467-message-keys-hierarchy
2018-02-17 23:08:39 +01:00
ljacqu
9dd4039fdd
#1467 Create backup before migrating; output newly added message keys
...
- Extract logic for creating a backup timestamp into FileUtils
2018-02-13 22:15:03 +01:00
ljacqu
ffeb04c0a2
Merge branch 'master' of https://github.com/AuthMe/AuthMeReloaded into 1467-message-keys-hierarchy
...
Conflicts:
src/main/resources/messages/messages_ko.yml
2018-02-11 09:47:07 +01:00