forked from UnlegitMC/Elixir
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow you use custom key to authenticate
- Loading branch information
1 parent
b0ef075
commit e5dd0c5
Showing
5 changed files
with
46 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ Elixir is a library designed to make minecraft login easier. | |
We have a maven repo for this project. | ||
~~~groovy | ||
repositories { | ||
maven { url = "https://getfdp.today/repo/" } | ||
maven { url = "https://repo.getfdp.today/" } | ||
} | ||
dependencies { | ||
|
@@ -29,6 +29,7 @@ me.liuli.elixir.manage.AccountSerializer.accountInstance( | |
Username: `username`, Password: Empty String | ||
|
||
### Mojang Account | ||
**MOJANG REMOVED SUPPORT FOR MOJANG ACCOUNTS! We will remove the API in 1.3.0 or later** | ||
Username: `[email protected]`, Password: `password` | ||
|
||
### Microsoft Account | ||
|
@@ -53,6 +54,14 @@ val microsoftAccount = MicrosoftAccount.buildFromOpenBrowser(object : MicrosoftA | |
}) | ||
~~~ | ||
|
||
###Custom Client Keys | ||
You can use your own client keys. You need to create a AuthMethod instance, and add it with a custom id to the registry in AuthMethod Companion object. | ||
~~~kotlin | ||
MicrosoftAccount.AuthMethod("c6cd7b0f-077d-4fcf-ab5c-9659576e38cb", "vI87Q~GkhVHJSLN5WKBbEKbK0TJc9YRDyOYc5", "http://localhost:1919/login", "XboxLive.signin%20offline_access", "d=<access_token>").also { | ||
MicrosoftAccount.AuthMethod.Companion.registry["CUSTOM"] = it | ||
} | ||
~~~ | ||
|
||
## Json Form | ||
We provide a json form to make data easier to read and write. | ||
~~~kotlin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters