openid

微信公众号相关

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 08:44:00
文章目录 前言 一 平台开发概述 1.1 OpenID能做什么 1.2 UnionID的功能 1.3 微信开放平台账号 前言 微信公众号是我现在工作主要相关的系统,但是却一直没有好好地理解过。多少和我自己不喜欢微信平台有关系吧。 参考资料: 微信公众平台 一 平台开发概述 微信公众号如何识别用户? OpenID 每个用户针对每个公众号会产生一个安全的 OpenID , 用户共通 需前往微信开放平台,将这些公众号和应用绑定到一个开放平台账号下,绑定后,一个用户虽然对多个公众号和应用有多个不同的 OpenID ,但他对所有这些同一开放平台账号下的公众号和应用,只有一个 UnionID ,可以在用户管理-获取用户基本信息( UnionID 机制) 文档 了解详情。 1.1 OpenID能做什么 公众号可获得关注者的 OpenID (加密后的微信号,每个用户对每个公众号的 OpenID 是唯一的。对于不同公众号,同一用户的 openid 不同)。 公众号可通过本接口来根据 OpenID 获取用户基本信息,包括昵称、头像、性别、所在城市、语言和关注时间。(这些信息也就是微信获得的用户信息,也是微信平台的依仗) 1.2 UnionID的功能 如果开发者有在多个公众号,或在公众号、移动应用之间统一用户帐号的需求,需要前往 微信开放平台 绑定公众号后,才可利用UnionID机制来满足上述需求。

Connecting to Azure B2C, with .NET Core from behind a NGINX Proxy

馋奶兔 提交于 2019-12-02 08:30:33
Almost have this working. Almost. My set up is that I have an Azure B2C Tenant set up, and some modified example code that I've changed to reflect the Tenant information. This all works fine locally, with a localhost uri. My remote set up is a Ubuntu 16.01 server, with a Nginx 1.10.0 webserver acting as a reverse proxy to a .NET Core 1.0.4 and all with a LetsEncrypt SSL cert. The proxy serves .NET projects fine, however when I hit the sign in it takes me over to the B2C login with an incorrect redirect_url. I'd expect the value to reflect what is in the settings file, "https.sub.host.suffix

OpenID links error

两盒软妹~` 提交于 2019-12-02 07:44:33
I am trying to integrate openid authentication in asp.net 4 following this article . I have proceeded as was demonstrated in the article. The problem i face is that only openid login link works. All other links gives an error: Precondition failed.: userSuppliedIdentifier != null I have uploaded the page here . Also the openid selector from the toolbox doesn't work as i have asked here . Kindly reply. If you are following the example you referred to then in method HandleRelyingPartyRequest, change this line: var request = openid.CreateRequest(Request.Form["openid_identifier"]); to var request =

LightOpenID forbidden when redirecting back

心已入冬 提交于 2019-12-02 07:40:56
问题 I'm trying to use lightOpenID, which should be simple and a case of uploading the files then testing it works. When I use the example-google.php I get click the login button, the first time it asked me to login to Google and allow/remember the site I'm building. Then it redirects back to example-google.php?login and a load of attributes. But that page says "Forbidden. You don't have permission to access path/to/folder/example-google.php on this server." if I delete the attributes including

LightOpenID forbidden when redirecting back

ぃ、小莉子 提交于 2019-12-02 07:18:12
I'm trying to use lightOpenID, which should be simple and a case of uploading the files then testing it works. When I use the example-google.php I get click the login button, the first time it asked me to login to Google and allow/remember the site I'm building. Then it redirects back to example-google.php?login and a load of attributes. But that page says "Forbidden. You don't have permission to access path/to/folder/example-google.php on this server." if I delete the attributes including ?login in the url, then I get the "Login with Google button" so clearly I do have file permissions

获取微信用户信息

点点圈 提交于 2019-12-02 06:04:08
微信公众平台开发(76) 获取用户基本信息 本文介绍如何获得微信公众平台关注用户的基本信息,包括昵称、头像、性别、国家、省份、城市、语言。 本文的方法将囊括订阅号和服务号以及自定义菜单各种场景,无论是否有高级接口权限,都有办法来获得用户基本信息,而无需模拟登录。 在本文中,特别要注意的是有两个不同的Access Token,他们产生的方式不一样,一种是使用AppID和AppSecret获取的access_token,一种是OAuth2.0授权中产生的access_token,方倍工作室分别称为 全局Access Token 和 授权Access Token。 一、通过全局Access Token获取用户基本信息 1. 用户关注以及回复消息的时候,均可以获得用户的OpenID < xml > < ToUserName > <![CDATA[ gh_b629c48b653e ]]> </ ToUserName > < FromUserName ><![CDATA[ollB4jv7LA3tydjviJp5V9qTU_kA]]></ FromUserName > < CreateTime > 1372307736 </ CreateTime > < MsgType > <![CDATA[ event ]]> </ MsgType > < Event > <![CDATA[

浅析微信支付:商户平台开通现金红包、指定用户发放、红包记录查询

让人想犯罪 __ 提交于 2019-12-02 05:32:20
本文是【浅析微信支付】系列文章的第十三篇,主要讲解在如何开通商户平台的红包功能和为用户发放红包,以及查询发送红包记录。 浅析微信支付系列已经更新十三篇了哟~,没有看过的朋友们可以看一下哦。 浅析微信支付:(余额提现)企业付款到微信用户零钱或银行卡账户 浅析微信支付:支付验收示例和验收指引 浅析微信支付:如何使用沙箱环境测试 浅析微信支付:申请退款、退款回调接口、查询退款 上一篇文章我们说到,如果有 余额提现 、 返利福利 等需求时,就会用到商家向用户付款的操作,基于微信支付,上篇我们说了付款到用户余额和银行卡;本文来讲解如何使用现金红包的方式向用户发送 现金红包 ,首先我们来了解什么是微信的现金红包。 现金红包 现金红包,是微信支付商户平台提供的营销工具之一,上线以来深受广大商户与用户的喜爱。商户可以通过本平台向微信支付用户发放现金红包。用户领取红包后,资金到达用户微信支付零钱账户,和零钱包的其他资金有一样的使用出口; 注意:若用户未领取,资金将会在24小时后退回商户的微信支付账户中。 官方文档地址: https://pay.weixin.qq.com/wiki/doc/api/tools/cash_coupon.php?chapter=13_1 现金红包意义 微信支付现金红包因资金的承载方式为现金,一直以来深受用户的青睐,近年来的春晚中,现金红包都扮演着重要的角色

这周撸了两款小程序,分享下关键点。

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 05:12:35
本周撸了两款小程序,在这里总结下开发过程中的小经验,希望对大家有用。 小程序端 我们先说小程序要注意的地方。 ##默认入口转发问题 当一个小程序Page的js文件中存在 onShareAppMessage 方法时,可以触发转发功能,但是通过小程序开发者工具生成的模板中,入口文件的js中并没有此方法,为了发布后方便对小程序进行分享,建议在pages/index/index.js中添加。 当然默认情况下,我们需要点击小程序右上角的...才能看到转发,这样并不能对用户起到引导作用,通常的做法是使用一个button,并且设置open-type为share,这样就可以通过按钮启动分享。 但是原生按钮很难看,我们可以设置一个图片,在wxml内的代码一般如下 <button open-type="share"><image src="/images/icon-share.png"></image></button> 当然需要通过wxss将button的样式去掉,背景、边框等等,代码如下 button { padding:0; margin:0 auto; width:70rpx; height:70rpx; display:block; border:0; background: transparent; } button::after { border:0; } 尤其是对 button:

DotNetOpenId — “This message has already been processed” Error

旧街凉风 提交于 2019-12-02 04:27:46
I'm starting with OpenId using the dotnetopenid library and, so far, so good, but when I try to login, it shows me the following message: This message has already been processed. This could indicate a replay attack in progress. The first time I used my app it failed and, after that, the above message it is always returned. How can I "logout" the user that I'm using for testing or how can I can clear the request so I can login/logout? Thanks in advance! =) I found the problem, a seely problem as usual... I was calling the GetResponse more than once, and that got me error message. Sorry for the

OpenIdProvider.GetRequest() returns null

风格不统一 提交于 2019-12-02 03:47:44
问题 As somewhat of a continuation of this question, I'm having problems with dotnetopenauth. I navigate to my relying party code and create the request, however when my provider receives the request OpenIdProvider.GetRequest() returns null. I went through the code and as far as I can tell, this is because the openid payload (request.form) is not being delivered by my relying party; but I can't figure out why this is. Code: Relying Party: public ActionResult Authenticate(string RuserName = "") {