Authenticating against App Engine from Android app with Federated Login (OpenID)

前端 未结 2 1504
-上瘾入骨i
-上瘾入骨i 2021-02-08 18:06

I\'ve followed Nick Johnson\'s tutorial on Authenticating against App Engine from Android

Is there anyway to get the same workflow (no web signin) with Federated Login (

2条回答
  •  半阙折子戏
    2021-02-08 19:04

    No, OpenID is a browser-based auth standard - it relies on user being directed to external auth page and then back to app page.

    You can do this via WebView inside a Dialog for a smooth user experience. See the LeanEngine open-source project for an example implementation: server and client. Server is a bit complicated as it supports both Facebook and OpenID login. OpenID only login would be simpler. You basically only need the client example.

    However, if you do not need OpenID and are willing to limit your users to Google Account, then you can use Google ClientLogin API. An example usage.

提交回复
热议问题