Comments (7)
Hello.
I wrote a small web service which gives out auth tokens to anyone who asks. Like this:
http://tokendispenser-yeriomin.rhcloud.com/token/email/[email protected]
http://tokendispenser-yeriomin.rhcloud.com/token-ac2dm/email/[email protected]
It has been successfully used for a couple of weeks in my Play Store alternative android app. It stores email-password pairs in a mongodb storage and generates new auth tokens on request. Right now it is deployed on RedHat OpenShift, but can be deployed anywhere.
from gplaycli.
Well, I'll need an explanation on how it works, since it does not seem to require a password. Is the [email protected] account configured in your tokendispenser
instance?
from gplaycli.
It stores email-password pairs and asks Google to create a token with a request to https://android.clients.google.com/auth.
I've taken email and password from your credentials.conf and put them into the tokendispenser's db. How you do it is up to you. OpenShift has an option to install rockmongo, so I'm using that. I considered adding a PUT method protected by basic http auth to tokendispenser, but it seems an overkill at this point.
from gplaycli.
Alright, very nice.
How do I use the token? Should it replace the password, or should I modify my code to use a token-way authentication?
from gplaycli.
Instead of
api.login(self.config["gmail_address"], self.config["gmail_password"], None)
Use
api.login(None, None, token_from_token_dispenser)
...i think. Didn't try it.
from gplaycli.
Works like a charm.
I'll need to push it now :)
from gplaycli.
Fixed by 562b53f
from gplaycli.
Related Issues (20)
- Error while retrieving information from server. DF-DFERH-01 HOT 16
- googleplay.py:645: RuntimeWarning: Unexpected end-group tag: Not all data was converted HOT 5
- Error when trying to install gplaycli in python version 3.9? HOT 2
- Can i download older version of app? HOT 1
- did not work. errors HOT 1
- Add new device codenames or pass input without checking against fixed list HOT 6
- Debian build failing HOT 1
- apk version determination broken, -av, --append-version (was: Inconsistent failure of apk download with KeyError) HOT 4
- Permission denied: 'token.cache' HOT 1
- Unable to configure gplycli on my Mac. Facing the below mentioned issue HOT 2
- Security check is needed DisplayUnlockCaptcha HOT 16
- Abandoned? HOT 1
- Termux Run Error
- add proxy parameter support to cli
- Error while retrieving information from server. DF-DFERH-01 HOT 4
- gplaycli not finding app in the AppStore with -s or -u
- App not purchased error when using token authentication HOT 2
- [ERROR] Cannot retrieve email address from token dispenser HOT 23
- Error While Searching HOT 3
- Is it abandonned software? No commits since years HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gplaycli.