[英]Web API - Authentication Advice
背景: - 在使用VS 2012的ASP.Net 4.0 / C#的Web窗體應用程序中使用Web API - 有些頁面將使用帶有JQuery的Web API調用,其他頁面將使用Web表單回發
需要執行以下操作:
我不清楚的是:
我使用了來自http://thinktecture.github.io/的 Thinktecture IdentityModel。 它是一個很棒的庫,包括令牌生成。
這是我在實施時提到的原始文章
http://ben.onfabrik.com/posts/dog-fooding-our-api-authentication
如果您有興趣,我也會在我的博客上寫一些文章
http://sunilrav.com/post/Enable-Basic-Authetication-in-Aspnet-webapi-using-ThinktectureIdentityModel
http://sunilrav.com/post/Enable-CORS-in-Aspnet-webapi-using-ThinktectureIdentityModel
這篇文章在我做研究時幫助了我
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.