android - Using OAuth/OpenID across a web/mobile app -
i'm designing service half web app, half android app. each user need able log in either android app or web app, using openid account. i'm hoping target google first easiest integration android, i'll need oauth stuff later can integrate google contacts.
the bit i'm having trouble how authenticate users. structure i've planned server (probably using web.py, although that's flexible right now) serves data client in json, whether client javascript browser client or android client. however, each call needs make sure client allowed access data.
- what easiest way standardise across platforms?
- should using session system authenticate after logging in? can made work android app? otherwise, should authenticate google every request?
- when authenticating app, should authentication happen, through server or straight app? should auth token stored in case? (i'm assuming straight webapp token should stored in table in user database?)
sorry barrage of questions, haven't found resources online clarify these issues well.
as long using http, platform doesn't matter. can use same form of authentication and/or sessions. difference on andorid might able authentication token using platform's accountmanager, without having type username , password in google's login page.
Comments
Post a Comment