Commit graph

14 commits

Author SHA1 Message Date
Jordan Jones
5d723e9a04
Integrate Authentication for Microsoft Accounts (#788)
* add node-fetch and @xboxreplay/xboxlive-auth for microsoft/xbox auth

* decide which authentication to use based on options;

if options.auth === 'microsoft' then use microsoft/xbox auth, else use Yggdrasil until they kill that.

* push working auth

* commentary

* eslint does not like me :(

* User-Agent works just fine without version

* linting = 95% of development

* revert changes to encrypt.js

* set haveCredentials to whether or not we have a token.

Technically this will always be true so...?

* eslint

* mod+create: api + example

* mod: readme.md
2020-12-11 21:30:48 +01:00
Romain Beaumont
011b6a189a
Revert "Revert "Add token authentication (#780)""
This reverts commit 14c4886ac4.

Adds back token auth now that mineflayed is fixed
2020-12-06 18:48:52 +01:00
Romain Beaumont
14c4886ac4
Revert "Add token authentication (#780)"
This reverts commit 0277091ddc.
This commits introduced a bug in offline mode.
We don't know yet how to fix it, so better revert first and fix later
2020-12-06 01:57:40 +01:00
ph0t0shop
0277091ddc
Add token authentication (#780)
* Add token authentication

* Update package.json

* Update src/client/auth.js

Co-authored-by: David Duarte <deltaduartedavid@gmail.com>

* Remove some deps

* Fix merge conflict + fix some token stuff

* Fix even more stuff + testing

* Change back echo example

* Let -> const + bugfix

* Fixed error handling

* Revert client_echo again...

* Fix linter errors

* Profile improvements

* Stupid linter errors

* Update yggdrasil, remove token auth example, move to client_echo instead

* Update client_echo

* Linter error...

Co-authored-by: David Duarte <deltaduartedavid@gmail.com>
2020-12-05 23:28:12 +01:00
Romain Beaumont
8f0ae218b1 add options.noPongTimeout to handle server that don't answer to ping packet
useful for example for minersbr.enxada.host in auto version mode
2020-10-25 15:14:22 +00:00
redcarti
0881d85577
client.end with full reason (#771)
* init

* updated docs
2020-10-25 14:25:44 +01:00
Romain Beaumont
330ab5a829 Support ipv4 and ipv6 by default in createServer
fix #759
2020-09-27 19:24:04 +00:00
Romain Beaumont
eb5bf74565 add buffer to packet event 2020-08-16 22:22:21 +00:00
Romain Beaumont
edece010bb
add auth and session server to doc 2020-08-03 01:48:23 +02:00
Romain Beaumont
4d092bb4dc
increase closeTimeout default to 2min and add to API 2020-08-03 01:37:35 +02:00
Romain Beaumont
7a30326403
add some doc to mc.ping 2020-07-14 16:22:21 +02:00
Idan Horowitz
54380a3cb7
Pass through http agent option to yggdrasil for proxy support (#676)
* initialize yggdrasil with agent option if it exists

* standardjs

* move require statements to the top

* add agent option to docs and ts type information
also removed useless typescript import and moved class fields from wrong class to the correct one

* update proxy examples and add http agents for proxying yggdrasil

* update to agent supporting yggdrasil version
2020-02-11 12:31:24 +01:00
vlakreeh
297d40b17d add skipValidation flag for authentication 2018-11-09 11:06:12 -05:00
Romain Beaumont
273337d630
add issue template 2018-10-08 22:30:45 +02:00
Renamed from doc/README.md (Browse further)