dotnetopenauth

DotNetOpenAuth get email and redirect problem

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 06:07:55
问题 i am trying to setup DotNetOpenAuth using the OpenIdAjaxTextBox but i have two problems i want to be able to get the users email address and i think that is done in the loggedin event (right?) but that event is never called, i have tried to setup a breakpoint there but i never get to it. when I type in the openid provider in the OpenIdAjaxTextBox (lets say Gmail), I get the login button in the textbox so I click on it a new windows pops up and displayes the Gmail login form but after that i

How do I get other claims of the user using ADFS?

折月煮酒 提交于 2019-12-11 06:07:04
问题 I am able to authenticate the user using ADFS and succeded in getting the user alias using the below statement. Since some time, i am looking for a way in getting the other claims of the authenticated user, like email, name, roles, username etc. Any help on this would be appreciated. string alias = ((MicrosoftAdfsProxyRP.MicrosoftPrincipal)HttpContext.Current.User).Alias; Response.Write (alias); 回答1: The Claims way of getting the other claims is as follows. IClaimsPrincipal claimsPr =

OpenId query length issue in DotNetOpenAuth?

耗尽温柔 提交于 2019-12-11 04:48:26
问题 I use DotnetOpenAuth, i need to pass some data with SetCallbackArgument, but the problem is that some openId provider such as http://pip.verisignlabs.com/ http://clickpass.com/public/username redirect to my site with query string more than 2048 character and IIS can't handle it. I got 404 - File or directory not found. error cause that they redirect is too big. What should I do in this case? 回答1: The OpenID spec states that OpenID responses that are too large should use form POST instead of

DotNetOpenAuth - how to uniquely identify Google users?

为君一笑 提交于 2019-12-11 03:56:42
问题 I am using DotNetOpenAuth to identify Google users. I am currently retrieving their e-mail address and saving a copy of that in my database. However, what if they change their e-mail address in their Google account? Then my copy can no longer be linked to their profile. Is there a way to uniquely identify a Google account through DotNetOpenAuth? 回答1: Always use the IAuthenticationResponse.ClaimedIdentifier to uniquely identify users! OpenID's security model is based on this design. Using

how can Add My On Claim on DotNetOpenAuth

眉间皱痕 提交于 2019-12-11 03:33:17
问题 How can I add my own claim to a user assertion using DotNetOpenAuth as an OpenID Provider? I need to add some attribute to ClaimsRequest and ClaimsResponse like "UserID". I added this attribute in both class ClaimsRequest.cs and ClaimsResponse.cs, and when I build DotNetOpenAuth with this change, it works well in VS 2010 but when I publish on iis 7.5 it throws this exception: Server Error in '/OpenID' Application. Could not load file or assembly 'DotNetOpenAuth.Contracts' or one of its

no openid endpoint found

徘徊边缘 提交于 2019-12-11 03:14:04
问题 what changes are needed to made in web.config file to prevent this exception i am using dotnet open id for implementing open id. using (OpenIdRelyingParty openid = new OpenIdRelyingParty()) { IAuthenticationRequest request = openid.CreateRequest(this.txtOpenId.Text); and at this point an exception is generated no openid endpoint found for example in case i am typing claimid.com/openid 回答1: I had the same problem and I solved it setting up logs for DotNetOpenAuth (http://www.dotnetopenauth.net

ServiceStack OpenId AuthProviders on Mono

▼魔方 西西 提交于 2019-12-11 03:00:45
问题 The problem is that OpenId Auth providers aren't working under Ubuntu 12.04 with nginx/1.1.19, Mono JIT compiler version 3.1.1, fastcgi-mono-server4.exe 2.10.0.0 The ServiceStack references were all pulled via Nuget are at version 3.9.55.0, including ServiceStack.Authentication.OpenId which is attached to DotNetOpenAuth 4.3.0.0 The project is based on the ServiceStack Template CustomPath40 and all of the projects are built under .NET 4 with VS2012 on Win7x64. Every auth works perfectly fine

No OpenID endpoint found - Relying Party Timeout Option

*爱你&永不变心* 提交于 2019-12-11 02:48:14
问题 I have a Relying Party and a provider running with DotNetOpenAuth. The issue is that when the provider has not been accessed in a while it is unloaded from IIS to conserve memory (which is normally a good thing). However, in this case it causes the Relying Party to throw the "No OpenID endpoint found" exception. I know that IIS can be configured to never unload an application, but that is not an option in this case. Is there a way to increase the timeout on the relying party to let it wait

How to get email from Google OpenID Provider (in VB)

ε祈祈猫儿з 提交于 2019-12-11 01:44:33
问题 Salam to all I am using the DotNetOpenAuth control for authentication from google. This is the code that I am using. <rp:OpenIdLogin ID="OID" runat=server Identifier="https://www.google.com/accounts/o8/id" RequestEmail="Require" ></rp:OpenIdLogin> To get the response from the provider for the email ID I am using this code in the page load event of default.aspx Public Email As String = "N/A" Public FullName As String = "N/A" Public Country As String = "N/A" Protected Sub Page_Load(ByVal sender

Understanding Redirections in ASP.Net MVC

╄→гoц情女王★ 提交于 2019-12-11 01:43:15
问题 How do redirections work in ASP.Net MVC? I've copied and modified the code bit from Scott Henselman's blog that uses DotNetOpenId to login via OpenID. Debugging, I find that when executing this code segment: // Stage 2: user submitting Identifier var openId = Request.Form["openId"]; new OpenIdRelyingParty().CreateRequest(openId).RedirectToProvider(); throw new Exception("Should never get here"); I never get to the throw clause, but rather continue with the redirection. How does that work?