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

How do I Integrate OpenID into MVC4 Web API

I am writing a Web API using MVC4 that should be consumed by multiple client types. I want to use the OpenID to authenticate. I already have downloaded the DotNetOpenAuth NuGet package, but so far all of the examples are for a client app, rather…
Quickhorn
  • 1,163
  • 12
  • 23
13
votes
2 answers

RememberMe with DotNetOpenId in ASP.NET MVC

Using DotNetOpenAuth 3 in ASP.NET MVC and implementing a RememberMe facility ... I'm finding that even if I set createPersistentCookie to true in FormsAuthentication.RedirectFromLoginPage and FormsAuthentication.SetAuthCookie the user is not…
Martin
  • 151
  • 5
13
votes
4 answers

Where are tutorials for DotNetOpenAuth and how to solve compile error in its samples

I know stackoverflow uses OpenID authentication. I want to try and use this as well. I am using asp.net mvc 2.0 with C#. I found this http://www.dotnetopenauth.net/ and I am wondering if this is what was used for stackoverflow. Also any tutorials…
chobo2
  • 75,304
  • 170
  • 472
  • 780
13
votes
2 answers

FormsAuthentication object obsolete [using MVC5]

I'm using the following code in an MVC5 site: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Login(LoginModel loginModel) { if (ModelState.IsValid) { var authenticated = FormsAuthentication.Authenticate(loginModel.UserName,…
Spikeh
  • 3,326
  • 2
  • 21
  • 49
12
votes
1 answer

dotNetOpenAuth Samples issue getting the right security context

I'm going through the dotNetOpenAuth Samples (OpenIdRelyingPartyMVC and OpenIdProviderMvc) and come up to a question for better understanding... In the MembersArea of the Relying Party App I use the OpenID "http://localhost:4864/user/bob3" for…
Jürgen Zornig
  • 962
  • 15
  • 41
12
votes
1 answer

Dotnetopenauth single sign on with custom identity provider

I'm trying to setup the DotNetOpenAuth samples to have a working SSO solution with a custom provider. I'm using OpenIdProviderMvc sample project which appears to be working fine. My problems is setting up the "consumer", in this case the…
tggm
  • 921
  • 11
  • 36
12
votes
2 answers

How do I authorize access to ServiceStack resources using OAuth2 access tokens via DotNetOpenAuth?

I've created an OAuth2 authorization server using DotNetOpenAuth, which is working fine - I'm using the resource owner password flow, and successfully exchanging user credentials for an access token. I now want to use that access token to retrieve…
Dylan Beattie
  • 50,029
  • 31
  • 120
  • 189
11
votes
3 answers

DotNetOpenAuth and Facebook

I'm attempting to use DotNetOpenAuth for some web single sign on functionality. I got the samples working for Google and Yahoo but am struggling with Facebook. I am using the CTP (4.0.0.11165) and have followed the example in this SO…
DaveM
  • 113
  • 4
11
votes
1 answer

DotNetOpenAuth MVC 3 Service Provider Example

I am looking at the OAuthServiceProvider WebForms example that comes with the DotNetOpenAuth project, but would like to implement this into an MVC 3 application instead. Is there any examples where someone has done this already? I can imagine this…
Brandon
  • 9,812
  • 15
  • 59
  • 95
11
votes
2 answers

DotNetOpenAuth 4.3 and Google - OpenID 2.0 + OAuth 1.0 deprecated

If you want to cut to the chase, the question is: what is the best/official way to use DotNetOpenAuth with Google in asp.net mvc 5? About a year ago, I used OAuth (DotNetOpenAuth oAuth and OpenID) pretty much as it came out of the box for asp.net…
acarlon
  • 14,908
  • 7
  • 66
  • 87
11
votes
3 answers

Can I use OpenId with the ASP MembershipProvider?

I have a ASP.Net 2.0 website that is currently using a custom MembershipProvider and the standard login control. I would like to replace the login control with the one from DotNetOpenId. I override the ValidateUser which checks the username and…
tpower
  • 53,004
  • 18
  • 65
  • 99
11
votes
1 answer

How to use OpenID providers with unique identifier URLs in ASP.NET MVC4

The new SimpleMembershipProvider implemented in ASP.NET MVC4 allows easy, built-in support for two popular OpenID providers (Google and Yahoo) and three OAuth providers (Microsoft, Facebook, Twitter). The providers implemented in…
nekno
  • 18,739
  • 4
  • 39
  • 45
10
votes
2 answers

how to generate OAuth client identifier and client secret?

I'm implementing an OAuth2 provider, and I would like to have an area somewhere in my web site where developers log on and register third party apps. But I'm having doubts on how to generate the apps's client identifier and client secret. Should…
Daniel
  • 2,234
  • 3
  • 24
  • 34
10
votes
3 answers

Best way to handle authentication on .NET WCF Web API

I'm mildly familiar with DotNetOpenAuth and OAuth in general, but in terms of Web API development, what is the best way to lock down a web service in terms of the following criteria: Ease of implementation Interoperability/compatibility with…
tacos_tacos_tacos
  • 9,687
  • 10
  • 65
  • 116
10
votes
2 answers

Storing necessary OpenID information

I'm trying to implement OpenID authentication for my site. Here's the scenario: I want the user to be able to login using just openId(user can just get verified by visiting openid provider. no need to create a custom account with email-password),…
Kamyar
  • 18,123
  • 8
  • 90
  • 164
1 2
3
73 74