MojangAuthPython is a lib for mojang authentification.
Project description
MojangAuth-Python
A lib for mojang authentification.
Made with
Install prerequisites
- Execute command:
pip3 install MojangAuthPython
Examples
Simple Authentification
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.auth("email", "password")
access_token = mojang_auth.access_token # return access token (str)
client_token = mojang_auth.client_token # return client token (str)
profile = mojang_auth.profile # return selected profile (list)
username = mojang_auth.username # return username (str)
id = mojang_auth.id #str : return id (str)
Refresh Token
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.refresh("accessToken", "clientToken")
Validate Token
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.validate("accessToken", "clientToken") # return True if token is good and False if not
Invalidate Token
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.invalidate("accessToken", "clientToken") # invalidated token and return True if token is good and False if not
Sign-out
from MojangAuth import MojangAuth
mojang_auth = MojangAuth()
mojang_auth.sign_out("email", "password") # sign-out user and return True if user successfully sign-out and False if not
Author
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file MojangAuthPython-0.1.4.tar.gz.
File metadata
- Download URL: MojangAuthPython-0.1.4.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11ddf955413dc320c01336ef5418c9a4476b2bd5cabe98673800337b01a13718
|
|
| MD5 |
2a3edd95f34268c762c1d13b59e2553d
|
|
| BLAKE2b-256 |
eb0923e8dfaabc723968bdcebcf0d82e0677d5189411f873deb2622d8f2aa250
|
File details
Details for the file MojangAuthPython-0.1.4-py3-none-any.whl.
File metadata
- Download URL: MojangAuthPython-0.1.4-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab00771ae8cc2a3655ab9b1335ef3756e98a2e81cd8290b5a62b4e246e70457e
|
|
| MD5 |
cfe78e11b2b2acf689a3c59df14f55fe
|
|
| BLAKE2b-256 |
90b807f529aa8ec91288abf4a032d64ebaea0cd760ebd9cd2c76c275a4f9ddf4
|