如果我们从https://www.google.com/accounts/o8/id或雅虎获取它是http://me.yahoo.com 。其他人如何找到这些信息。
2 回答
你可以在js文件中有这样的东西..
var defaultProviders = {
google: {
name: 'Google',
url: 'https://www.google.com/accounts/o8/id',
hasLargeIcon: true
},
yahoo: {
name: 'Yahoo',
url: 'http://me.yahoo.com/',
hasLargeIcon: true
},
aol: {
name: 'AOL',
label: 'Enter your AOL screenname:',
url: 'http://openid.aol.com/{username}',
hasLargeIcon: true
},
myopenid: {
name: 'MyOpenID',
label: 'Enter your MyOpenID username:',
url: 'http://{username}.myopenid.com/',
hasLargeIcon: true
},
openid: {
name: 'OpenID',
url: 'http://',
hasLargeIcon: true
},
livejournal: {
name: 'LiveJournal',
label: 'Enter your Livejournal username:',
url: 'http://{username}.livejournal.com/',
hasLargeIcon: false
},
wordpress: {
name: 'Wordpress',
label: 'Enter your Wordpress.com username:',
url: 'http://{username}.wordpress.com/',
hasLargeIcon: false
},
blogger: {
name: 'Blogger',
label: 'Enter your Blogger account:',
url: 'http://{username}.blogspot.com/',
hasLargeIcon: false
},
verisign: {
name: 'Verisign',
label: 'Enter your Verisign username:',
url: 'http://{username}.pip.verisignlabs.com/',
hasLargeIcon: false
},
claimid: {
name: 'ClaimID',
label: 'Enter your ClaimID username:',
url: 'http://openid.claimid.com/{username}',
hasLargeIcon: false
},
clickpass: {
name: 'ClickPass',
label: 'Enter your ClickPass username:',
url: 'http://clickpass.com/public/{username}',
hasLargeIcon: false
}
};
不止一次username
可用,您可以使用以下代码创建完整的 URL...`function (event) { var cancel = true; var val = $('input[type=text]', username).val(); if (val.length > 0) { var pvd = providers[selectedId]; if (pvd) { _setLoading(true, true); var url = pvd.url.replace('{username}', val); _setOpenIdUrl(url); _setCookie(selectedId); alert("网址为:"+url);
input.get()[0].form.submit(); } } if (cancel) { event.preventDefault(); }
};' 这将在大多数情况下工作....
转到有问题的网站并查看他们的文档。没有权威的或完整的 OP 标识符列表。