openid

Ruby open_id_authentication with Google OpenID

喜你入骨 提交于 2019-12-01 01:17:18
I am in my first steps of implementing OpenID in my Rails app. open_id_authentication appeared to be a fairly easy-to-use plugin, which is why I decided to use it. Logging in with my Google account seems to work perfectly, however I do not get the sreg/AX fields that I require. My code is currently as follows: class SessionsController < ApplicationController def new; end def create open_id_authentication end protected def open_id_authentication authenticate_with_open_id(params[:openid_identifier], :required => ["http://axschema.org/contact/email"]) do |result, identity_url, registration| if

Using OpenID with Zend Framework

时光怂恿深爱的人放手 提交于 2019-12-01 00:34:19
I want my website to do exactly what Stackoverflow does with openId. I'm combing through sources, and I have done this before with facebook, but not making much progress with OpenID. What I would like to do is just detect if someone has logged into Google, and if they have get some identifying information, and allow them to federate into my site. Can anyone suggest any tutorials or Code snippets, and should I use Zends Libraries ? -P /** * SM's code library * * @category * @package * @subpackage * @copyright Copyright (c) 2009 Pavel V Egorov * @author Pavel V Egorov <epavel@gmail.com> * @link

DotNetOpenAuth OpenID Flow w/ Own Auth Server

懵懂的女人 提交于 2019-12-01 00:08:53
I'm having a lot of difficulty finding answers to a scenario I have to implement using DotNetOpenAuth and a particular flow I have to deal with. In the graphic below I am in control of both the MVC site and API. The API is both my Authorisation server and my Resource Server. Username and Password Flow The process is fairly obvious in a case where the user has created a local account on my system as I'm dealing with user name and password credetials to log them into the site which I can then pass to my Token endpoint and subequently pass to the HandleTokenRequest of my authorisation server in

DotNetOpenAuth: Message signature was incorrect

六眼飞鱼酱① 提交于 2019-11-30 23:51:11
问题 I'm getting a "Message signature was incorrect" exception when trying to authenticate with MyOpenID and Yahoo. I'm using pretty much the ASP.NET MVC sample code that came with DotNetOpenAuth 3.4.2 public ActionResult Authenticate(string openid) { var openIdRelyingParty = new OpenIdRelyingParty(); var authenticationResponse = openIdRelyingParty.GetResponse(); if (authenticationResponse == null) { // Stage 2: User submitting identifier Identifier identifier; if (Identifier.TryParse(openid, out

How can an application server associate Google accounts to a user's device?

谁说我不能喝 提交于 2019-11-30 23:14:51
I want users to be able to enter data from a web server and/or native PC app and transfer it to their chosen Android device in much the same way that Google Play's install on device works. I'd like to use the user's Google account authentication to establish a link between the application server and the user's Android device that registered with GCM. I couldn't find any mention of how to handle this kind of authentication in the Google Cloud messaging API documentation , but did find this unanswered question in the GCM forums. I'd like to authenticate users from a web application via the his

授权登录

心已入冬 提交于 2019-11-30 21:56:15
后台代码,只是个人练习,仅供参考        仅供参考    //授权登录 public function login() { $redirect_uri = urlencode("http://www.xxxx.com/show");//自己的域名地址 $url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=".env("APPID")."&redirect_uri=$redirect_uri&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"; //接口地址 并补充信息 header('location:'.$url); } //跳转地址 public function show() { return view('wechat.show'); } //授权获取code public function code(Request $request) { $data = $request->all(); $code = $data['code']; // dd($code); $url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=".env(

Overriding TokenEndPoint in AspNet.Security.OpenIdConnect.Server

99封情书 提交于 2019-11-30 21:43:16
question related to this post here: Configure the authorization server endpoint . Using the above example I am able to get token. previously it was possible to get additional information by over riding public override Task TokenEndpoint(OAuthTokenEndpointContext context) { foreach (KeyValuePair<string, string> property in context.Properties.Dictionary) { context.AdditionalResponseParameters.Add(property.Key, property.Value); } return Task.FromResult<object>(null); } how do you achieve that in the current implementation of public override Task TokenEndpoint(TokenEndpointContext context){ }

Zend framework user authentication integration with Twitter and Facebook

有些话、适合烂在心里 提交于 2019-11-30 19:41:16
Is there any script based on ZF, which supports normal user signup/login system, along with user authentication throuh Twitter and Facebook. Have a look at An example of OpenID, Facebook and Twitter authentication in Zend Framework 1.11 . Altough, the application does not show how to use normal user authentication (it was not the purpose of it) it shows one way of using OpenID (Google, Yahoo, MyOpenId, AOL, OpenId) as well as Facebook Connect and Twitter Oauth for authentication of users. This is more difficult to do in ZF than regular user authentication. Don't know about twitter but you can

微信授权登陆

折月煮酒 提交于 2019-11-30 19:35:18
package com.ctrl.aWxSpLogin; import com.alibaba.fastjson.JSONObject; import com.ctrl.mobile.respUtils.HttpUtil; import com.thinkgem.jeesite.common.config.Global; import java.util.HashMap; import java.util.Map; /** * @Author LiPeiMin * @Description //TODO * @Date 11:52 2019/11/18 **/ public class SpLogin { /** * 开发者设置中的appId */ private static String appId; /** * 开发者设置中的appSecret */ private static String secret; static { try { appId = Global.getConfig("sp.appId"); secret = Global.getConfig("sp.secret"); } catch (java.lang.Exception e) { e.printStackTrace(); } } /** * @return com.alibaba.fastjson

Google OpenId: No OpenID endpoint found (intermittent)

杀马特。学长 韩版系。学妹 提交于 2019-11-30 19:34:35
Usually using the Google OpenId works fine, thousands of times a day, then it will start intermittently going wrong and timing out for an hours or so (some requests will validate but not all). Repeated validation will eventually work. Error messages are: Event code: 200000 Event message: No OpenID endpoint found. : https://www.google.com/accounts/o8/id Sequence contains no elements Adding in log4net yields: DotNetOpenAuth.Yadis: Error while performing discovery on: "https://www.google.com/accounts/o8/id": DotNetOpenAuth.Messaging.ProtocolException: Error occurred while sending a direct message