Commit Graph

258 Commits

Author SHA1 Message Date
games647 1f917f3a8d Use Optionals for nullable values 2017-09-24 19:50:42 +02:00
games647 e6c23a4bb5 Use Gson's TypeAdapter for more type safety 2017-09-23 13:56:28 +02:00
games647 66b808c999 Fix compile 2017-09-22 21:41:24 +02:00
games647 2932de5588 Add support for IPv6 proxies 2017-09-22 21:08:24 +02:00
games647 16f7461568 Fix message loading was interacting with the normal config 2017-09-22 20:11:58 +02:00
games647 2f0eb81735 Shade the Bungee-Config implementation because it's platform independent 2017-09-22 20:07:04 +02:00
games647 bb80521ab6 Thermos supports GSON so we could share the json parsing 2017-09-22 18:17:35 +02:00
games647 109508dae6 Clean up using IDE inspections 2017-09-21 15:00:39 +02:00
games647 5bf9b05d30 Fix BungeeAuth Maven repository 2017-09-13 12:34:56 +02:00
games647 7839804a4c Drop support for deprecated AuthMe API 2017-09-12 17:05:18 +02:00
games647 ca58c55eca Remove legacy database migration code 2017-09-08 11:33:14 +02:00
games647 10453fd637 Drop support for RoyalAuth, because it doesn't seem to be supported anymore 2017-09-08 11:30:24 +02:00
games647 d18b734550 Update dependencies 2017-09-08 11:17:05 +02:00
games647 7f51659cc7 Version dump 2017-09-03 20:06:00 +02:00
games647 bb240d3aa0 Refactor encryption implementation
* Simplify utility class and make it more independent from the vendor code
* Create only one cipher object for verification
2017-08-28 12:17:47 +02:00
games647 484855724b Add ip parameter to verify a player doesn't use an authentication proxy.
This doesn't prevent proxy connections in general, but it verifies that
the same IP that is used for connecting to the Minecraft server is also
used for authenticating against the Mojang servers.

This happens if someone uses McLeaks. They use an authentication proxy
in order to hide and control the credentials behind those leaked or
donated accounts. So a user of that service joins the server using
a direct connection, but asks the McLeaks servers to send a relevant
request to the Mojang session-servers in order to pass the premium
verification process.
1.10
2017-08-25 13:20:55 +02:00
games647 4ea7968366 Remove Importer to prepare for code refactor 2017-08-24 18:50:37 +02:00
games647 44a47bc97f Set default value for proxies 2017-08-20 21:40:37 +02:00
games647 82cb25f809 Output more informational messages by default 2017-08-19 21:53:07 +02:00
games647 551441cdc4 Add HTTP-proxies support 2017-08-18 16:09:59 +02:00
games647 22a56862b0 Remove mcapi.ca section and fix config typos 2017-08-16 17:18:58 +02:00
games647 edf5933e07 Set the fake offline UUID on lowest priority (-> as soon as possible)
Then every plugin listening on priority level higher than lowest can see that fake UUID

This also fixes race conditions for plugins listening on the same priority as FastLogin before (->low)
(Fixes #167)
2017-08-01 10:29:58 +02:00
games647 c6da04de70 Fix listening for login start packets if ProtocolLib is installed
Another call on ProtocolLib's types removes all previous listening types

Fixes #163
2017-07-25 13:18:08 +02:00
games647 0459b0a5a1 Remove bungee chatcolor for Bukkit to support KCauldron 2017-07-22 08:35:32 +02:00
games647 033333e35c Minor cleanup using inspections + Https
* Use https for maven repositories if possible
* Fix typos
* Merge ProtocolLib listeners into one class
* Upgrade maven plugins and dependencies
2017-07-22 08:27:55 +02:00
games647 6595dc6ac0 Increase hook delay to let ProtocolLib inject the listener 2017-06-30 17:37:57 +02:00
games647 ea44002e91 Update dependencies and format imports 2017-06-30 17:23:46 +02:00
games647 131de8404c Add support for new authme API 2017-06-12 17:26:46 +02:00
games647 fbdd8ffc35 Choose player name casing based on client request.
Since BungeeCord commit 5bc189fbb7e8ca19984544af78a083024404fb2a the name casing is based on
the exact name saved at Mojang. This means it could have breaking effects on FastLogin, because
it performs case-sensitive checks against the database. To provide backwards compatibility with
old data we restore the old implementation access for FastLogin.

Thanks to @Maxetto for pointing this out. This commit basically reverts:
059c3f346e
2017-06-07 21:09:00 +02:00
games647 7db8c78975 Drop support for old authme API 2017-06-04 15:52:01 +02:00
games647 b102f06f8e Update ProtocolLib to fix building 2017-05-27 11:24:43 +02:00
games647 a79e18445a Fix building because the bungee proxy repo is down [ci skip] 2017-05-19 12:01:02 +02:00
games647 cf1a0c1bef Remove ebean util usage to make it compatible with 1.12 2017-05-14 17:11:10 +02:00
games647 059c3f346e Lowercase name inside pendingconnection for comparisons against the database 2017-05-10 17:06:25 +02:00
Leo G. ~ Leoko 47db2c7858 Fixed AuthHook (#144)
* Fixed AuthHook

The setServerStarted()-Method is now also called if an extern AuthHook
hooks into FastLogin via the API

* Simplified if-Statement
2017-04-19 14:39:27 +02:00
games647 5bb8640d78 Do not try to hook into a plugin if auth plugin hook is already set using the FastLogin API 2017-04-17 15:22:09 +02:00
games647 881b2ec7bc Fix changelog markdown syntax 2017-04-15 09:42:17 +02:00
games647 194c67cd6f Fix markdown syntax 2017-04-05 09:24:41 +02:00
games647 863607c9a4 Add optional useSSL config option 2017-02-23 09:16:11 +01:00
games647 f37cc0a0db Add commit id to the version 2017-02-14 14:01:57 +01:00
games647 70a81bfcdf Correctly wait for BungeeAuth loading by using the correct depend tag (Fixes #119) 2017-02-10 19:06:57 +01:00
games647 b8d029d6da Remove third party API 2017-02-04 14:09:38 +01:00
games647 c47dd1df80 Fix FileNotFoundEx if the bungee config doesn't exist 2017-01-28 16:38:48 +01:00
games647 4d5b1787b1 Migrate to Java 7 NIO files 2017-01-26 09:52:45 +01:00
games647 8c764220bd Fix duplicate premium username message 2017-01-21 18:02:45 +01:00
games647 9af076b4c4 Fix premium username logging message at the wrong place 2017-01-09 17:57:50 +01:00
games647 22aa9287e9 Fix NoClassDef errors if the optional PlaceholderAPI is not available (Fixes #108) 2017-01-07 18:42:10 +01:00
games647 f08daa9b72 Update bungee-proxy maven repository 2017-01-06 13:00:17 +01:00
games647 bc53743c6b Add placeholder variables 2017-01-06 12:54:02 +01:00
games647 a430a079c9 Do no print auto login message on authme session reuse (Related #101) 2016-12-23 22:12:55 +01:00