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

Google OpenID provider consistently fails on Azure

I'm trying to use Google OpenID with an MVC 4 app hosted on Azure & it keeps failing. Not straight away though. When I deploy the app, it all works perfectly time after time. I then leave it for some amount of time, usually a day, but could be an…
Simon Halsey
  • 5,459
  • 1
  • 21
  • 32
7
votes
1 answer

DotNetOpenAuth.WebServerClient.XSRF-Session changes during callback

I'm trying to setup a simple Oauth2 login authentication. However I'm stuck at the callback that throws the following exception: [ProtocolException: Unexpected OAuth authorization response received with callback and client state that does not…
Lucas Bol
  • 71
  • 3
7
votes
1 answer

OAuthWebSecurity.VerifyAuthentication IsSuccessful returns false how do I to determine the reason?

I'm using DotNetOpenAuth with a MVC 4 application. All the sudden Google auth is failing (MS is working). The stock code does this: [AllowAnonymous] public ActionResult ExternalLoginCallback(string returnUrl) { var result =…
Eonasdan
  • 7,563
  • 8
  • 55
  • 82
7
votes
6 answers

MembershipCreateUserException - The username supplied is invalid

On this line i am getting an exception - OAuthWebSecurity.CreateOrUpdateAccount(provider, providerUserId, model.UserName); System.Web.Security.MembershipCreateUserException: The username supplied is invalid. The data going into this is provider…
MoXplod
  • 3,813
  • 6
  • 36
  • 46
7
votes
1 answer

Does an OpenID realm have to be the base URL of the web site?

As a continuation of this question, there's an issue I'm having with dotnetopenauth. Basically, I'm wondering if the realm specified in the RP has to be the actual base URL of the application? That is, (http://localhost:1903)? Given the existing…
Mansfield
  • 14,445
  • 18
  • 76
  • 112
7
votes
3 answers

Why am I not receiving a RefreshToken from a Google OAuth request?

I am attempting to integrate Google Calendar into my application and I am having some problems with the OAuth authorization passing off a RefreshToken. I receive an AccessToken with no issue, but the RefreshToken property is null. See the line…
Jeff Fritz
  • 9,821
  • 7
  • 42
  • 52
7
votes
1 answer

Cannot get attributes from DotNetOpenId response

I'm trying to figure out how to get the users information after validating via open id. It doesn't matter if I supply a ClaimsRequest or FetchRequest whenever I call…
Micah
  • 111,873
  • 86
  • 233
  • 325
7
votes
1 answer

Implementing OpenID: identifying users

Company I work for wants to publish an internal website to the outside world, but also wants to identify the visitors in some easy way. Some functionality will be visible for all visitors but most must be visible for authenticated visitors. (And…
Wim ten Brink
  • 25,901
  • 20
  • 83
  • 149
7
votes
2 answers

ASP.NET Web API with DotNetOpenAuth

I am building RESTful web API for my ASP.NET MVC4 web application using ASP.NET WebAPI. I want to use OAuth 1.0 to provide authorization. I'm looking toward of DotNetOpenAuth library. Can anyone help me to understand how to use the service provider…
ebashmakov
  • 619
  • 11
  • 18
6
votes
1 answer

Using OAuth with OData

Looking for any recent examples using OAuth with OData pref. from a WPF client without AppFabric or other dependencies found this year+ old article…
Kumar
  • 10,997
  • 13
  • 84
  • 134
6
votes
1 answer

How do I assign a Role to an OpenId user for an ASP.NET MVC site?

I'm using OpenId in my ASP.NET MVC application. Works great :) Once i have the user's OpenId Identifier (once they have authenticated and returned to my site), i load up the users data (to get display name, etc). From here, i also know their…
Pure.Krome
  • 84,693
  • 113
  • 396
  • 647
6
votes
3 answers

How to log in with Facebook using DotNetOpenAuth

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…
Picflight
  • 3,832
  • 13
  • 61
  • 90
6
votes
1 answer

DotNetOpenAuth - Facebook - How can I authenticate users without forcing them to install a Facebook App?

I have implemented the sample application provided by DotNetOpenAuth as instructed here. As you can see below, this is requiring that the user installs this facebook application. I simply want to allow users to use their facebook login for my…
Brian Webster
  • 30,033
  • 48
  • 152
  • 225
6
votes
3 answers

how to start using openID in an asp.net mvc3 project?

I want to have authentication mechanism for my site (in asp.net mvc3), first option openID another option via my site. I don't know how to start with dotnetopenid, because it does not have a good document or some guidance to start with it. Is there…
ghedas
  • 325
  • 2
  • 13
6
votes
2 answers

Request email address from OpenID provider

I'm implementing OpenID and I would like to retrieve the user's email address and other information about the user, I'm doing this: var fetch = new FetchRequest(); fetch.AddAttribute(new…
Bruno
  • 4,337
  • 12
  • 42
  • 55