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
2 answers

Get email address from OpenID Provider with DotNetOpenAuth

I can't get the email address returned in GetExtension method, but it is included in the url that Google (the OP I'm testing with) sends back to me. if (Page.IsPostBack) { using (var openid = new OpenIdRelyingParty()) { var request =…
Carol
  • 261
  • 1
  • 4
  • 8
6
votes
2 answers

Looking for Oauth Yahoo sample C#

I know threre a lot of libraries dotnetopenauth,oauthbase, etc. But i need sample of using with yahoo. Samples,which i find did not work for me.Maybe you have example.Please share :-) I find bug OauthBase work fine for me :-)
John
  • 864
  • 1
  • 11
  • 26
6
votes
4 answers

Can non-web applications use OpenID?

How can I make my desktop application into an OpenID relying party?
Zack Peterson
  • 56,055
  • 78
  • 209
  • 280
6
votes
1 answer

Speed up 20-second OpenID sign in via RPXNow

I've implemented RPXNow for several applications as a great abstraction for OpenID and OAuth to enable Google and Facebook sign-ins. My only complaint is that sign-in takes way too long. After clicking on Google's "Sign In" button, it takes 8-10…
Petrus Theron
  • 27,855
  • 36
  • 153
  • 287
6
votes
1 answer

Html.OpenIdSelectorScripts helper method throwing NullReferenceException

I keep getting this error when trying to navigate to my LogOn page: System.NullReferenceException: Object reference not set to an instance of an object The line of code that is throwing the error on is: <%= Html.OpenIdSelectorScripts(this,…
efleming
  • 1,269
  • 2
  • 10
  • 10
6
votes
2 answers

Does DotNetOpenAuth support refreshing Expired Access Tokens?

I can't find any examples of using DotNetOpenAuth to refresh an expired Access Token. Most providers don't use expiring tokens, however Yahoo is a big one that expires their tokens in one hour. Thanks!
mightytightywty
  • 377
  • 2
  • 10
6
votes
2 answers

DotNetOpenAuth with Google Calendar Feed

I have been racking my brain for a few days trying to get a list of calendars from Google using DotNetOpenAuth. I can successfully get a list of contacts using the DotNetOpenAuth Samples. I have integrated it with my domain using the OpenId+OAuth. …
Brett Allred
  • 3,459
  • 26
  • 30
6
votes
1 answer

Setting up a OpenID provider for testing

I'm developing a site that uses OpenID for authentication, which is working fine however... I often work on it while travelling without an internet connection. If the session expires and I need to login again, I can't until I have connectivity…
Brad Robinson
  • 44,114
  • 19
  • 59
  • 88
6
votes
1 answer

How to set return url for DotNetOpenAuth

I'm using DotNetOpenAuth to sign in to Facebook. Here is the code: var facebookClient = new FacebookClient { ClientIdentifier = "appId", ClientSecret = "appSecret" }; IAuthorizationState authorization =…
šljaker
  • 7,294
  • 14
  • 46
  • 80
6
votes
1 answer

DotNetOpenAuth vs Owin OAuth

I am new the webAPI2, so please excuse me if my question is trivial. I want to implement token based security for my webAPI, so that other applications (apart from my SPA) can also call my webAPIs. I started with Owin OpenAuth and implemented a…
Pragmatic
  • 3,093
  • 4
  • 33
  • 62
6
votes
1 answer

Migrating Google OpenID to OpenID Connect: openid_id does not match

I have begun the process of Migrating from Google OpenID to the OpenID Connect with OAuth 2.0 following what is presented in the Documentation. I am able successfully complete the workflow of retrieving the openid_id and sub inside the id_token…
6
votes
1 answer

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

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,…
Brian
  • 25,523
  • 18
  • 82
  • 173
6
votes
1 answer

Processing AuthenticationResult's from different providers in the same page

I'm integrating OpenID to my existing application with LiveID and Google providers. On my login page, in addition to the original login fields I have added 'Log in with Google' and 'Log in with Microsoft' buttons. I can successfully read the…
EvilDr
  • 8,943
  • 14
  • 73
  • 133
6
votes
2 answers

Google Api OAuth in C#, .NET

I just want to login to my developed application using Gmail OAuth authentication and there by i need to list out various inputs from it such as First Name Last Name Email Address Dob Third party which i have used is : DotNetOpenAuth.dll I have…
GowthamanSS
  • 1,434
  • 4
  • 33
  • 58
6
votes
2 answers

Login with gmail account through c# .net

i am using DotNetOpenID dll for logging my sample application through gmail authentication through c# .net code which i used was protected void Page_Load(object sender, EventArgs e) { OpenIdRelyingParty rp = new OpenIdRelyingParty(); …
GowthamanSS
  • 1,434
  • 4
  • 33
  • 58