openid

小程序的openid和公众号的openid是否一致

人盡茶涼 提交于 2019-11-30 09:42:09
早期的产品只用了公众号,没有注册开放平台(没有unionid)。然后现在需要上线小程序,这种情况下,企业是同一个企业的,但是公众号的openid和小程序的openid是否一致呢? 我来回答你这个问题: 同一个用户在小程序和公众号的下的两个openid肯定不一样 如果小程序和公众号都绑定在同一个开放平台账号下的话,用户在小程序和在公众号下的unionid是一样的 如果先有公众号并且积累了大量粉丝,然后才有的小程序,然后想在小程序下也能识别公众号粉丝怎么办呢? 首先将公众号和小程序关联到同一个开放平台账号 通过API将公众号粉丝列表全部拉一遍,同时计算这些粉丝的unionid并保存起来 用户进入小程序时计算unionid,然后根据之前保存的公众号粉丝unionid的数据映射过去就好了 说句题外话,微信为什么要设计出用户对几个号的openid不一样的机制呢?想象一下如果一样会怎么样,几个大号把自己的粉丝openid一串就把整个微信的用户ID摸透了,换做你是平台建设者你能忍吗? 来源: https://www.cnblogs.com/panchanggui/p/11577066.html

OpenID for Google App Engine

别说谁变了你拦得住时间么 提交于 2019-11-30 09:19:00
I saw many links over the internet and specifically openid-consumer project (which is a part of http://code.google.com/p/google-app-engine-samples/ ), but it doesn't work as honestly readme file says. So what's the latest update on that? Is there any way I can authenticate my web site users with OpenID from someone besides Google (like stackoverflow does)? I have setup an example app here: http://github.com/shripadk/authlogic_openid_selector_example With the source code. It works exactly the way stackoverflow does. Have not implemented facebook auth as its buggy still. I've just played a bit

Does HoTMaiL or Windows Live ID support OpenID authentication?

浪尽此生 提交于 2019-11-30 08:48:16
Does Windows Live ID or Hotmail (Passport) support OpenID based authentication? If yes, what is the endpoint url, and do I have to register my application somewhere to use it? If no, do they have their own API for 3rd-party authentication? On the Windows Live Blog , there are only two different mentions of Open ID. Neither of those point to any actual movement on implementing Open ID. Welcome to the Windows Live for Developers Blog Announcing Support for OAuth 2.0 There is no mention of a working Microsoft provider on the OpenID Web Site . Even though Microsoft is part of the OpenID board , it

What are the dangers of using OpenID for your website?

£可爱£侵袭症+ 提交于 2019-11-30 08:19:16
Let's say I create a website like StackOverFlow and decide to use OpenID. What's to prevent me, or anyone else for that matter, from phishing the ID's? That is, how can you truly know that any website is using OpenID and not pretending to? And how do you protect myself against this? Expanding on this, let's say one site did compromise your openID credentials, couldn't they use it on every other site using openID (a global password hack)? Wouldn't then the security of your openID then only be as strong as the weakest website/provider? All you enter is the ID, no password. The ID is public,

微信小程序后台获取用户手机,openid(C#) --markdown

旧巷老猫 提交于 2019-11-30 07:51:32
微信小程序后台获取用户手机,openid(C#) 官网地址 获取session_key与openid 解密算法 *** 注意事项 前端调用 wx.login 保存返回的code 前端调用 wx.getUserInfo 保存返回的encryptedData 与 iv 前端组合 code,encryptedData,iv传入后台进行解密 官网上写的是对称解密使用的算法为 AES-128-CBC,数据采用PKCS#7填充。但是设置的时候,千万不要设置128位。会出现乱码。 出现Padding is invalid and cannot be removed。你的sessionKey有问题。千万别百度网上乱起八糟的解决办法。查询第一个步骤。 *** 流程图 ```flow st=>start: 前端传入参数code,encryptedData,iv op=>operation: 根据自己的配置调用获取session_key与openid接口(注意请求时效) op1=>operation: 返回的json字符串获取sessionKey,openid op2=>operation: 解密encryptedData op3=>operation: 处理待解密字符串格式 op4=>operation: 创建方法进行解密 e=>end: 结束 st->op->op1->op2->op3->op4-

AuthenticationResult.IsSuccessful started returning false for google

寵の児 提交于 2019-11-30 07:50:24
问题 Today, without any change on my live site, logging in with the Google external login provider stopped working. This only happens to users that have a google login, other providers are fine. This also only happens on the live site, my dev machine running the debug version of the same code is fine. My code is similar to the example MVC app with: public ActionResult ExternalLoginCallback( string returnUrl ) { ... AuthenticationResult result = OAuthWebSecurity.VerifyAuthentication( Url.Action(

Exchanging a google idToken for local openId token c#

我的未来我决定 提交于 2019-11-30 07:49:40
I am using this github project https://github.com/openiddict/openiddict-core which is great. But I am stuck as to what the procedures should be, or how to implement them, when the user uses an external identity provider, for this example, I will use google. I have an angular2 app running, with an aspnet core webAPI. All my local logins work perfectly, I call connect/token with a username and password, and an accessToken is returned. Now I need to implement google as an external identity provider. I have followed all the steps here to implement a google login button. This opens a popup when the

微信公众号如何推送文章

爷,独闯天下 提交于 2019-11-30 07:45:50
公众号推送消息格式,可以推送文本、图文消息、小程序、优惠券、会员卡、图片、视频、语音,不仅仅只能推送文章即图文消息,支持素材永久链接,表情符号等。 通过公众号接口可以开发各种各样的推送功能,不会开发可以直接用微号帮平台功能,比如 48小时消息推送 ,每天不限制次数推送多条消息,对活跃粉丝进行发送。 1、48小时消息推送功能 48小时消息设置界面,可以定时未来1个月时间点,按粉丝活跃动作,按粉丝分组推送,还可以设置推送头像,所有消息格式都可以发送,表情符号、超链接、粉丝昵称和头像、openid参数也能应用。 2、推送文本内容设置 粉丝的动态参数,表情符号,超链接都能使用,也可以使用对话代码增强粉丝互动性。 3、互动粉丝统计 微号帮平台48小时消息功能,自动统计活跃互动粉丝,在设置的时间内对活跃粉丝群发,不限制次数,一次多条消息推送。 4、推送会话代码提高互动粉丝量 设置视频消息格式,视频在公众号后台上传,这里自动同步视频,选择要发送的视频保存即可。 来源: https://my.oschina.net/zhuanshuhaibao/blog/3109736

Steam OpenId in MVC application

懵懂的女人 提交于 2019-11-30 07:42:36
I have never done an openid application before. I did see that MVC 5 has some built in oauth sign ins. I was able to get these to work no problem, as they are already built. But I am completely unsure how to get the steam openid to work in MVC. Does anyone have some sample code of there MVC Steam OpendID stuff? Or does anyone know a good tutorial for this? Go to Tools > Library Package Manager > Package Manager Console and type: Install-Package Owin.Security.Providers Open your App_Start\Startup.Auth.cs, and add: using Owin.Security.Providers.Steam; Then, in the ConfigureAuth method, add: app

微信平台开发获取微信用户的OPENID

孤街醉人 提交于 2019-11-30 07:38:55
当我们进行微信平台相关内容开发时,如果想做一些针对微信用户进行一些信息获取及消息推送,那我们第一步先要拿到微信用户的OPENID(用户唯一标识,建立在一个公众号与一个微信用户之间,即针对一个公众号,所有的微信用户都享有一个独立不变的标识); 1 . 如果微信用户已经关注自己的公众号, 那可以通过微信接口里面的用户管理模板直接获取到对应公众号的所有已关注用户OPENID的列表; 1). 在调用所有的微信接口之前,我们先要请求授权,拿到access_token @Getter @Config ( "wechat.appid" ) private static String WECHATAPPID; @Getter @Config ( "wechat.appsecret" ) private static String WECHATAPPSECRET; public static final String ACCESS_TOKEN = "access_token" ; public final static String WECHATACCESSTOKEN = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" ; /** * <p> * 成功: {"access_token":