openid

Social Authentication With CodeIgniter

喜夏-厌秋 提交于 2019-12-06 07:11:48
I have a project where I'm supposed to integrate Facebook Login & Twitter Login buttons using CodeIgniter, I was wondering what would be the best approach? As this project requires more Social Login buttons in the future (like LinkedIn , Google , etc). I heared of OpenID & JanRain. You can use Phil Sturgeon's Oauth/Oauth v2 Codeigniter libraries. https://github.com/philsturgeon/codeigniter-oauth https://github.com/philsturgeon/codeigniter-oauth2 Oauth v2 is the way to go. Much easier and cleaner to use. Currently it supports: Facebook Foursquare GitHub Google PayPal Instagram Soundcloud

Retrieve OpenId User Information (Claims) across providers

萝らか妹 提交于 2019-12-06 06:55:25
问题 I'm using DotNetOpenAuth to log in as part of my login process. It works great for handling authentication but the process of retrieving user information from various openId providers is not working very well. Using MyOpenId I do get full information that I request using a ClaimsRequest with DotNetOpenAuth. It apparently uses the SREG protocol to request and retrieve this content. This works great with MyOpenId, but doesn't do anything for Google or Yahoo and other providers that do not

Should I distinguish OpenIDs based on protocol prefix or not? http vs https

邮差的信 提交于 2019-12-06 06:54:44
问题 I have implemented a straightforward OpenID support for my ASP.NET app with DotNetOpenAuth. Yet I recently realized that the implementation was treating http://johndoe.example.com/ as a distinct user compared to https://johndoe.example.com . This lead to quite a few confused users. I am unsure what to do at this point. Is this a bug or a feature? Indeed, I can consider this behavior as a feature: if the user specifies the HTTPS, the user might not want the system to accept HTTP auth in the

微信公众号开发(一)

最后都变了- 提交于 2019-12-06 06:48:01
上一篇文章大致解读了官方文档给出的开发概述,本文正式开始开发步骤的记录。 1. 为了配合微信请求只能使用域名的要求,可以使用natapp搭建外网服务器,模拟域名访问,详细的步骤可参考文章: 搭建外网传送门 。主要就是配置一个免费隧道,并下载对应的natapp插件,按照免费隧道中的authtoken,配置config.ini文件放在natapp根目录下,双击启动即可。 启动natapp见下列这样即说明配置成功,可通过域名访问 域名设置成功就可以进行公众号开发了. step1 引包 <!--微信封装类--> <dependency> <groupId>com.github.binarywang</groupId> <artifactId>weixin-java-mp</artifactId> <version>3.2.0</version> </dependency> <!--用于进行配置文件的注入--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-configuration-processor</artifactId> <optional>true</optional> </dependency> step2 微信相关配置信息的设置 server: port:

How to do login to my asp.net app using Facebook (or other ID)?

北战南征 提交于 2019-12-06 06:22:20
问题 How do sites like SO allow you to authenticate yourself via Facebook, OpenID, Google, Blogger, Twitter, etc? I'm writing an ASP.NET (C#) site, and I'd like to be able to accept logins like this, in addition to offering the regular plain vanilla username/password that any other site has. Where do I start? 回答1: You might want to try DotNetOpenAuth Here's a similar question on SO with some more links 回答2: I would suggest you look at http://www.dotnetopenauth.net/ I believe SO may actually use

Android app + webserver API using Federated login or OpenID (WITHOUT GAE)

╄→尐↘猪︶ㄣ 提交于 2019-12-06 05:47:30
I have an Android app that needs to upload data to an API (API will then save data in MySQL DB). I would like to use a Federated login (Google) or OpenID authentication procedure so that user does not need to register email + password for my app, but rather can use Google (or other account) that is saved in AccountManager . Up until early this year, the solution was using GAE, as per Nick Johnson's famous recipe. But since Google started charging for the use of GAE, this is not a viable solution anymore. PLEASE DO NOT RECOMMEND USE OF GAE . Has anyone ever managed to solve the problem of

What are the pros and cons of a default URL with www or without www?

浪子不回头ぞ 提交于 2019-12-06 03:40:12
We need to default URL to unique name. If it is www then with no prefix or vice versa. So decision to be made is either stick with www or with no prefix. With no prefix cookie is set for all sub domains. What are other downsides for it? Or benefits? Basically we need this for OpenID as OpenID will make users look different if they came from www or with no prefix. As our site is new so we can go with either one. Also, how the domain name looks is not much of a concern. By not using the www subdomain, you can suffer a performance hit when delivering static content, as noted here: http:/

Is all I need the “identity url”? - OpenID

半城伤御伤魂 提交于 2019-12-06 03:11:00
问题 I'm just wondering if all I need is the identity url in order to to theoretically attach an OpenID account to a user's account. I have identity urls that look like the following: https://www.google.com/accounts/o8/id?id=YGnyuGHMUmhUI98nuhUMhu98nuN. Is this different between OpenID 1.0 and 2.0? Just in case someone asks: I'm using Django + django-openid-consumer Thanks guys =) 回答1: All you need to bind to a user account is the "Claimed Identifier" which is what the sample URL you provided is

Discuz被挂马 快照被劫持跳转该如何处理 如何修复discuz漏洞

非 Y 不嫁゛ 提交于 2019-12-06 03:01:54
Discuz 3.4是目前discuz论坛的最新版本,也是继X3.2、X3.3来,最稳定的社区论坛系统。目前官方已经停止对老版本的补丁更新与升级,直接在X3.4上更新了,最近我们SINE安全在对其安全检测的时候,发现网站漏洞,该漏洞是由于用户登录论坛的时候调用的微信接口,导致可以进行任意登录,甚至可以登录到管理员的账号里去。 关于Discuz漏洞详情 漏洞的产生是在plugin文件夹下的wechat目录里的wechat.inc.php代码中的220-240行的代码里,代码如下: 我们可以看到代码里的逻辑功能设计师如何,首先会从会员的这个数据表里进行查询微信接口的ID,是否在会员表里有相对应,并绑定好的会员账号,如果有数据库返回数据给前端。然后再进行下一步,从common这个表里进行获取会员uID值的用户ID,以及用户的所有信息。 根据discuz的设计逻辑,我们可以看出只要知道了用户使用微信接口openid就能登录到其他用户的账户里面去,我们仔细的看下discuz关于微信API接口这个文档,openid这个值是不变的,只有用户将微信号绑定到论坛里,才能从公众号中获取到这个openid值,正常的请求下是获取不到这个值的。 那么我们就可以伪造参数对其进行登录尝试,安全测试看下是否会获取到其他人的openid值来,我们用id为空的一个用户进行登录,发现可以登录但是并没有绑定任何的论坛账号

Is MSN an OpenID provider?

ε祈祈猫儿з 提交于 2019-12-06 01:54:03
问题 Is MSN an OpenID provider? If so, do you know what the URLs look like? I'm trying to add MSN to the list of providers with special buttons I already have for logging in to a web sit. 回答1: Microsoft has an OpenID service attached to Windows Live ID that is in beta at the moment. Not every Windows Live ID user seems to be able to use it. To use it, users have to create an OpenID alias, where they will be provided an OpenID URL. 回答2: No. MSN does not offer OpenID to its members. 回答3: Windows