openid

Request email address from OpenID provider

只愿长相守 提交于 2020-01-03 10:47:10
问题 I'm implementing OpenID and I would like to retrieve the user's email address and other information about the user, I'm doing this: var fetch = new FetchRequest(); fetch.AddAttribute(new AttributeRequest(WellKnownAttributes.Contact.Email)); request.AddExtension(fetch); But the provider doesn't return anything. I'm using DotNetOpenID What am I doing wrong? thanks! EDIT: When I try to signup at http://www.plaxo.com/ using MyOpenID or Google, they both say plaxo is requesting additional

Request email address from OpenID provider

放肆的年华 提交于 2020-01-03 10:47:07
问题 I'm implementing OpenID and I would like to retrieve the user's email address and other information about the user, I'm doing this: var fetch = new FetchRequest(); fetch.AddAttribute(new AttributeRequest(WellKnownAttributes.Contact.Email)); request.AddExtension(fetch); But the provider doesn't return anything. I'm using DotNetOpenID What am I doing wrong? thanks! EDIT: When I try to signup at http://www.plaxo.com/ using MyOpenID or Google, they both say plaxo is requesting additional

How can I access the Google account user_id?

一笑奈何 提交于 2020-01-03 04:35:11
问题 I'd like to access the user's Google account user_id for authentication, but I don't see any mention of this in the AccountManager. How can my app request the user_id ? 回答1: Now that Google Play Services is available, you can use it to request the user's permission to access the https://www.googleapis.com/auth/userinfo.profile scope and, with the resulting access token, make a request to https://www.googleapis.com/oauth2/v1/userinfo?access_token={accessToken} to get their user ID. 回答2: You

Error connecting with yahoo openId

a 夏天 提交于 2020-01-02 17:34:21
问题 When i make the following request as mentioned in yahoo open id doc spec, i am getting error : Sorry! You will not be able to link your Yahoo account with this website or application. It is using an older version of the OpenID technology . Request i am making is : https://open.login.yahooapis.com/openid/op/auth? openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select &openid.identity=http://specs.openid.net/auth/2.0/identifier_select &openid.mode=checkid_setup &openid.ns=http:/

Authenticating with Stack Overflow programmatically

荒凉一梦 提交于 2020-01-01 19:11:22
问题 I would like to add up and down voting to my iPhone application - MyStacks. for this I need the to be able to authenticate the user with Stack Overflow. I'm look at adapting the Twitter-OAuth-iPhone library. However the problem I have is obtaining the consumer and secret key. to use OAuth, do I need to obtain a different key for each provider? In order to obtain a consumer key from Google the application needs to have a domain name, but this being an iPhone app of course I don't have one.

using authlogic to auto create users bypassing explicit user registeration

折月煮酒 提交于 2020-01-01 17:06:12
问题 I'm wondering how to go about using Authlogic to auto register a user who chooses to use open id. Right now they have to register first before being able to login in, even if they choose open id, but I'd prefer if they could just login directly provided I get all the necessary details from the open id provider. But I'm not sure how to go about doing this? Would I do it inside my user session controller or is there some fancy way to extend authlogic inside the model? If someone could point me

How to implement custom OpenID Relying Party in MVC 4

跟風遠走 提交于 2020-01-01 14:44:10
问题 I like the new MVC OpenID/OAuth login feature, but I want to know how to add a new login button, for example I want my users to login using their StackExchange account or using their OpenID url the same as in stackoverflow http://puu.sh/13rm0 How to do that? Are there any samples showing this in steps? 回答1: Unfortunately the API Microsoft exposes is limited to login providers that are hard-coded to a specific URL -- not one that can accept input from the user before logging the user in, which

OpenID authentication to Google Apps via Perl and Net::OpenID::Consumer fails

风格不统一 提交于 2020-01-01 06:26:18
问题 I asked this over on Google's support forums for Apps integration, but got zero response. Maybe somebody here can help steer me in the right direction. I'm trying to integrate a Perl application with Google Apps, and I'm having some trouble with the OpenID authentication. I've been using this PHP tutorial from Google as a kind of reference, since there are no Perl examples I can find. My initial file, index.cgi (referred by manifest.xml, and the starting point of the OpenID transaction) is as

Login with FB Connect / Google OAuth in .NET

可紊 提交于 2019-12-31 10:36:50
问题 I'd like to allow my users to login to my website using my login system, or FB Connect or Google Login. I wouldn't want to use big libraries (like dotnetOpenAuth) for only those 2 options - So how should I accomplish this? Additional question - how should I bind the FB/Google user to my inner user system? I'd like to allow to login using both of them (I could for example login using FB and then login with Google, and still be bound to the same user). I'm using ASP.NET MVC 2 Thanks! 回答1: If

人人商城小程序用户授权问题

旧时模样 提交于 2019-12-31 09:13:43
问题 :在微擎的人人商城的小程序里面,会出现用户反复授权不成功的情况 分析 :授权的流程是,一个未进入过小程序界面的用户进入界面后,wx.getUserinfo会获取用户的openid创建一个用户,并且存在cache里面,然后再点进入这个会员中心界面,会判断你的这个用户是无效的,然后进入授权界面,授权界面授权后,在进入首页,首页再会调用wxapp.auth这个api接口去修改这个openid的会员昵称,图片等信息 关键点 :后台数据库中,shop_member表中,存在一部分为sns_wa_sns_wa_xxxxx这一类的openid,这一类的openid是错误的,导致这一部分用户就一直重复在首页更新数据更新不了,进入用户后,再授权,授权进入首页还是没法更新 这样一种死循环的情况 注意 :如果你的数据库中不存在sns_wa_sns_wa_xxx之类的前缀重复openid的话,那么跟下面的解决方案没得太大关系. 死循环的原因 :用户进入小程序首页授权后,创建了一个sns_wa_xxx的openid并且存入了缓存,然后再一次进入首页的时候,会触发check()方法,check方法会把这个sns_wa_xxx再加上sns_wa前缀,组成了sns_wa_sns_wa_xxx的openid来查询,查询不到,然后后面又会触发什么auth方法验证,然后就导致了一系列的错误. 解决关键点: