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
6
votes
1 answer

IAuthenticationResponse.GetExtension() always returning null

Update Thanks to a comment by @IvanL, it turns out that the problem is Google specific. I have since tried other providers and for those everything works as expected. Google just doesn't seem to send claims information. Haven't yet been able to…
Marjan Venema
  • 19,136
  • 6
  • 65
  • 79
6
votes
1 answer

Why isn't information about the openID user coming through the protocol?

I am using DotNetOpenAuth to integrate openID in our web application. The code below requests the information to the provider. try { var req = openid.CreateRequest(Request.Form["openid_identifier"]); req.AddExtension(new…
Geo
  • 8,663
  • 13
  • 63
  • 93
6
votes
3 answers

claimsResponse Return Null

hello i have a following code in asp.net. i have used DotNetOpenAuth.dll for openID. the code is under protected void openidValidator_ServerValidate(object source, ServerValidateEventArgs args) { // This catches common typos that result in an…
Chirag Pandya
6
votes
1 answer

DotNetOpenAuth OAuth 2.0 Authorization Server with Password grant

We want to set up our own OAuth 2.0 authorization server based on the following roles: Resource Server - An API built with ASP.NET Web API Client - A web application built with ASP.NET MVC Resource Owner - The end user We plan to use the password…
Ben Foster
  • 34,340
  • 40
  • 176
  • 285
6
votes
2 answers

How to change scope/permissions with Microsoft.Web.WebPages.OAuth

Is there a way to change the scope/permission when using Microsoft.Web.WebPages.OAuth? The most logical place is when registering the client with OAuthWebSecurity.RegisterClient. I thought that the adding scope to the extraData parameter would…
Josh C
  • 7,461
  • 3
  • 24
  • 21
6
votes
1 answer

DotNetOpenAuth OAuth2.0 state parameter

I'm using DotNetOpenAuth to connect to Facebook and Google via OAuth2. The OAuth specs ask that no additional parameters be supplied in the request_uri and Google actually enforces this somewhat by forcing to to specify an exact call back uri when…
Ameen
  • 2,576
  • 1
  • 14
  • 17
6
votes
1 answer

Getting OAuth2 refresh token

I'm trying to use Google's Calendar API to demo out an OAuth2 integration that we'll need to do with another third party. I'm using the DotNetOpenAuth library, and I've been able to get the initial redirect to Google for the Allow / Deny prompt and…
Andy
  • 8,432
  • 6
  • 38
  • 76
6
votes
2 answers

"No OpenID endpoint found" on Azure Website

I have a strange issue with a MVC 3 app running as an Azure Website. I have had issues with Azure in the past, but the new Website concept works almost perfectly, except for this: DotNetOpenAuth.Messaging.ProtocolException: No OpenID endpoint…
CMircea
  • 3,543
  • 2
  • 36
  • 58
5
votes
1 answer

Implementing .Net OpenId with ASP.Net MVC

The sample I downloaded from DotNetOpenId has different files than the MVC 1.0 application I get when I create a new application. I am new to MVC and openId, all the examples I have come across are very old. Can anyone point me to examples of…
Picflight
  • 3,832
  • 13
  • 61
  • 90
5
votes
1 answer

Implementing .NET OAuth 2.0 Provider. 2 Legged DotNotOpenAuth samples?

I need a bit of help implementing an OAuth 2 provider for a rest service built on the new ASP.NET Web API. I'm aware there are some similar questions on Stack Overflow but they're more or less links to OAuth libraries. What I'd really like is some…
Mark
  • 21,067
  • 14
  • 53
  • 71
5
votes
1 answer

Best way to use OpenID authentication with Azure?

I'm struggling to get OpenID working on a Windows Azure application. I'm currently using DotNetOpenAuth (used to be DotNetOpenID) and first I had a problem with the relay step since Azure uses port 20000 internally and that was getting passed back…
Rob Volk
  • 5,204
  • 5
  • 25
  • 19
5
votes
2 answers

What is best for auth ASP.NET MVC REST API? OAuth 2.0 or OAuth 1.0?

We are building a REST API using ASP.NET MVC. This API is similar in principle and usage to the Factual v3 API. They use 2-legged Oauth 1 for their API. Our design is very similar in that applications, primarily mobile will use our API behind the…
craig.tadlock
  • 1,898
  • 21
  • 26
5
votes
2 answers

PrepareResponse().AsActionResult() throws unsupported exception DotNetOpenAuth CTP

Currently I'm developing an OAuth2 authorization server using DotNetOpenAuth CTP version. My authorization server is in asp.net MVC3, and it's based on the sample provided by the library. Everything works fine until the app reaches the point where…
Daniel
  • 2,484
  • 4
  • 27
  • 35
5
votes
1 answer

Retrieve GMail data through DotNetOpenId

I'm Trying to login with dotNetOpenId to GMail accounts. It works but I'm not able to retrieve any claims. I know I could retrieve email addresses or user names as well, but no claims are being returned only the ClaimedIdentifier is available.…
Hoghweed
  • 1,938
  • 1
  • 16
  • 35
5
votes
1 answer

Nearly all OpenId relying parties reject assertions from my dotNetOpenAuth backed provider

Constructing an OpenId provider, I've run into the curious problem that only Stack Exchange sites will accept it. Discovery works fine, and watching log traffic I'm sending (what to me looks like) a valid response back. Wonderfully, there are no…
Kevin Montrose
  • 22,191
  • 9
  • 88
  • 137