openid

What is the “openid” url of facebook?

為{幸葍}努か 提交于 2019-11-27 21:09:59
问题 I made my openid in my site like this: livejournal: { name: 'LiveJournal', label: 'Enter your Livejournal username.', url: 'http://{username}.livejournal.com/' }, wordpress: { name: 'Wordpress', label: 'Enter your Wordpress.com username.', url: 'http://{username}.wordpress.com/' }, blogger: { name: 'Blogger', label: 'Your Blogger account', url: 'http://{username}.blogspot.com/' }, And I want to add facebook as my openid provider, so, what is the url of facebook openid ? This site allows login

Janrain's PHP-OpenID and Google/Yahoo

你。 提交于 2019-11-27 20:48:53
问题 I'm using Janrain's PHP-OpenID 2.1.3, and I've managed to get it working with all the providers I have tried except for Google and Yahoo. The major difference here seems to be that Google and Yahoo, unlike most other providers, don't use a user-specific URL, but rather have the user discovery framework all on their end - which throws the default Janrain framework for a loop then it tries to begin the auth request. From what I've seen it looks like it's probably the YADIS discovery that is

扫小程序码实现网站登陆,提供源代码

那年仲夏 提交于 2019-11-27 20:40:53
使用扫小程序码登陆网站 网络上关于实现本本功能的文章很多,但是给出案列的几乎没有,今天笔者实现用小程序码实现网站登陆,体验地址如下 https://idea.techidea8.com/open/login.shtml 思路 关键流程 建立场景sceneid和websocket的绑定关系 获得sceneid 场景ID可以前端生成,也可以后端生成,只需要保证sceneid的同一时间唯一性即可。 前端生成可以采用随机数加时间戳的形式,也可以用uuid算法 //时间戳 var sceneid ="scend-" + new Data().getTime() + Math.ceil(Math.random()*888888+1000000); 建立websocket var ws = new WebSocket("ws://192.168.0.106/websocket?clientid="+sceneid ) ws.onopen=function(env){ console.log(env) } ws.onmessage=function(env){ var data = env.data; //这个data 就是后端发来的用户数据 } 后端建立websocket 后端采用go语言 github.com/gorilla/websocket 包建立websocket.因为golang

How do you delegate your OpenId to Google Apps

不羁岁月 提交于 2019-11-27 19:52:37
问题 I use Google Apps for my domain email, and I was wondering if I could use that account for OpenID instead of the regular Gmail account. I know I can delegate Openid to some other URL using this: <link rel="openid.server" href="http://www.myopenid.com/server" /> <link rel="openid.delegate" href="http://samruby.myopenid.com/" /> But I can't find the appropriate URLs for Google. Thanks -Mathieu 回答1: Google recently (an hour or so ago) announced OpenID support for Google Apps customers. Check out

微信小程序获取用户openid (Nodejs)

不羁岁月 提交于 2019-11-27 19:39:58
微信小程序需要获取用户的openid来作为用户的唯一身份认证,用来存储和更新对应客户信息。 以Node后台为例, 前台发出请求后,后台转发访问对应的微信接口来获取openid. 1. 小程序前端请求: getUserInfo: function(e) { app.globalData.userInfo = e.detail.userInfo this.setData({ userInfo: e.detail.userInfo, hasUserInfo: true }) wx.login({ success: res => { app.globalData.usercode = res.code //1. 获取usercode作为后面获取openid的参数 } }) var id=null id=wx.getStorageSync('openid') if (!id) { wx.request({ url: getOpenId, //set in config .js //2.后台API method: "POST", data: { js_code: app.globalData.usercode, }, success(res) { var openId = res.data.openid var sessionKey = res.data.session_key console

Create a website to login in with Gmail, Yahoo, or Facebook accounts

♀尐吖头ヾ 提交于 2019-11-27 19:22:05
How does Stack Overflow allow new users to login into Stack Overflow using their Gmail or Facebook or Yahoo accounts? I am working on a little project website and I was curious how Stack Overflow does this. Do I need to get permission from these companies to do this or can I just do it? StackOverflow (and all other StackExchange sites) use OpenID . OpenID is a decentralized authentication protocol that makes it easy for people to sign up and access web accounts. Yahoo, Google and facebook are all OpenID providers, so simply implementing it on your site will be enough for your users to be able

Log-in the user with LightOpenID

对着背影说爱祢 提交于 2019-11-27 18:53:06
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"> <button>Login with Google</button> </form> <?php } elseif($_GET['openid_mode'] == 'cancel') { echo 'User

Example usage of AX in PHP OpenID

只谈情不闲聊 提交于 2019-11-27 17:08:25
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? Ran into the same issue. Some digging in AX.php got me a working start. Haven't looked for any bugs, nor

OpenID Connect - how to verify id token in Java?

戏子无情 提交于 2019-11-27 17:01:12
问题 I've implemented the basic OpenID connect flow in my java application and it seems to work fine. I'd like to use an existing java library to verify the id token, as detailed here on a Salesforce page about implementing OpenId connect. Are there any existing libraries that implement this well? I've got the response parsed, I just need to find some simple way to verify the id token is valid. 回答1: The following example will validate an id_token from an OAuth2 call for Salesforce, without any 3rd

uniapp 开发【微信小程序简陋登录模块】

六月ゝ 毕业季﹏ 提交于 2019-11-27 16:51:04
<script> export default { data() { components: { } return { SessionKey: '', code:'', isCanUse: uni.getStorageSync('isCanUse')||true,//默认为true show:true, userInfo:{ avatarUrl: '', nickName: '', country:'', city:'', gender:0, province:'', openid: '' } }; }, methods: { wxGetUserInfo:function(){ uni.wxGetUserInfo({ lange:"zh_CN", success(res){ app.globalData.userInfo = res.userInfo; console.log("uesrInfo:" +app.globalData.userInfo); },fail(res){ console.log("fail"+res) } }) }, onShow:function(){ let that = this uni.login({ success(res) { that.getopenId(res.code) } }) console.log(that.userInfo) },