dotnetopenauth

Google OpenId Connect migration: getting the openid_id in ASP.NET app

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 22:55:26
问题 I've gone through plenty of Google documentation and SO Q/A's but with no luck. I wonder if anyone has yet succesfully used the OpenId to OpenId Connect migration as advised by Google. This is what we used to do: IAuthenticationResponse response = _openid.GetResponse(); if (response != null) { //omitted for brevity } else { IAuthenticationRequest req = _openid.CreateRequest("https://www.google.com/accounts/o8/id"); req.AddExtension(new ClaimsRequest { Country = DemandLevel.Request, Email =

Specifying a proxy to use with DotNetOpenID

时间秒杀一切 提交于 2019-11-29 22:22:22
问题 I'm using DotNetOpenID to provide relying party OpenID support for our website. All external requests have to be brokered via a proxy server, and I'm looking for a way to tell DotNetOpenID to use this proxy. I know I can set up a global proxy config in web.config, but I currently only want this to apply to the calls made to the OpenID provider during authentication. Is this possible? 回答1: I ended up solving this by using specifying a proxy in web.config , with a bypasslist specified so only

DotNetOpenAuth CTP - Facebook bad request

元气小坏坏 提交于 2019-11-29 21:08:01
I am trying to use the CTP to connect with Facebook over OAuth 2.0. I can get the initial request to Facebook working OK, but when it comes back and we call: // Where null will become an HttpRequestInfo object client.ProcessUserAuthorization(null); I get: The remote server returned an error: (400) Bad Request. I haven't really done much with the initial codebase; merely set the optional values to null (we're still on .NET 3.5). Any clues would be much appreciated. Also, and i guess this is more of a question to Andrew specifically; is there a forum / blog for any of this stuff, or anywhere

InvalidOperationException thrown regarding DotNetOpenAuth.IEmbeddedResourceRetrieval with Razor view

佐手、 提交于 2019-11-29 19:35:35
问题 When my Razor view calls @Html.OpenIdSelector(... I get an InvalidOperationException : The current IHttpHandler is not one of types: System.Web.UI.Page, DotNetOpenAuth.IEmbeddedResourceRetrieval. An embedded resource URL provider must be set in your .config file. What exactly should I set in the config file? 回答1: Just NuGet the DotNetOpenAuth package. It will setup everything you need in your config file: Right click on the References of your web project in the solution explorer Add Library

DotNetOpenAuth Get Facebook Email Address

余生颓废 提交于 2019-11-29 18:25:43
问题 I have the following code where its grabbing First/Last name. I realize that email is an extended permission, but what would I need to modify to request extended permissions? How do I get the email of an authenticated Facebook user through the DotNetOpenAuth ? fbClient = new FacebookClient { ClientIdentifier = ConfigurationManager.AppSettings["facebookAppID"], ClientSecret = ConfigurationManager.AppSettings["facebookAppSecret"], }; IAuthorizationState authorization = fbClient

How to logout from Relying Party?

假如想象 提交于 2019-11-29 15:27:09
I am using Dotnetopenid for login. I am logs in my application by using dotnetopenid provider suppose google. At the time of logout I am ending the my application user's session by FormsAuthentication.SignOut(); but if I am not closing the browser and logs in using google it will not ask me for id-password and land me on secured page of my apllication. Also, if i will try gmail.com it will directly lands me user account without asking id-password. So how could I logout completely from my application and google too ? thanks in advance I think you are mistaking the Relying Party and the OpenID

Can non-web applications use OpenID?

守給你的承諾、 提交于 2019-11-29 13:54:52
How can I make my desktop application into an OpenID relying party? Since OpenID has a specified protocol, it will either work all the time (assuming providers are conforming) or not at all. Additionally, since the OpenID protocol (at least the authentication bits, see the specification ) consists of simple HTTP requests, you could implement the protocol in a desktop application assuming you know how to make such requests. It is generally considered a bad idea though, since there are better technologies (OAuth) and it disrupts the user experience (being different from OpenID in a browser — see

Is Windows Live ID an OpenID Provider? [closed]

随声附和 提交于 2019-11-29 10:12:31
I've heard different things. Seems like Microsoft experimented with a beta service , but I don't know if it's still available, or ever made it into production. If Windows Live ID is an OpenID Provider, where is the endpoint? No. Windows Live ID is not an OpenID Provider. They use a proprietary protocol. Ever since the close of their "beta" period, they've never announced plans to continue with it. toddm Check out this , I believe they use OAuth (not OpenID). Looks like it really hasn't made it into production. http://winliveid.spaces.live.com/ ( blog post permalink ) 来源: https://stackoverflow

Custom OAuth client in MVC4 / DotNetOpenAuth - missing access token secret

喜你入骨 提交于 2019-11-29 09:59:45
问题 I'm currently working on implementing a Dropbox OAuth client for my application. It's been a fairly painless process until I hit the end. Once I've authorized, when I attempt to access user data I get a 401 back from Dropbox about the token being invalid. I asked on the Dropbox forums and it looks like my request is missing the access_token_secret that Dropbox returns back. I was able to use Fiddler to dig out the secret and add it to my request url and it worked fine, so that's definitely

MVC4's DotNetOpenAuth TwitterClient sample does not respect prior login

二次信任 提交于 2019-11-29 07:53:32
If I create an ASP.NET MVC 4 Web Application using the Internet Application template, it pre-installs all the components and configuration necessary to implement authentication using a range of OAuth and OpenID providers. Just adding my Twitter consumer key and secret to AuthConfig.cs activates authentication via Twitter. However, it doesn't seem to work as I would expect. If I attempt to authenticate using Twitter, it invariably displays a Twitter sign-on page, regardless of whether I am already signed on to Twitter. It also logs me out of Twitter, so that I am forced to re-authenticate on my