通过自定义服务访问API的Google身份验证?(Google authentication accessing api through custom service?)

编程入门 行业动态 更新时间:2024-10-22 23:46:56
通过自定义服务访问API的Google身份验证?(Google authentication accessing api through custom service?)

我有一个基于网络的服务(运行多年)与谷歌apis一起使用。

现在我想创建一个Android和iphone ui(使用xamarin),它使用我的网络服务,后者又与google apis对话。

鉴于我不通过手机直接与谷歌apis交谈,我是否需要使用网络浏览器控件让用户登录,或者我可以验证我的服务器并在手机上本地建立会话?

我担心我需要使用浏览器窗口,我不认为必须在手机上的浏览器窗口中登录谷歌帐户才是用户友好的。

(我想保留服务器上的逻辑,以便手机应用程序和web ui使用完全相同的代码进行计算。)

编辑:似乎跨客户身份是我正在寻找的。

I have a web based service (running for years) that works with google apis.

Now I would like to create an android and iphone ui (using xamarin) that uses my web services which in turn talks to google apis.

Given that I don't talk directly to google apis from the phone, do I need to use a web browser control to let the user login, or can I authenticate my server and establish a session natively on the phone?

I'm afraid I need to use a browser window, and I don't think it's user friendly to have to login to a google account in a browser window on the phone.

(I want to keep the logic on the server, so that the phone apps and the web ui uses the exact same code for it's calculations.)

EDIT: It seems Cross-client identity is what I'm looking for.

最满意答案

它可以本地完成。 观看此视频https://www.youtube.com/watch?v=9wAx39s10yw ,其中介绍了使用跨平台身份验证的所有过程。

It can be done natively. See this video https://www.youtube.com/watch?v=9wAx39s10yw which explains all of the procedure using cross-platform authentication.

更多推荐

本文发布于:2023-08-07 01:58:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1457898.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自定义   身份验证   API   Google   authentication

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!