baasbox / Android-SDK

BaasBox Android SDK
Apache License 2.0
27 stars 26 forks source link

AccountManager supportable Login Authentication #42

Open LOG-TAG opened 9 years ago

LOG-TAG commented 9 years ago

Android SDK needs AccountManager supportable Login Authentication

The current api gives following json results after login with X-BB-SESSION as token !!

{ "result": "ok", "data": { "user": { "name": "cesare", "status": "ACTIVE", "roles": [ { "name": "registered" } ] }, "signUpDate": "2014-01-23 23:00:18", "X-BB-SESSION": "41b7ce0f-be44-4737-b346-907483155ad8" }, "http_code": 200 }

1>There is no option in baasbox android sdk api for adding the auth token (X-BB-SESSION ) to BaasDocument (to retrive REST API) such that it can be used for write-your-own-android-authenticator ( http://blog.udinic.com/2013/04/24/write-your-own-android-authenticator/) with Android AccountManager!

2>AccountManager api we can't do Multi user login !

3) We can't use sync adapter with AccountManager !

LOG-TAG commented 9 years ago

My own answer for this: use don't use sdk! use (cURL type) plain REST api call mentioned in documentation ! :( :( :(

but problem is I'm not sure token invalidation is supported ! ( Meaning, after invalidating the token the getAuthToken button will still return a token, but it’ll be only after he asks for it again from the server)

More info:

if we change the password of gmail in web app, mobile shows some error in login !! it will ask the password to enter again !! for doing this reason I'm asking !!