使用基于令牌的身份验证在SharePoint Online中创建Web API [英] Create Web API in SharePoint Online with Token based authentication

查看:166
本文介绍了使用基于令牌的身份验证在SharePoint Online中创建Web API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用基于令牌的身份验证以Web服务的形式公开SharePoint Online列表数据(向第三方提供JSON数据),如果可以,请告诉我如何?我正在使用CSOM(客户端对象模型).在CSOM中,对于每个请求,我 需要在我的代码中传递用户凭据.对于客户端而言,这违反了安全性.因此,请让我知道最好的解决方法. 

I want to expose SharePoint Online list data in form of web service(JSON data to the third party) using token-based authentication, Is it possible if yes then please tell me how?. I am using CSOM(client-side object model). In CSOM, for every request, I need to pass user credentials in my code. It is security breaching for the client. So please let me know the best bay to do it. 

推荐答案

我们可以加密 客户端的用户凭据,然后在服务器端对其进行解密.

We could encrypt user credentials at client side and decrypt them at server side.

这里有一些参考资料可供您参考.

在Web API中加密和解密文本. strong>

Encrypt and decrypt text in Web API.

确保ASP.NET Web API的安全

Making your ASP.NET Web API’s secure

最好的问候,

李e


这篇关于使用基于令牌的身份验证在SharePoint Online中创建Web API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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