Johnny
Johnny

Reputation: 6329

Is it possible for an Android application to use Open-ID service?

I have a C/S solution, which take Android as its client and PHP as its server.

I have my own account system.

I'm wondering whether I could provide my user to login my system with Google Account?

I saw there are web-solution for this, like this stackoverflow.com could use Google Account to directly login.

Is there a solution for C/S system?

Upvotes: 4

Views: 573

Answers (1)

Mewp
Mewp

Reputation: 4715

Not without a web browser.

If the user isn't logged in to google (or any other provider), he has to authenticate with the provider first. This is done via a web browser, and you shouldn't even try doing it in any other way (for security reasons, the user should be sure that he is connected to the provider, for example by seeing the url in his browser).

However, even if the user is logged in, the provider needs to know that -- usually using a cookie. And cookies are stored within a web browser. So in theory, you could parse the browser's cookie file, and then try immediate authentication, but that won't work until you login and authorize the relying party via a web browser first.

Upvotes: 2

Related Questions