SSO between Android App and web app using Firebase

Viewed 445

I'm working on an Android app based on Firebase, most importantly Firebase Authentication. I see that it would be easier for my customers to have some content outside the app, e.g. on their existing website. It seems to be pretty common these days to have an app that integrates certain features from a web application into the native Android application.

The question is, how do I seamlessly integrate those two together, specifically the authentication part. E.g. how would I integrate a web based profile edit page to the native app, what mechanisms do I use so that the user only needs to sign in once (in the native app) and then is authenticated automatically also in the embedded web view?

1 Answers

I suggest you to give a try to openid library for SSO. I've no experience integrating openid with Firebase but I can see from the documentation that firebase supports openid standard. In addition, here there's an article about Google that advice against the use of webviews in mobile apps

Related