openid

Include OpenId in drupal

亡梦爱人 提交于 2019-12-05 13:28:10
i want to create a OpenId login system like stackoverflow :) in drupal..By default, drupal doesn't offer this..is there any plugin that does this job? EDIT:the user should ALSO be able to login with their yahoo, gmail, aol or blogger account..u guys can't understand my pro.. it's simple..i've openID enabled in my drupal 6. When i try to use my gmail or yahoo account, it doesn't login. What should i do for that? Yes, there's a module for that. But you added a drupal-6 tag, which suggests you're using Drupal 6; OpenID has been a core part of Drupal 6 for >2 years - it's documented in the

Connection failed for google open_id using omniauth

北战南征 提交于 2019-12-05 13:09:53
I am trying to add open-id functionality to my app, I am using omniauth and omniauth-openid gems for same. I have done the installation steps added it to initializer as middleware, require 'omniauth-openid' require 'openid/store/filesystem' Rails.application.config.middleware.use OmniAuth::Builder do provider :open_id, :store => OpenID::Store::Filesystem.new('/tmp') end and a routes for andling callback match '/auth/:provider/callback' => 'callback#myauthentication' when I try to hit this url, to connect to google provider http://[mydomain]/auth/open_id?openid_url=https%3A%2F%2Fwww.google.com

Single Sign-On with Google Apps + App Engine

江枫思渺然 提交于 2019-12-05 12:25:29
问题 Is it possible to achieve SSO with the built-in OpenId on App Engine? I've been trying to integrate a Marketplace app and get the user logged in when coming from Google Apps (the admin panel or universal navigation). I failed miserably, then now I found this: "The one exception to this is applications which do hybrid OpenID/OAuth — whitelisting does not currently work with this approach." (from here) I assume that I have to implement OpenId using a library instead of using the built-in one to

oauth 开放授权

烂漫一生 提交于 2019-12-05 11:54:21
本想前段时间就把自己通过QQ OAuth1.0、OAuth2.0协议进行验证而实现QQ登录的心得及Demo实例分享给大家,可一直很忙,今天抽点时间说下OAuth1.0协议原理,及讲解下QQ对于Oauth1.0的认证开发。闲话多说了点,下面直接进入主题。 1、OAuth的简述 OAuth(Open Authorization,开放授权)是为用户资源的授权定义了一个安全、开放及简单的标准,第三方无需知道用户的账号及密码,就可获取到用户的授权信息,并且这是安全的。(我喜欢简单明了,这里没看懂,没关系,接着往下面看) 2、OAuth的原理 (流程图) 我在图上分了四个步骤,下面是四步的讲解: 第一步:用户访问第三方网站,比如:就是你需要使用QQ进行登录的网站; 第二步:你点击QQ登录后,第三方网站将会连接并进行请求,比如:你点击登录后,第三方网站会跳转到QQ平台,提示你进行登录; 第三步:你要进行授权第三方网站对你的信息访问的一个权限,比如:当你QQ登录成功后,QQ会提示你,是否授权第三方Web访问你的用户基本信息或其他的资源信息,这时你点击授权即可; 第四步:授权后,第三方Web即可访问你刚才授权的资源信息,比如:你的QQ基本信息-头像、昵称、性别等。 通过这个原理图示及讲解(图是手工制作,有点草),相信大家都了解了OAuth这个原理的一个基本流程,若看不明白

easy-wechat

白昼怎懂夜的黑 提交于 2019-12-05 11:03:24
-------- easy-wechat 获取微信服务器 IP (或IP段) $ips = $app->base->getValidIps(); $message = $server->getMessage(); //push 的闭包外调用, 直接使用 $message 参数 回复客服消息 $message = new Text('Hello world!'); $result = $app->customer_service->message($message)->to($openId)->send(); 回复多图文消息 $news1 = new NewsItem(...); $news = new News([$news1]); $app->customer_service->message($news)->to($openId)->send(); $app->server->push(function ($message) { $news = new NewsItem(...); return new News([$news]); }); $app->customer_service //客服 $server = $app->server; $user = $app->user; $app->broadcasting 群发 $app->media 媒体操作 $app-

OpenID for rails app behind Apache

六眼飞鱼酱① 提交于 2019-12-05 07:48:33
问题 I'm trying to integrate simple OpenID authentication through Google accounts. I'm using omniauth gem and on my local development system (Win7, ruby 1.8.7-p302, rails 2.3.8, omniauth 0.1.5) everything works nice. The problem shows it's face when I deploy it to my hosting (HostGator). The app (mongrel) starts at port 12002 and through HostGator's cPanel it's configured to be rewritten from one of subdomains: RewriteCond %{HTTP_HOST} ^subdomain.mycompany.com$ [OR] RewriteCond %{HTTP_HOST} ^www

What is a good Ruby on Rails forum that can easily integrated to an existing application?

狂风中的少年 提交于 2019-12-05 07:47:34
What is a good, open source RoR 3 forum that can easily integrated to an existing application? Optional features: OpenID support Haml/SCSS templates Support for smilies, YouTube, images, etc I'm probably going to change it alot, and I'm still pretty weak in Ruby, so clean, commented code with good practices would be great. Thanks :) The Rails community has never been focused on developing Ruby/Rails forums, conversely to other languages such as PHP. The evidence of that is a really old news talking about one of the forums prototype ever produces in Rails. You can still found traces of Beast

DDD(十)--仓储

末鹿安然 提交于 2019-12-05 07:30:56
1、引言 DDD中的Repository(仓储):协调领域和数据映射层,利用类似与集合的接口来访问领域对象。——《领域驱动设计-软件核心复杂性应对之道》 仓储是DDD中产生的概念,也就是说,如果应用程序不是基于领域驱动设计的,那在设计中使用仓储是不是会有不合适的地方呢? Eric Evans 在《领域驱动设计-软件核心复杂性应对之道》定义中明确的那样:协调领域和数据映射层,两个关键字领域和数据映射层,这里面的领域是指领域模型(实体和值对象),这是桥的一头,另一头就是数据映射层,也就是我们常说的 ORM 工具。 除了这两个关键词,还有一个动词就是协调,仓储协调的是什么?怎么协调的?这个概念需要明确下,桥的一头-领域模型(主要是实体对象),这个就不多说了,桥的另一头-ORM(对象关系映射),其实仓储协调的是 ORM 中的“O”,也就是对象的概念,它是在数据映射层之上的,是一种概念,而不是一种实现。 2、DDD中的仓储 仓储代表一个聚合的集合,仓储用来存储和删除聚合,但同时提供针对聚合的显式查询以及汇总。 2.1、仓储与数据访问层的区别 仓储限定了只能通过聚合根来持久化和检索领域对象,以确保所有改动和不变性由聚合处理。 仓储通过隐藏聚合持久化和检索的底层技术实现领域层的的持久化无关性(即领域层不需要知道如何持久化领域对象)。 仓储在数据模型和领域模型定义了一个边界。 2.2、仓储举例

How to integrate openId with devise in rails 3

我与影子孤独终老i 提交于 2019-12-05 07:30:27
I'm new to rails and just got a simple devise setup working. I'm looking to implement something that still uses the core devise feature set but would allow login via openid provider rather than "register w/ email or username" How might I get started with this using the latest devise gem and rails 3? Have a look at the devise_openid_authenticatable gem. 来源: https://stackoverflow.com/questions/3700996/how-to-integrate-openid-with-devise-in-rails-3

claimsResponse Return Null

非 Y 不嫁゛ 提交于 2019-12-05 07:14:12
hello i have a following code in asp.net. i have used DotNetOpenAuth.dll for openID. the code is under protected void openidValidator_ServerValidate(object source, ServerValidateEventArgs args) { // This catches common typos that result in an invalid OpenID Identifier. args.IsValid = Identifier.IsValid(args.Value); } protected void loginButton_Click(object sender, EventArgs e) { if (!this.Page.IsValid) { return; // don't login if custom validation failed. } try { using (OpenIdRelyingParty openid = this.createRelyingParty()) { IAuthenticationRequest request = openid.CreateRequest(this.openIdBox