Questions tagged [dotnetopenauth]

DotNetOpenAuth is an open source library for OpenID 1.1 and 2.0 supporting OAuth 1.0, 1.1, 2.0 as Consumer and Service Provider.

DotNetOpenAuth is a free and open source library and is available from DotNetOpenAuth.net. It features support for OpenID 1.1 and 2.0 Relying Parties and Providers, OAuth 1.0 & 1.1 Consumers and Service Providers, OAuth 2.0 Clients, Resource Servers and Authorization Servers, and Information Card relying parties.

It was formerly knows as DotNetOpenId, but was renamed when it added OAuth and InfoCard support.

Please use this tag instead of the older "dotnetopenid" tag.

Installation

You can install the library most easily using its NuGet package.

1113 questions
8
votes
3 answers

How to configure dotNetOpenId in an session less load balancing environment

You've probably solved this before. I need to be able to use open id in an environment that does not have session stickiness. The servers do preserve the headers. I'm using ASP.NET MVC and dotNetOpenId version 3.2.0.9177. Although the authentication…
Mihai Lazar
  • 2,249
  • 2
  • 19
  • 27
8
votes
1 answer

DotNetOpenAuth compiles after modifications but throws runtime exception when running sample project

I downloaded the latest DotNetOpenAuth code from GitHub and initially it failed to build. I fixed the problem by running the following: sn -Vr *,2780ccd10d57b246 found…
epignosisx
  • 6,152
  • 2
  • 30
  • 31
8
votes
2 answers

Bad request (400) with OAuthWebSecurity.RegisterMicrosoftClient

I am using Microsoft.Web.WebPages.OAuth. I was able to register Google, Facebook, Twitter, Stack Exchange, MyOpenID... Now I am trying to add Microsoft Live, so I registered: OAuthWebSecurity.RegisterMicrosoftClient("applicationID", "key"); and…
BrunoLM
  • 97,872
  • 84
  • 296
  • 452
8
votes
2 answers

Missing DotNetOpenAuth.ApplicationBlock in OpenID+OAuth

I am implementing OpenID+OAuth in my ASP.NET WebForm (using .NET Framework 3.5) application, found example on net https://groups.google.com/forum/?fromgroups=#!topic/dotnetopenid/xQYkE6sUZYU But I am missing DotNetOpenAuth.ApplicationBlock…
ANKIT
  • 431
  • 1
  • 10
  • 22
7
votes
2 answers

Is it safe to identify OpenID users by email address if the provider is trusted?

I'm using DotNetOpenAuth for OpenID logins. Google's provider returns a different ClaimedIdentifier depending on the realm of the caller (hostname + port). Is it safe for me to validate a login based on the email address returned by the OpenID…
Jake Petroules
  • 23,472
  • 35
  • 144
  • 225
7
votes
1 answer

DotNetOpenAuth with MVC 4.0

I have been trying out the DotNetOpenAuth samples with ASP.Net MVC 4 Developer Preview. I can successfully invoke my Action from my test page, but run into a strange issue because of one line of code: var request =…
Shailen Sukul
  • 491
  • 1
  • 7
  • 24
7
votes
3 answers

jquery mobile canceling 302 redirect to external site

I'm trying to integrate DotNetOpenAuth with a site that uses jquery mobile. I'm running into an issue where jquery mobile appears to be canceling a 302 redirect to the providing party (an external site) that the server is responding with. I've…
joshb
  • 5,182
  • 4
  • 41
  • 55
7
votes
2 answers

Share authentication between two websites

What is the best/proper technique to share login between two sites. I have website A, and some websites B. Both types belong to the same company, but B is running on the customer premises. What I would like, is that users login in B, and when…
vtortola
  • 34,709
  • 29
  • 161
  • 263
7
votes
1 answer

MVC based API - how to implement OAuth?

I have been trying for hours now to get OAuth working on with an API that I am working on, and obviously my approach must be wrong, because I constantly hit dead ends. What I have got: - An API that is implemented in .NET MVC, which returns a data…
Johny Skovdal
  • 2,038
  • 1
  • 20
  • 36
7
votes
2 answers

How can I change the ReturnUrl for OpenID?

When an user clicks a link in my site that requires authentication, the browser is redirected to the login page. The login page includes a returnUrl querystring parameter. The problem is that if the user authenticates using OpenID, the providers…
Bruno
  • 4,337
  • 12
  • 42
  • 55
7
votes
1 answer

WCF 4 Soap and Json Endpoint Secured with DotNetOpenAuth

I have a WCF 4 service project that I created using the WCF REST Service Template 40. My goal is to expose a single WCF service out as both a SOAP endpoint and a RESTful endpoint that returns JSON formatted data. Both endpoints must be protected…
Brandon
  • 10,744
  • 18
  • 64
  • 97
7
votes
2 answers

InvalidOperationException thrown regarding DotNetOpenAuth.IEmbeddedResourceRetrieval with Razor view

When my Razor view calls @Html.OpenIdSelector(... I get an InvalidOperationException: The current IHttpHandler is not one of types: System.Web.UI.Page, DotNetOpenAuth.IEmbeddedResourceRetrieval. An embedded resource URL provider must be set…
CD..
  • 72,281
  • 25
  • 154
  • 163
7
votes
1 answer

DotNetOpenAuth RP fails behind SSL appliance

I'm having trouble getting a DNOA RP working behind an SSL appliance (terminates the client HTTPS connection and reverse-proxies HTTP to the webserver behind it). The problem is that the RP is incorrectly guessing the recipient endpoint from the…
nitzmahone
  • 13,720
  • 2
  • 36
  • 39
7
votes
1 answer

Twitter API & DotNetOpenAuth & HttpClient: Error "Could not authenticate you"

I'm trying to post a Twitter status update and I just can't get it working. var consumer = new TwitterConsumer(); // WebConsumer implementation var httpClient = new HttpClient(consumer.CreateAuthorizingHandler("THE_TOKEN", new…
Hannes Sachsenhofer
  • 1,835
  • 1
  • 23
  • 38
7
votes
1 answer

PrepareRequestUserAuthorizationAsync fails

I had very simple code which worked fine for me: var url = System.Web.HttpContext.Current.Request.Url; Uri callbackUrl = new System.Uri(url, "oAuth2CallBack"); var ub = new UriBuilder(callbackUrl); // decodes urlencoded pairs from uri.Query to…
Grigory Bushuev
  • 843
  • 9
  • 27