https://github.com/ismaileke/minecraft-auth
Impersonation of Minecraft Client connecting to Microsoft & Minecraft
https://github.com/ismaileke/minecraft-auth
bedrock-edition microsoft-auth microsoft-authentication minecraft-auth oauth2-client sisuauth
Last synced: 2 months ago
JSON representation
Impersonation of Minecraft Client connecting to Microsoft & Minecraft
- Host: GitHub
- URL: https://github.com/ismaileke/minecraft-auth
- Owner: ismaileke
- License: mit
- Created: 2024-08-19T18:50:42.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-08-22T06:18:40.000Z (9 months ago)
- Last Synced: 2024-08-22T23:10:04.860Z (9 months ago)
- Topics: bedrock-edition, microsoft-auth, microsoft-authentication, minecraft-auth, oauth2-client, sisuauth
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# minecraft-auth
Provides the connections needed for the server.## Usage
๐Cargo.toml
```css
[dependencies]
minecraft-auth = { git = "https://github.com/ismaileke/minecraft-auth.git", branch = "master" }
```๐main.rs
```rust
use minecraft_auth::bedrock;#[tokio::main]
async fn main() {
let mut bedrock = bedrock::new("1.21.60".to_string(), false); // (client version, debug mode)bedrock.set_auth_callback(|code, url| { // If you want to use the code and link and do something:
println!("Code: {} URL: {}", code, url);
});bedrock.auth().await;
let chain = bedrock.get_chain_data();
let ec_key = bedrock.get_ec_key().unwrap(); // When sending the Login Packet we will need this
println!("Chain 1: {}\nChain 2: {}", chain[0], chain[1]);
}
```## ๐ NOTE
It is still in development.