谷歌是否为本地主机生成新的openid声明的标识符? [英] Is google generating new openid claimed identifier for localhost?

查看:71
本文介绍了谷歌是否为本地主机生成新的openid声明的标识符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个与Google openid标识符有关的问题. 我在简单的asp.net mvc项目中使用dotnetopenauth库(dotnetopenid的后继者). 在localhost上进行测试时,我注意到google会不时生成新的声明标识符.这是为什么?仅仅是localhost吗?在不同的提供商(例如Yahoo)中,一切看起来都很好

I am running an issue with google openid identifier. I am using dotnetopenauth library (successor of dotnetopenid) in simple asp.net mvc project. During tests on localhost I noticed that from time to time google generates new claimed identifier. Why is that? Is it just with localhost? Everything looks okay with different providers (like Yahoo)

推荐答案

Google OP为每个用户-RP领域组合创建一个唯一且看起来匿名"的声明标识符. (不是 基于域,而是整个RP领域,或者至少比域更多).端口号是领域URI的一部分,因此,如果VS可以在没有警告的情况下偶尔更改localhost上的站点的端口号,则您声明的ID也会更改.另外,如果您设置站点以使您的Claim_id在开发中成为管理员",由于领域会有所不同,因此它在生产环境中将不是正确的admin Claim_id.

Google OP creates a unique and "anonymous"-looking Claimed Identifier for each user-RP Realm combination. (it is not based on the domain, but the full RP realm, or at least more of it than just the domain). Port number is part of the realm URI, so if your site on localhost changes port numbers occasionally as VS can do without warning, your claimed id will change. Also, if you set up your site to make your claimed_id an "admin" in development, it won't be the correct admin claimed_id in production since the realm will be different.

这篇关于谷歌是否为本地主机生成新的openid声明的标识符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆