openid

Do the Google and Yahoo implementations of OpenID respect the “required” attribute?

笑着哭i 提交于 2019-12-11 12:42:04
问题 I would like to use OpenID (PHP and LightOpenID) to get the following user information: $openid->required = array( 'namePerson', 'namePerson/first', 'namePerson/last', 'contact/email', 'person/guid', 'birthDate/birthYear', 'birthDate/birthMonth', 'birthDate/birthday', 'gender', ); However, I found that both Yahoo and Google return only the following data: Array ( [namePerson] => abc [contact/email] => abc@example.com ) Is there something wrong with my code? Can I force Google and Yahoo to

「从模板消息改版订阅消息」小程序推送

北城以北 提交于 2019-12-11 09:06:09
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 前言 只有光头才能变强。 文本已收录至我的GitHub精选文章,欢迎Star : https://github.com/ZhongFuCheng3y/3y 如果近期有看我文章的同学,会知道我最近在公司做的是 推送系统 。推送系统在我这也叫做 消息管理平台 ,其实很容易理解:提供一个支持多渠道发送消息的系统。 推送系统支持的渠道 在前段时间,微信公布: 小程序模板消息接口将于2020年1月10日下线,开发者可使用订阅消息功能 。 底层接口的变动,对程序员来说意味着什么,你懂的。 人在家中坐,班从天上来 本篇文章主要来聊聊我这边是怎么发送小程序消息的,以及改版后的简单介绍,希望对大家有帮助。 本文不涉及任何的高深知识,放心观看。 一、前置知识 发送小程序消息其实很简单,微信提供了 微信官方文档 供我们开发者去查阅相关的基础知识,提供HTTP接口给我们去方便调用: 微信文档 对开发者来说,发送小程序消息总结来说就三步: 在微信后台创建模板 获取下发的权限 调用发送接口,发送消息 无论是以前的 模板消息 ,还是现在新的 订阅消息 ,步骤都是一样的。 二、模板消息和订阅消息的区别 为什么微信要把模板消息下线,要上线订阅消息呢?我们从发送小程序的步骤来看,只有“ 获取下发的权限 ”是可动的,其余的两步都是相同的。

Should I cache the XRDS file returned in openid?

喜欢而已 提交于 2019-12-11 07:23:55
问题 In the initial part of the openid sequence, I request the OP (e.g. Yahoo.com) and get back the XRDS file which tells me the actual URL I need to use for the rest of the openid process. So, can I cache this initial file. E.g. if I have hundreds of users using a Yahoo openid, I would only have to do the initial fetch once every hour? 回答1: Yes, the OpenID spec does not forbid discovery caching, and most OpenID-enabled sites do just that. Of course the duration you cache discovery results should

Using OpenID for both .NET/Windows and PHP/Linux/Apache web sites

假如想象 提交于 2019-12-11 06:38:27
问题 Is it possible to use OpenID for both .NET web sites and PHP websites (Apache/Linux)? I have a manager that wants single sign-on for access to any/all web sites, regardless of which web server hosts a web site . I create .NET web apps and the PHP web sites/apps are done by another programmer. How would I go about using OpenID for a .NET web app? What about for the PHP programmer? 回答1: For .NET: http://code.google.com/p/dotnetopenid/ For PHP: http://openidenabled.com/php-openid/ 回答2: You can

Get redirect link from client in IdentityServer3 login page

给你一囗甜甜゛ 提交于 2019-12-11 06:17:35
问题 I would like to get redirectUrl from a client in Identity in IdentityServer3 in the login page. for EX: I have a "localhost:54483/payments/5466cdaa-2005-4947-b4dc-cc6a49b83dfd/checkout" link when I hit it , I will be redirected to a login page in IndentityServer and I need to get redirect link above (http://localhost:54483/payments/5466cdaa-2005-4947-b4dc-cc6a49b83dfd/checkout) in public class CustomViewService: DefaultViewService { private gtoken _gtoken; public CustomViewService

how to make it easy for users to register at my site?

旧巷老猫 提交于 2019-12-11 06:17:11
问题 I want to make it dirt simple for users coming to my site to register so they can post comments, vote on things, etc. I would like for them to be able to use their facebook id, twitter id, yahoo mail id, gmail id, AIM id, msn id, or whatever else people are likely to have (not necessarily all of those, but the more the better). I want my mom to be able to do it in 30 seconds or less. (that is, no "enter your open id url here" type thing that would confuse her). I prefer they not have to pick

DotNetOpenAuth get email and redirect problem

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 06:07:55
问题 i am trying to setup DotNetOpenAuth using the OpenIdAjaxTextBox but i have two problems i want to be able to get the users email address and i think that is done in the loggedin event (right?) but that event is never called, i have tried to setup a breakpoint there but i never get to it. when I type in the openid provider in the OpenIdAjaxTextBox (lets say Gmail), I get the login button in the textbox so I click on it a new windows pops up and displayes the Gmail login form but after that i

Store OpenID endpoint, OP-Local Identifier and realm?

一曲冷凌霜 提交于 2019-12-11 05:09:32
问题 I'm about to create a datatbase table to store OpenID logins. I think I will include these three columns, in addition to the Claimed Identifier: The OpenID endpoint The OP-Local Identifier The realm The OpenID version (1 or 2) Do you store these fields? Do you think it's reasonable to store these fields?, for the following reasons: The OpenID endpoint: So you know which OpenID Provider authenticated the user. Perhaps in the future you'll find out that one provider is not so very trustworthy,

Python - How to request pages from website that uses OpenID

社会主义新天地 提交于 2019-12-11 04:19:20
问题 I'm writing a python script that scrapes a website, where the website uses OpenID auth to identify me via google. Is there a python library that will handle do this for me, or do I need to find out and replicate the steps that my browser already does? Otherwise, is there some standard way of doing this in some other language? 回答1: From the client's perspective, an OpenID login is very similar to any other web-based login. There isn't a defined protocol for the client; it is an ordinary web

Rails OpenID Authentication Plugin No Longer Installs Rake Tasks?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 03:43:05
问题 I'm following the Railscasts tutorial on using OpenID with AuthLogic. This command: $ script/plugin install git://github.com/rails/open_id_authentication.git installs the plugin, but I don't see any OpenID Rake tasks (rake -T). In particular, I can no longer run the task: $ rake open_id_authentication:db:create With previous applications, the Rake tasks were installed without a problem, so what's changed with the plugin? Which version of the plugin do I need to get the behavior I'm looking