Giter Site home page Giter Site logo

goldenkirbi / token-dispenser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matlink/token-dispenser

0.0 0.0 0.0 51 KB

Stores email-password pairs, gives out Google Play Store tokens

License: GNU General Public License v2.0

Shell 6.83% Java 91.02% Dockerfile 2.14%

token-dispenser's Introduction

token-dispenser

Stores email-password pairs, gives out Google Play Store tokens.

Using Google Play Store API requires logging in using email and password. If you have a project which works with Google Play Store API you no longer have to make the users use their live accounts or ship your software with your account credentials inside. You can deploy a token dispenser instance and it will provide auth tokens on demand without letting the world know your password.

Building

  1. git clone https://github.com/matlink/token-dispenser
  2. cd token-dispenser
  3. Edit src/main/resources/config.properties
  4. mvn install
  5. java -jar target/token-dispenser.jar

Docker image

  1. Run it. docker run --name td -d -t -p 8080:8080 matlink/token-dispenser:latest
  2. Enter container shell. docker exec -it td bash
  3. Edit passwords/passwords.txt and add your email-password pairs. One pair - one line. nano is included in the image.
  4. Exit container shell and restart the container. docker restart td

Configuration

config.properties holds token dispenser's configuration.

Two things are configurable:

  • web server
  • storage

Web server

Token dispenser uses spark framework. To configure network address and port on which spark should listen change spark-host and spark-port.

Storage

There are three storage options supported:

  • Plain text Set storage to plaintext to use it. storage-plaintext-path property is used to store filesystem path to a plain text file with email-password pairs. There is an example here. Securing it is up to you.
  • MongoDB Set storage to mongodb to use it. Configurable parameters are self-explanatory.
  • Environment Set storage to env to use it. Set the environment variables TOKEN_EMAIL and TOKEN_PASSWORD before starting Token dispenser. (Only one email/account is supported.)

Usage

Once server is configured, you can get the tokens for regular requests at http://server-address:port/token/email/[email protected] and tokens for checkin requests at http://server-address:port/token-ac2dm/email/[email protected]

with gplaycli

gplaycli requires also the GSFid. Token and GSFid can be retrieved using http://server-adress:port/email/gsfid. A random couple (login, password) will be fetched from the provided ones, to load balance over multiple accounts, mitigating account ban possibilities.

Credits

token-dispenser's People

Contributors

yeriomin avatar matlink avatar aried02 avatar rehmatworks avatar delthas 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.