OAuthWebSecurity - 无的OpenID [英] OAuthWebSecurity - Without OpenID

查看:181
本文介绍了OAuthWebSecurity - 无的OpenID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

难道DotNetOpenAuth OAuthWebSecurity只为OpenID提供?

Is it DotNetOpenAuth OAuthWebSecurity only for OpenID Providers?

OAuthWebSecurity.RegisterClient(new CutomOAuth2Client("ID", "KEY"), "CustomProvider", null);

或者,我可以在基地外一OAuth的提供商没有实现的OpenID我的整个认证?
该方案可能是,如果我想发展为Facebook客户端但Facebook不是一个OpenID提供商...

Or could I base my entire authentication in a external OAuth Provider that doesn't implement OpenID? The scenario is likely if I want to develop a client for facebook but facebook isn't a OpenId provider...

推荐答案

是的,你可以在一个外部的OAuth提供程序基您的身份验证。我刚才提出这个SO职位:如何通过认证的OAuth2的SoundCloud 中详细介绍了如何以此为基础进行的SoundCloud自定义 OAuth2Client ...虽然带有自定义GitHub的客户端执行这对我来说要容易得多。

Yes you can base your authentication on an external OAuth provider. I just made this SO post: How to authenticate SoundCloud via OAuth2 detailing how to do a custom OAuth2Client based on SoundCloud... though implementing it with a custom GitHub client was much easier for me.

在Facebook的OAuth用户端内置在VS 2012 - 的使用OAuth提供程序与MVC 4 的,所以我不认为你需要做一个自定义客户端,除非有什么东西它没有这样做,你需要的。

The Facebook OAuth client is built in in VS 2012 - Using OAuth Providers with MVC 4, so I don't think you'd need to make a custom client unless there was something it isn't doing that you need.

其他有用的阅读:<一href=\"http://stackoverflow.com/questions/1087031/whats-the-difference-between-openid-and-oauth\">What's的OpenID和OAuth之间的区别?

这篇关于OAuthWebSecurity - 无的OpenID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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