Hi again.
I use twitter auth (btw, twitter4j and webview should be replaced with twitter fabric in the demo).
The app embeds the consumer key and secret declared on twitter for that app.
It's used to generate a request token, allowing the consent screen to be displayed.
Once the user as allowed the app to access his private data, an access token is given.
This last one allows the app to, say, post a tweet on behalf of the app user, and is valid as long as the user do not revoke the app.
As an optional step, user informations (such as twitter user_id, and the access token) can be saved in firebase (/users/...).
authWithOAuthToken is then called giving the access token, access secret, and user_id to firebase, so that it builds a session.
So far, so good, we are logged into our app, via firebase, via twitter.
If firebase session times out, we can query back the access token, and do authWithOAuthToken again (bad practice?).
But why do firebase need that app consumer key and secret?
Thanks.
F.