开发者

Protect ASP.MVC controller action using OAUTH

开发者 https://www.devze.com 2023-04-06 23:50 出处:网络
I need to protect MVC action methods via OAUTH.Ultimately, I think I need to create two action filters - one to parse the OAUTH data and another to send back data with appropriate header开发者_如何学G

I need to protect MVC action methods via OAUTH. Ultimately, I think I need to create two action filters - one to parse the OAUTH data and another to send back data with appropriate header开发者_如何学Gos. Unfortunately, I can't find any example of this. Does anyone have pointers or samples they can provide which can get me started?

EDIT - I've already looked at DotNetOpenAuth and the sample they have is for WCF and seems rather complex for this need. I found https://github.com/bittercoder/DevDefined.OAuth and it does seem promising. Hopefully, others have found additional userful resources.

0

精彩评论

暂无评论...
验证码 换一张
取 消