All Projects → yeriomin → token-dispenser

yeriomin / token-dispenser

Licence: GPL-2.0 license
Stores email-password pairs, gives out Google Play Store tokens

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
Dockerfile
14818 projects

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/yeriomin/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 yeriomin/play-store-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 two 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.

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]

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].