Token Dispenser is used to provide anonymous authToken for Aurora Store , in order to allow anonymous login. The dispenser stores email & passwords of dummy accounts and generates authToken for PlayStore.
-
git clone https://github.com/yeriomin/token-dispenser
-
cd token-dispenser
-
src/main/resources/config.properties
Edit this file to match your likings -
./gradlew build
Post successful compilation, you can find the jar from /build/libs/
config.properties holds dispenser configuration.
Configurable parameters:
- host (default 0.0.0.0)
- port (default 8080)
- credentials (default auth.txt, contains EMAIL,AAS_TOKEN pairs seperated by space, one per line)
- keystore - name of you keystore file (.jks)
- keystore_password - your keystore password
keystore and keystore_password are required only if you wich to enforce https, all dependent files are placed in /build/libs/
Once configuration is done, you can start the dispenser by following command:
java -jar /build/libs/token-dispenser-1.1.jar
Once server is configured, you can get the following.