如何结合使用Azure AppServices API,移动和Web应用程序 [英] How to combine azure AppServices API, Mobile and Web apps

查看:80
本文介绍了如何结合使用Azure AppServices API,移动和Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正处在项目的开始阶段,并希望决定可以利用Azure提供的技术.首先,我们将拥有移动应用程序,以及后来的Web应用程序.对于这两者,我们都需要API.我真的不想为移动和Web创建单独的api.这就是为什么我想我们需要有一个通用的基本API,移动和Web应用程序将引用该API,并使用移动和Web特定的逻辑对其进行扩展.

We are are on the start of our project and want to decide what technologies that Azure provides we can utilize. Firstly we are going to have mobile application and later web application. For both of this we need API. I really don't want to create separate api for mobile and web. That's why I guess we need to have a common base API which mobile and web apps will reference and extend with mobile and web specific logic.

我们希望通用的是用户数据库和身份验证(使用instagram,用户名/密码等进行社会身份验证),业务逻辑. Azure App Service提供了3个可能适合此模型的组件 Azure API应用程序-我假设我们可以将其用作基础api Azure移动应用程序-将用于扩展API应用程序以支持特定于移动设备的内容,例如推送通知. Azure Web App-将成为我们的Web应用程序.

What we want to be common is user database and authentication (social authentication using instagram, username/password etc.), business logic. Azure App Service provides 3 components which potentially fit into this model Azure API App - I assume we could use this as base api Azure Mobile App - Which will be used to extend API app to support mobile specific stuff for instance push notifications. Azure Web App - will be our web application.

我在这里有以下问题.首先,在移动应用开始屏幕中,已明确指出它支持社会认证.在 API应用中,它说支持

The questions I have here are following. First of all only in Mobile App start screen it's explicitly noted that it supports social authentication. In API App it's said that it supports

具有Active Directory,单点登录和OAuth的安全API

Secure APIs with Active Directory, single sign-on, and OAuth

Web应用中,未提及身份验证. 我的问题是-我可以在API App中执行所有身份验证,用户管理数据访问和业务逻辑,并在Web和移动应用程序中使用相同的逻辑吗?

In Web App nothing is mentioned regarding authentication. My question is following - can I do all authentication, user management data access and business logic in API App, and use that same logic in web and mobile apps?

推荐答案

您可以使用Azure API应用进行身份验证.它支持Azure Active Directory,Facebook,Google,Twitter和Microsoft帐户.请检查此链接 https://azure.microsoft.com/zh-在/documentation/articles/app-service-api-authentication/ 您的网络应用可以使用API​​应用进行身份验证.

You can use Azure API apps for authentication. It supports Azure Active Directory, Facebook, Google, Twitter, and Microsoft Account. Please check this link https://azure.microsoft.com/en-in/documentation/articles/app-service-api-authentication/ Your web app can use the API app for authentication.

这篇关于如何结合使用Azure AppServices API,移动和Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆