GithubHelp home page GithubHelp logo

fmcpe / elixir Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ccbluex/elixir

0.0 0.0 0.0 103 KB

Elixir is a library designed to make minecraft login easier.

License: Mozilla Public License 2.0

Kotlin 100.00%

elixir's Introduction

Elixir

Elixir is a library designed to make minecraft login easier.

Usage

We have a maven repo for this project.

repositories {
    maven { url = "https://repo.getfdp.today/" }
}

dependencies {
    implementation "me.liuli:Elixir:1.1.0"
}

API

All APIs are in the test module.

Login

AccountSerializer provide an easy way to login.

me.liuli.elixir.manage.AccountSerializer.accountInstance(
    name = "username",
    password = "password"
)

Cracked Account

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

Username: ms@[email protected], Password: password Username: [email protected]_BAY.token, Password: Empty String

Microsoft OAuth

We provide a way to login microsoft account with 2fa.

val microsoftAccount = MicrosoftAccount.buildFromOpenBrowser(object : MicrosoftAccount.OAuthHandler {
    override fun openUrl(url: String) {
        println("Open url: $url")
    }

    override fun authResult(account: MicrosoftAccount) {
        println("Auth result: ${account.session}")
    }

    override fun authError(error: String) {
        println("Auth error: $error")
    }
})

###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.

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.

me.liuli.elixir.manage.AccountSerializer.toJson(me.liuli.elixir.account.MinecraftAccount) : com.google.gson.JsonObject
me.liuli.elixir.manage.AccountSerializer.fromJson(com.google.gson.JsonObject) : me.liuli.elixir.account.MinecraftAccount

elixir's People

Contributors

hax0r31337 avatar 1zun4 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.