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.

1110 questions
138
votes
2 answers

Securing my REST API with OAuth while still allowing authentication via third party OAuth providers (using DotNetOpenAuth)

I have a product with a straightforward REST API so that users of the product can directly integrate with the product's features without using my web user interface. Recently I have been getting interest from various third parties about integrating…
Nathan Ridley
  • 31,947
  • 30
  • 116
  • 188
91
votes
6 answers

Where can I find a list of OpenID Provider URLs?

I've implemented OpenID on my website but I'm having a hard time finding a list of OpenID Provider URLs. I thought this would be easy to find but I've scoured the web and only found a handful, mostly by accident. Is there a resource that lists…
XVargas
  • 1,512
  • 2
  • 12
  • 16
70
votes
1 answer

Facebook/ Twitter with dotnetopenauth?

I've pretty much got OpenID working using the DotNetOpenAuth library. Now I would like users to be able to use Facebook and Twitter to login. This requires OAuth so I am looking for a tutorial on how to use DotNetOpenAuth OAuth. I'm having trouble…
chobo2
  • 75,304
  • 170
  • 472
  • 780
69
votes
2 answers

Unable to use PLAINTEXT signature with a DotNetOpenAuth ServiceProvider

I am building an OAuth 1.0(a) authorization server using DotNetOpenAuth (NuGet package DotNetOpenAuth.OAuth.ServiceProvider, version = 4.1.4.12333). The server is hosted in an ASP.NET application but that's irrelevant to the question. My…
Darin Dimitrov
  • 960,118
  • 257
  • 3,196
  • 2,876
37
votes
5 answers

DotNetOpenAuth not working with MVC 5 RC

I have been working a lot with DotNetOpenAuth. First we used 5.0.0-alpha1 but we switched over to v4.0.30319 because we couldn't find what was causing our problems. We are building a C# Web API project on .NET 4.5.1 RC with MVC 5 RC in Visual Studio…
jens
  • 466
  • 4
  • 8
35
votes
2 answers

OpenID: Trying to Get Email Address from Google OP

I’m using dotnetopenauth 3.2 to implement Openid and can’t figure out how to get Google to pass the email address in the Claims Response. I know that Google doesn’t support simple registration, but I can’t determine what they do support. Caveat…
Zaffiro
  • 4,578
  • 5
  • 32
  • 47
34
votes
4 answers

DotNetOpenAuth oAuth in ASP.NET MVC

I'm trying to understand how to apply the oAuth consumer library from DotNetOpenAuth in the context of ASP.NET MVC. oAuth is new to me, and the library doesn't seem very simple. Does anyone have a sample of leveraging this library, for this usage,…
nikmd23
  • 8,899
  • 4
  • 40
  • 55
30
votes
7 answers

Require Google to return email address as part of OAuth

I am using OAuth to access Gmail with dotNetOAuth. How can I force Google to return user's email address as part of callback after authorization? By default, Google OAuth callback only returns the token secret and access tokens.
Khash
  • 2,406
  • 3
  • 30
  • 55
29
votes
1 answer

Using OpenID (via DotNetOpenAuth) along with user roles and other Membership Provider features

I'm building an ASP.NET MVC site where I want to use DotNetOpenAuth to implement OpenID login (I'm completely dropping username/password-based login). So far, I've been writing my code for the default username/password system with the ASP.NET…
Maxim Zaslavsky
  • 17,149
  • 30
  • 100
  • 167
29
votes
6 answers

OpenID authentication in ASP.NET?

I am starting to build a new web application that will require user accounts. Now that I have an OpenID that I am using for this site I thought it would be cool if I could use OpenID for authentication in my application. Are there any good…
dlannoye
  • 1,621
  • 18
  • 19
28
votes
4 answers

MVC5 Redirects to Login.aspx when using Windows Authentication

After upgrading from MVC 4 to MVC 5, my application (when started from within Visual Studio) gives the following error. It might also be worth noting that I am hosting both MVC5 and WebAPI2 items in the same project as there may be interference…
Flea
  • 1,352
  • 2
  • 15
  • 41
27
votes
7 answers

Changed domain error - OpenId auth request contains an unregistered domain

I set up a project on my main domain example.com and then moved it to a subdomain sub.example.com Now when I try to use the same (default ASP.NET MVC or on my Discourse forum) project with OpenId and click on the Google button to log in with my…
PW Kad
  • 14,816
  • 7
  • 47
  • 82
26
votes
5 answers

Request for Tutorial to add Openid Support to NerdDinner ASP.NET MVC application

I'm looking learn about ASP.NET MVC and OpenId using the ASP.NET MVC NerdDinner tutorial. I would like to replace the Authentication system in NerdDinner to be OpenId only. I've downloaded the latest DotNetOpenAuth libraries but I'm not sure how to…
TMC2K
  • 433
  • 5
  • 8
25
votes
5 answers

How do I use OAuth to connect to the Etrade API?

E-Trade released their API recently and provided technical documentation which is somewhat useful but not complete. Does anyone have a fully working example in C# that shows how this works? I have been able to do the authentication using OAuth…
Maher
  • 471
  • 1
  • 6
  • 12
23
votes
5 answers

Google+ API: How can I use RefreshTokens to avoid requesting access every time my app launches?

I'm trying to use the Google+ API to access info for the authenticated user. I've copied some code from one of the samples, which works fine (below), however I'm having trouble making it work in a way I can reuse the token across app-launches. I…
Danny Tuppeny
  • 32,892
  • 19
  • 124
  • 246
1
2 3
73 74