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
14
votes
3 answers

Can't get the network credentials to work

So I've been working with DotNetOpenAuth for a while, Today I needed to add support for provider that forces me to send the secret key with Basic authentication (I've been using an old version and only Post parameters) I've tried using…
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,171
  • 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
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,540
  • 4
  • 24
  • 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
  • 1,174
  • 20
  • 48
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
  • 973
  • 2
  • 15
  • 41
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
  • 53,688
  • 35
  • 128
  • 197
11
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,639
  • 9
  • 97
  • 171
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
  • 10,744
  • 18
  • 64
  • 97
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
  • 16,764
  • 7
  • 75
  • 94
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
  • 56,100
  • 19
  • 68
  • 100
11
votes
6 answers

DotNetOpenAuth.Asp Couldnt Load Assembly or one of its dependencies in MVC4 App Unit Tests

I am facing with very strange error in my project. I installed DotnetOpenAuth.Aspnet and Microsoft.AspNet.WebPages.OAuth libraries nuget packages. When I run the project there is no problem. But When I write the test for controllers it is throwing…
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
  • 19,177
  • 5
  • 42
  • 47
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,484
  • 4
  • 27
  • 35
1 2
3
74 75