Is OAuth and OpenID correct in this case?

I'm still trying to ponder the work of OAuth / OpenID as such ...

I am developing an “installed application” that will run on computers and iPhone. This user can install the client application on several computers, and all clients installed by the user will be synchronized using the centralized Google App Engine service. GAE will also allow multiple users to collaborate with data generated by the installed application through a web application.

I do not want to roll back my own authentication system, for my own ease, and also in order to save users from another set of credentials. At first I thought about using the Google clientlogin service, but then I thought that OAuth / OpenID would be better, because it would allow users to use not only Google credentials, but also credentials of other OpenID providers. Also, avoiding a user prompt for login / password looks more secure.

My question is ... I'm not sure if this is the correct use case for OAuth / OpenID. I am not accessing data from any other service, I am just looking for an authentication solution. Also, how difficult is it to run this script using the Google App Engine (java)?

Any advice and / or starting points would be highly appreciated!

+3
source share
1 answer

My question is ... I'm not sure if this is the correct use case for OAuth / OpenID.

"Use case" for oAuth: Application X requires access to App Y. Application X "requests" permission to access application Y through your credentials. Appendix X received an "authorized access token."

In your case, assuming I understood correctly, you could use the GAE application for an OpenID consumer, and your mobile application will access the GAE application through oAuth.

In other words, your approach seems reasonable.
+3
source

Source: https://habr.com/ru/post/1725362/


All Articles