Commit graph

29 commits

Author SHA1 Message Date
mat
7d140e5f0c ClientboundContainerClosePacket 2022-10-29 14:33:53 -05:00
mat
9de6c03dfb use variables directly in format strings
thanks clippy we love you
2022-10-27 21:22:47 -05:00
mat
65da123631
Add Client::set_client_information (#33)
* start adding options

* add default options

* send options packet by default

* mention set_options in Client::join doc

* make TranslatableComponent::read return TextComponent

* change set_options to set_client_information

* clean up some code

* Add `Initialize` event

* fix some clippy warnings

* change `Client::options` to `client_information`
2022-10-23 19:00:24 -05:00
mat
a9ff79a105 write more documentation 2022-10-23 14:46:06 -05:00
mat
8d0cad7784 Remove let chains 2022-10-20 22:16:34 -05:00
Ubuntu
c0338cac35 Create cache file directory if it doesn't exist 2022-10-18 19:31:27 +00:00
Ubuntu
4c9de35cc2 fix rustc panic 2022-10-18 18:53:05 +00:00
Sculas
d4d4ba054f
refactor: remove println statements (#31)
This PR removes all println statements and logs them on trace level instead. Normally, libraries shouldn't print to stdout using println, since there's no control over them.
2022-10-17 13:18:25 -05:00
Ubuntu
22f677769d update az-auth description 2022-10-17 17:59:11 +00:00
Ubuntu
85658111da add fs feature to tokio in az-auth 2022-10-17 17:57:46 +00:00
Ubuntu
4585504323 (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
Ubuntu
430501f6e1 (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
Ubuntu
46fbc4654c (cargo-release) version 0.2.0 2022-10-17 16:28:51 +00:00
mat
4cef62e8e4
Microsoft Authentication (#29)
* a

* try to do more work on auth signing (untested)

* well auth works when i remove the d= so

* auth stuff

* sessionserver stuff

* add auth in azalea-protocol/client

* caching*

refreshing microsoft auth tokens isn't implemented yet, also i haven't tested it

* how did i not notice that i had the code duplicated

* fix cache

* add refreshing msa token

* replace some printlns with log::trace

* auth works!

* Update main.rs

* fix clippy warnings
2022-10-16 22:54:54 -05:00
mat
0085f8a565 make some stuff publishable on crates.io 2022-08-30 21:42:40 -05:00
mat
5a9fca0ca9
Better errors (#14)
* make reading use thiserror

* finish implementing all the error things

* clippy warnings related to ok_or

* fix some errors in other places

* thiserror in more places

* don't use closures in a couple places

* errors in writing packet

* rip backtraces

* change some BufReadError::Custom to UnexpectedEnumVariant

* Errors say what packet is bad

* error on leftover data and fix

it wasn't reading the properties for gameprofile
2022-08-06 02:22:19 -05:00
mat
b030b0ea33 start adding moving 2022-06-24 23:10:59 -05:00
mat
d8e0457b62 from<ClientboundAddEntityPacket> for Entity 2022-06-18 14:08:34 -05:00
mat
8313952541 Simplify packet macro
Now every packet implements McBufWritable and McBufReadable and uses those so the code doesn't have to be duplicated.
2022-04-30 23:04:18 -05:00
mat
80d49a7607 azalea_auth::encryption -> azalea_crypto 2022-04-30 21:30:45 -05:00
mat
8317b5b281 upgrade aes and cfb8 2022-04-29 20:20:56 -05:00
mat
9c69d7d5f2 finish update recipes packet implementation 2022-04-26 19:38:07 -05:00
mat
f4dd3a9293 ENCRYPTION WORKS!!!!!!!!!!! 2022-04-24 22:46:41 -05:00
mat
4c00bd8865 Add ServerboundKeyPacket 2022-04-24 19:28:29 -05:00
mat
3e507f0db4 Merge branch 'main' into auth 2022-04-24 17:37:57 -05:00
mat
248f752748 simplify error handling 2022-04-22 04:33:58 +00:00
mat
9f576c5600 start work on encryption 2022-01-01 18:59:38 -06:00
mat
1dc56b6f51 fix errors 2021-12-16 17:55:45 -06:00
mat
227ba5511d add a few more login packets 2021-12-16 17:51:05 -06:00