dotnetopenauth

DotNetOpenId — “This message has already been processed” Error (Part 2)

别来无恙 提交于 2019-12-05 06:01:59
This has already been asked Here , but not by me and the OP accepted an answer which did not help me. Thus far, I've tried logging in from different browsers, changing the web config, clearing cookies, and loading from an external machine. In fact, I eventually did discover that the problem is specific to my own machine; when I published to another machine, it worked fine. Any suggestions for where to look for solutions? I deliberately used the simplest test code I could think of, a clean empty aspx page and a simple Page_Load function. Edit : To clarify, like the author of the original

Where is the source for DotNetOpenAuth? The primary Sourceforge link contains just samples and the ApplicationBlock

删除回忆录丶 提交于 2019-12-05 04:05:47
Now that DNOA may do Call Home Reporting I want to investigate the source to see exactly what is being transmitted to the DNOA servers. The link on Source Forge only gives me the "Application Block" some samples, and a compiled DLL. Where is the source? Am I just overlooking it? The DotNetOpenAuth home page has a link directly to the source code. You can download it by clicking the Download button once you're there. Since you've expressed interested in downloading the source code for your specific version, once you're on the source download page , look under download tags for your version and

How to use OAuth 2 - OAuth 2 C# example

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-05 01:41:11
I have to figure out how to use OAuth 2 in order to use Deviantart api. I got the client_id and client_secret part Here the information they give Endpoints The only information you need to authenticate with us using OAuth 2.0 are the client_id and client_secret values for your app, as well as the endpoint shown below. OAuth 2.0 draft 10: https://www.deviantart.com/oauth2/draft10/authorize https://www.deviantart.com/oauth2/draft10/token OAuth 2.0 draft 15: https://www.deviantart.com/oauth2/draft15/authorize https://www.deviantart.com/oauth2/draft15/token Placebo call The first API call relying

DotNetOpenAuth and Facebook

时光毁灭记忆、已成空白 提交于 2019-12-05 01:12:47
I'm attempting to use DotNetOpenAuth for some web single sign on functionality. I got the samples working for Google and Yahoo but am struggling with Facebook. I am using the CTP (4.0.0.11165) and have followed the example in this SO question . However, I get a runtime error on the line: IAuthorizationState authorization = client.ProcessUserAuthorization(); The error is: Failed to obtain access token. Authorization Server reports reason: (unknown) Any ideas? The build you're using is incompatible with Facebook because Facebook is using an older spec of OAuth 2.0. You have to use an earlier CTP

Web api open oauth(DotNetOpenAuth) mvc 4

允我心安 提交于 2019-12-05 00:47:41
问题 There is an amazing feature in mvc 4 internet application template which can easily integrate with facebook twitter and google. But there is no such feature in web api template. How can I easily integrate DotNetOpenAuth with web api? Is there a tutorial? 回答1: MVC is a browser-facing web site. WebAPI is for programmatic access by some client other than a browser web page (although it may be javascript running in the browser). So OpenID or OAuth login flows that require browser redirects don't

How to log in with Facebook using DotNetOpenAuth

荒凉一梦 提交于 2019-12-05 00:39:36
问题 I have searched, read the FB developer docs. MVC 4, I incorporated OpenId. Now I want to include FB login as well, just as Stackoverflow and some other site have implemented it. Do I create my own JS file with sample code from FB developer? OR Use a third party tools, which I am not aware of what to use. I did look at OAuthClient (DotNetOpenAuth-4.0.0.11165), it could not run, there was a server error and could not debug as the source file was missing. 回答1: Facebook implements an older OAuth

TypeLoadException from Logger.Create when running DotNetOpenAuth under mono

不问归期 提交于 2019-12-04 20:58:36
I'm following a simple tutorial on DotNetOpenAuth . It works fine when i run it in my localhost visual studio development machine. However, as soon as a I move it to a testing/staging server that is running mono it throws the following error: Location: Page_Load An exception was thrown by the type initializer for DotNetOpenAuth.Reporting InnerException: System.TypeInitializationException: An exception was thrown by the type initializer for DotNetOpenAuth.Logger ---> System.TypeLoadException: A type load exception has occurred. at DotNetOpenAuth.Logger.Create (System.String name) [0x00000] in

How to build secured api using ServiceStack as resource server with OAuth2.0?

夙愿已清 提交于 2019-12-04 13:03:58
问题 I have build a OAuth2.0 Authorization server using dotnetopenauth that will manage authentication, authorization, and assign accessToken to the caller. The caller will use the access token to access the api (webservices) at resource server. If follow the sample provided by dotnetopenauth in Resource Server, api that builded using WCF can be authenticated by OAuthAuthorizationManager If using ServiceStack to build my api in Resource Server, how to build the authentication process that verify

How to implement custom OpenID Relying Party in MVC 4

人走茶凉 提交于 2019-12-04 12:51:51
I like the new MVC OpenID/OAuth login feature, but I want to know how to add a new login button, for example I want my users to login using their StackExchange account or using their OpenID url the same as in stackoverflow http://puu.sh/13rm0 How to do that? Are there any samples showing this in steps? Unfortunately the API Microsoft exposes is limited to login providers that are hard-coded to a specific URL -- not one that can accept input from the user before logging the user in, which OpenID requires. You can add support for specific OpenID providers such as StackExchange by creating a

Steam Login Authentication C#

﹥>﹥吖頭↗ 提交于 2019-12-04 11:45:08
Im trying to make steam login work for my website with DotNetOpenAuth. But looking through the examples in the documentation doesn't give me any idea how to make it work. Here´s what I done so far: 1) Added the dotnetopenauth reference files to \bin and to the configuration 2) Added a unique user field in the database for the response i get back from DotNetOpenAuth. So heres my question How can i retrive the steam id with DotNetOpenAuth? I found some examples done in php: http://forums.steampowered.com/forums/showthread.php?t=1430511 This should do it, when you include the correct