ichttt / ForgeGradleLoginWrapper

A wrapper for FG which logs you in using encrypted access tokens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ForgeGradleLoginWrapper

A dev enviroment basic login manager

This Application is intended as a launcher for ForgeGradle.

Setup

To use this in you own project, grab the latest version from github and place it in a folder in your workspace. Now just add runtime ('RELATIVE PATH TO FILE/FGLW.jar') to your dependencies in the build.gradle of the project and you are done.

Why does this project exist

IMO, ForgeGradle isn't handling login the proper way

While ForgeGradle supports login, it is very basic and requires you to type your username and password into the command line options. While this is good (and recommended by FGLW) for the username, it is very insecure in terms of password security.

How does FGLW solve this problem

This wrapper fixes the problem by asking the user via a GUI interface. If the login is successful, a copy of the access token gets encrypted via a global key (which is stored in your .minecraft folder), and your UUID, your username and encrypted access token get saved into a file in your run folder, so even if you accidently open your file in a stream or upload it to a git repo, you access token is still safe. And even if someone gets your access token (which can be invalidated easily) and practical impossible to steal your password, as it only exists in FGLW when renewing the access token, and it is not passed to ForgeGradle. Afterwards, the access token is send to ForgeGradle, which forwards the credentials to minecraft.

About

A wrapper for FG which logs you in using encrypted access tokens

License:MIT License


Languages

Language:Java 100.0%