openid

Implementing OpenID in ASP.net “Properly” - Membership or Authentication Provider?

孤街醉人 提交于 2019-11-26 20:14:46
问题 There are several ways to use OpenID on ASP.net sites, but none of them seem to use the existing mechanism of Membership and Authentication Providers. I wonder what the proper way would be to create a site that solely relies on OpenID? Continuing to use Forms Authentication but implementing a variant of the SqlMembershipProvider that does the lookup against OpenID? Or would I go one level deeper and write my own FormsAuthenticationModule? That seems to be a bit too bare-bones, as (to my

[JAVA实现]微信公众号网页授权登录

主宰稳场 提交于 2019-11-26 19:52:34
网上搜资料时,网友都说官方文档太垃圾了不易看懂,如何如何的。现在个人整理了一个通俗易懂易上手的,希望可以帮助到刚接触微信接口的你。 请看流程图!看懂图,就懂了一半了: 其实整体流程大体只需三步:用户点击登录按钮(其实就相当于一个链接) ---》 用户点击授权登录 ----》 实现获取用户信息代码。 然后获取用户信息代码只需三步:获取code ----》 通过code获取access_token和openId ---》 通过access_token和openId获取用户信息(包含union)。 以上便是整体套路,当然官网上也有,但具体如何实现呢? 不着急,咱们一步一步来! 第一步: 微信登录按钮 它其实就是一个连接,不过想得到这个链接,有一点点麻烦。 1、设置。 微信公众平台---》接口权限---》网页授权---》修改 ---》设置网页授权域名(域名,不含http://),其实就是微信调你的java方法的项目路径或项目域名,如:www.zzff.net/pp ---》点击设置后弹出页面(大致意思,将MP_verify_31qRIDcjN8ZD1lVJ.txt放在你项目路径下面,如:www.ffzz.net/pp/MP_verify_31qRIDcjN8ZD1lVJ.txt 能访问到) ---》点击确认,授权回调页面域名设置成功! 2、拼链接。 https://open.weixin

微信网页授权登录(公众号)

拈花ヽ惹草 提交于 2019-11-26 19:52:20
第一步   先去微信公众平台申请公众号,网址:https://mp.weixin.qq.com/,然后有了公众号申请测试号,拿到appID和appsecret 第二步 申请url和域名 (1) 测试号二维码添加自己的微信号(后期使用微信web开发者工具)可以用自己微信测试,注 意 往下拉 :网页服务 --> 网页帐号 --> 网页授权获取用户基本信息 --> 修改 这边也需要把域名填写,和上面的域名一致。 因为微信的授权接口必须是域名不能ip,所有这边没有域名的小伙伴可以使用NATAPP 公网配置前的准备: 在我们本地测试的时候,需要将我们的本地地址映射到公网,我们使用一个免费且非常方便的工具:natapp。下面的地址是natapp的官网和natapp的使用教程: natapp官网 :https://natapp.cn/ NATAPP 1分钟快速新手图文教程 :https://natapp.cn/article/natapp_newbie 免费隧道配置 先注册,注册成功后登录。 注意上图:本地端口必须是要填8080的(这个购买后也是可以再修改的),因为微信公众平台接口的调用仅支持80。开发之间建议阅读 微信公众平台技术文档 。 隧道购买成功后,在我的隧道中就可以看到已拥有的隧道: 客户端下载 我们访问到natapp的客户端下载,下载natapp客户端: 下载后,解压

Steam API Authentication

六月ゝ 毕业季﹏ 提交于 2019-11-26 19:47:45
Before I get started, let me say I know absolutely nothing about OpenID. I don't even want to do what OpenID is used for, but I imagine people will mention it, but thats not what I'm looking for. I have software. That software requires users to provide their Steam Username when they register. They are not signing on through Steam, just providing their username so that others know their steam username. So there is no need for OpenID. I know, I can simply just add a text field and have them list their Steam username and call it a day. However, doing this, people can input pretty much any steam

Log-in the user with LightOpenID

我与影子孤独终老i 提交于 2019-11-26 19:38:36
问题 Hello I have downloaded LightOpenID (http://gitorious.org/lightopenid) few hours ago but still can't figure out how to make it work. I got this google example saved in test.php file <?php require '../lib/init.php'; require '../lib/openID/openid.php'; try { if(!isset($_GET['openid_mode'])) { if(isset($_GET['login'])) { $openid = new LightOpenID; $openid->identity = 'https://www.google.com/accounts/o8/id'; header('Location: ' . $openid->authUrl()); } ?> <form action="?login" method="post">

Example usage of AX in PHP OpenID

家住魔仙堡 提交于 2019-11-26 18:52:50
问题 I'm using JanRain's PHP OpenID library. It comes with example script which is using SReg extension. But I want it to work with Google (and it works for auth actually), but Google uses AX (attribute exchange) instead of SReg for additional data. For some reason, JanRain's library is missing AX support in example script, and code comments in AX script are out of my understanding, though comments in SReg script are clear as 1-2-3. Does anyone know how to implement AX without too much pain? 回答1:

Architecture for merging multiple user accounts together

痞子三分冷 提交于 2019-11-26 18:42:02
问题 Okay, I got a website where you can register yourself and login. You can also login with your facebook, twitter or linkedin account. It is important that users only have one account registered. So somehow, I want to merge the accounts of users if they use different methods to login. What is the best solution to solve this? For instance, the user logs in with his Facebook account. I use the data to register an account for him automatically. Should I sent an e-mail with an username and password

google account logout and redirect

风格不统一 提交于 2019-11-26 18:39:22
I am using openid to log the user in.(google account only). Now I have a sign out link in my page, which on clicking, I want the user to be logged out of google accounts and the page to be redirected to my home page. can this be done ?? Edit- Changing the accepted answer because now Google allows redirecting [continuing] to any domain you want. ira I have solved this issue calling this function when the user click on the logout link: var logout = function(){ document.location.href = "https://www.google.com/accounts/Logout?continue=https://appengine.google.com/_ah/logout?continue=http://www

PHP library for openID [closed]

给你一囗甜甜゛ 提交于 2019-11-26 18:20:59
问题 Which is the best PHP library for openID integration? 回答1: For PHP, I find Zend Framework OpenID Component to be really good. You can also see all available OpenID libraries at this link 回答2: The PHP OpenID library is good. 回答3: I'd recommend JanRain's library, they say its used by 80% of all OpenID enabled users, (possibly, it was one of the earliest ones), but you can also use them for OpenID authentication as a service provider using their RPX service, or just get them to do all the work

Where can I find a list of OpenID Provider URLs?

江枫思渺然 提交于 2019-11-26 17:53:48
问题 I've implemented OpenID on my website but I'm having a hard time finding a list of OpenID Provider URLs. I thought this would be easy to find but I've scoured the web and only found a handful, mostly by accident. Is there a resource that lists available Providers and their authentication URLs? EDIT: Here are the ones I've found so far. I haven't tried all of them so let me know if any of them are wrong. StackExchange https://openid.stackexchange.com Google https://www.google.com/accounts/o8