IRC Log for #openid on 2007-01-02
Timestamps are in UTC.
- [00:49:45] * hikari_esblogger (n=hikari_e@host86-144-22-83.range86-144.btcentralplus.com) Quit (kornbluth.freenode.net irc.freenode.net)
- [00:49:45] * don-o (n=donp@206.163.122.98) Quit (kornbluth.freenode.net irc.freenode.net)
- [00:49:45] * GabeW (i=gwachob@pdpc/supporter/professional/GabeW) Quit (kornbluth.freenode.net irc.freenode.net)
- [00:49:50] * don-o (n=donp@206.163.122.98) has joined #openid
- [00:49:50] * GabeW (i=gwachob@redbox.copaseticnet.com) has joined #openid
- [00:50:30] * hikari_esblogger (n=hikari_e@host86-144-22-83.range86-144.btcentralplus.com) has joined #openid
- [02:05:51] * hikari_esblogger (n=hikari_e@host86-144-22-83.range86-144.btcentralplus.com) Quit (Remote closed the connection)
- [02:05:53] * GabeWE61 (n=GabeWE61@c-24-7-37-8.hsd1.ca.comcast.net) has joined #openid
- [02:13:06] * GabeWE61 (n=GabeWE61@c-24-7-37-8.hsd1.ca.comcast.net) Quit ("jmIrc destroyed by the OS")
- [02:16:14] * Skwid_ (n=Skwid___@bas1-montreal42-1242353202.dsl.bell.ca) Quit ("Quitte")
- [02:44:20] * Skwid_ (n=Skwid___@bas1-montreal42-1242353202.dsl.bell.ca) has joined #openid
- [03:11:43] * SamRose (n=chatzill@c-71-197-25-180.hsd1.mi.comcast.net) Quit (Remote closed the connection)
- [06:10:47] * Skwid_ (n=Skwid___@bas1-montreal42-1242353202.dsl.bell.ca) Quit ("Quitte")
- [06:17:35] * hober (n=ted@unaffiliated/hober) Quit ("ERC Version 5.1.3 (IRC client for Emacs)")
- [06:32:29] * mtearle (n=mtearle@dsl-58-6-16-101.wa.westnet.com.au) Quit (Remote closed the connection)
- [08:55:04] * lucasvo (n=lucasvo@wservices.ch) has joined #openid
- [08:55:09] <lucasvo>
hi
- [08:56:21] <lucasvo>
someone can help me with my openid implementation in python?
- [09:07:01] * nightfreak (n=odeiko@p57A0FD02.dip.t-dialin.net) has joined #openid
- [09:17:32] <lucasvo>
I've been using this: http://svn.zyons.python-hosting.com/trunk/zilbo/common/openid/views.py
- [09:17:59] <lucasvo>
but I get the error that req.token does not exist
- [09:18:23] <lucasvo>
req = consumer.Consumer( store= getStore(), session = get_session(request)).begin(openid_url)
- [09:29:32] * nightfreak_ (n=odeiko@p57A0CE1F.dip.t-dialin.net) has joined #openid
- [09:46:52] * nightfreak (n=odeiko@p57A0FD02.dip.t-dialin.net) Quit (Read error: 110 (Connection timed out))
- [09:49:49] * nightfreak_ (n=odeiko@p57A0CE1F.dip.t-dialin.net) Quit (Remote closed the connection)
- [09:50:33] * nightfreak (n=odeiko@p57A0CE1F.dip.t-dialin.net) has joined #openid
- [14:17:54] * Skwid_ (n=Skwid___@74.12.206.50) has joined #openid
- [15:11:42] * nightfreak (n=odeiko@p57A0CE1F.dip.t-dialin.net) Quit ("Ex-Chat")
- [16:10:29] * hikari_esblogger (n=hikari_e@host86-128-45-57.range86-128.btcentralplus.com) has joined #openid
- [16:48:04] * PatF (n=Patrick@c-67-177-32-91.hsd1.ut.comcast.net) has joined #openid
- [16:53:43] * Skwid_ (n=Skwid___@74.12.206.50) Quit ("Quitte")
- [17:02:26] * PatF (n=Patrick@c-67-177-32-91.hsd1.ut.comcast.net) Quit (Read error: 104 (Connection reset by peer))
- [17:17:31] * Skwid_ (n=Skwid___@bas1-montreal42-1242353202.dsl.bell.ca) has joined #openid
- [17:34:52] * PatF (n=Patrick@c-67-177-32-91.hsd1.ut.comcast.net) has joined #openid
- [18:33:07] * cygnus (n=cygnus@c-71-236-228-127.hsd1.or.comcast.net) has joined #openid
- [18:33:08] <jibot>
cygnus is WorkerBee(name="Jonathan Daugherty", company="JanRain, Inc.")
- [18:37:04] <don-o>
for an identity provider, does it make sense to sore just the 'username' portion of the openid
- [18:37:41] <don-o>
so that if the url ever changed, say dono.myopenid.com to dono.youropenid.com, the database doesnt have to change.
- [18:38:35] <don-o>
s/database/contents of the database/
- [18:38:49] <don-o>
s/sore/store
- [18:44:51] * PatF (n=Patrick@c-67-177-32-91.hsd1.ut.comcast.net) Quit (Read error: 104 (Connection reset by peer))
- [19:02:27] * PatF (n=Patrick@c-67-177-32-91.hsd1.ut.comcast.net) has joined #openid
- [19:12:32] * aconbere|work (n=aconbere@mail.geonerco.com) has left #openid
- [19:41:59] <GabeW>
don-o: there is no concept of a "username"
- [19:42:10] <cygnus>
well, that's an implementation detail.
- [19:42:17] <GabeW>
you can make no assumption about the form of a openid URL or XRI
- [19:42:18] <chowells79>
Also, that doesn't really make sense.
- [19:42:25] <cygnus>
I don't think you *should* anticipate your domain name changing, as that is going to hurt a lot of users, no?
- [19:42:30] <GabeW>
well
- [19:42:32] <GabeW>
hehe
- [19:42:38] <chowells79>
Who's to say that chowells.myopenid.com is chowells.otherdomain.com?
- [19:42:53] <GabeW>
if your domain name changes, you lose your identity
- [19:42:56] <chowells79>
Well, my name is perhaps too unique...
- [19:43:15] <chowells79>
Even worse... why would you assume jsmith.myopenid.com is jsmith.pip.verisignlabs.com?
- [19:43:36] <chowells79>
There's likely more than one person name jsmith out there.
- [19:43:51] <GabeW>
unless you use an iname - where if someone else gets your iname, they won't get your inumber..
- [19:44:45] <don-o>
the implementation that im looking for is if the server is started on a different port, it will auth the URL ID for http://localhost:current_port/openid/username
- [19:45:19] <don-o>
i agree that could be a bad design strictly speaking as now the server will 'okay' a whole range of URLs
- [19:45:34] <cygnus>
don-o: I think it's best to just infer the username from the URL, based on a well-defined pattern for your application. and of course, you won't respond to just *any* URL pattern.
- [19:47:35] <don-o>
right. although id go with comparing fully constructed urls rather than deconstructing the given url.
- [19:48:38] * brianellin (n=brianell@c-71-236-228-127.hsd1.or.comcast.net) has joined #openid
- [19:48:39] * don-o goes to lunch
- [19:51:44] * Skwid_ (n=Skwid___@bas1-montreal42-1242353202.dsl.bell.ca) Quit ("Quitte")
- [20:00:52] * Skwid_ (n=Skwid___@bas1-montreal42-1242353202.dsl.bell.ca) has joined #openid
- [20:17:26] <_keturn>
woahey
- [20:18:05] <_keturn>
somehow I either never knew or completely forgot about @freeid. Which is odd, because I've been keeping my eyes open for someone to do that for a while now
- [20:18:09] <_keturn>
and apparently it happened several months ago
- [20:22:45] <cygnus>
_keturn: what is that?
- [20:23:20] <_keturn>
http://linksafe.wordpress.com/2006/09/19/get-a-free-i-name-from-linksafe/ , linksafe is giving away @freeid*blah i-names
- [20:24:00] <GabeW>
really>
- [20:24:02] <GabeW>
really?
- [20:24:08] <GabeW>
you guys didn't know about that?
- [20:25:18] * _keturn consults his external memory
- [20:25:43] <GabeW>
wow
- [20:25:49] <GabeW>
yes, thats the first one
- [20:26:10] <_keturn>
Aug 15 10:29:52 <_keturn> huh. Anyone heard of freeid.net, aka @freeid? Kaliya and google's cache seem to suggest that they're handing out free i-names under the @freeid community, but they don't seem to be much online at the moment.
- [20:26:13] <GabeW>
I'd expect more - its really easy to give away free inames if you don't care about getting iservices from a delegator as well
- [20:26:21] <GabeW>
heh
- [20:26:36] <GabeW>
i'm not sure freeid.net has anything to do with @freeid
- [20:26:55] <GabeW>
oh apparently it may
- [20:27:43] <don-o>
are iNames getting any traction on the intarwebs?
- [20:28:11] * don-o understands very little about i-names
- [20:28:50] <cygnus>
the internet is a series of tubes.
- [20:29:10] <don-o>
poker chips clog the tubes
- [20:29:25] <cygnus>
quite often, yes.
- [20:30:11] <_keturn>
I know it should be pretty easy, which is why I've been waiting for someone to do it to steal attention from the "man $20 you guys have got to be kidding" complaint
- [20:30:45] <GabeW>
well, the issue is that the expectation has been set up that all inames come with iservices
- [20:31:01] <GabeW>
and so you've got to provide SSO, contact, and forwarding at the "global" level
- [20:31:34] <GabeW>
but there's no requirement to do that beyond the "global" (top) level
- [20:32:23] <GabeW>
we're going to release an open source iservices package in java (using python for the openid SSO/Auth because there hasn't been a java OP until very recently)
- [20:32:31] <GabeW>
we (amsoft)
- [20:32:59] <GabeW>
but you don't need to set up anything other than an openid auth service endpoint to use with openid
- [20:39:39] * GabeW writes for the openid irc log ;-)
- [20:57:25] <lucasvo>
hi
- [20:57:34] <lucasvo>
someone familiar to the python library for openid?
- [20:58:24] <lucasvo>
I try to get it to work with django
- [21:00:49] * nasum (n=nasum@c-71-198-94-221.hsd1.ca.comcast.net) has joined #openid
- [21:01:17] * nasum (n=nasum@c-71-198-94-221.hsd1.ca.comcast.net) Quit ("Leaving")
- [21:04:21] <GabeW>
i am not terribly famliar with it, but the janrain guys are - cygnus, _keturn?
- [21:04:33] * Skwid_ (n=Skwid___@bas1-montreal42-1242353202.dsl.bell.ca) Quit ("Quitte")
- [21:05:29] <_keturn>
sure. what's up?
- [21:08:59] <lucasvo>
keturn: I am trying to adapt this code to my software: http://svn.zyons.python-hosting.com/trunk/zilbo/common/openid/
- [21:12:58] * hikari_esblogger (n=hikari_e@host86-128-45-57.range86-128.btcentralplus.com) Quit (Remote closed the connection)
- [21:13:11] * hikari_esblogger (n=hikari_e@host86-128-45-57.range86-128.btcentralplus.com) has joined #openid
- [21:13:53] <lucasvo>
_keturn: on line 79 it calls req.token
- [21:13:56] <lucasvo>
which doesn't exist
- [21:14:10] <sanedragon>
aha, old code.
- [21:14:46] <lucasvo>
sanedragon: my openid library is old or the django implementation?
- [21:15:08] <sanedragon>
no, the implementation is for an old lib version
- [21:15:13] <lucasvo>
oh, ok
- [21:15:32] <lucasvo>
I am talking about vies.py
- [21:15:36] <lucasvo>
*views.py
- [21:15:40] <lucasvo>
sanedragon: what do I have to change?
- [21:15:45] <sanedragon>
cygnus should be able to help you with some better django openid code
- [21:15:56] <sanedragon>
I'm a rails guy myself
- [21:16:04] <lucasvo>
oh, ok thanks anyway!
- [21:16:25] <lucasvo>
cygnus: sanedragon told me that you have good django openid code? can I use it?
- [21:17:08] * cygnus returns and reads scrollback
- [21:17:32] <lucasvo>
there's not much to scroll back :)
- [21:18:34] <cygnus>
lucasvo: check out http://darcs.cprogrammer.org/public/parsed.org/parsed/apps/main/views/__init__.py, see the "login" function, about 2/3 down.
- [21:19:07] <lucasvo>
cygnus: can I put this into the wiki article about openid in django?
- [21:19:20] <cygnus>
the URL?
- [21:19:48] <lucasvo>
yes
- [21:19:54] <cygnus>
hmm, I'd rather not. it might change, or go away, or I might decide the code is ugly. :)
- [21:20:16] <cygnus>
lucasvo: I recommend you extract the bits that you need, clean them up as you see fit, and include that instead.
- [21:20:36] <cygnus>
I intend to keep that source up to date with the latest python openid library, but at any rate, the code might not live there forever.
- [21:20:59] <lucasvo>
ok
- [21:21:14] <lucasvo>
cygnus: what's responseWrapper()?
- [21:21:17] <cygnus>
lucasvo: ... it's also worth pointing out that that code is for 0.91.
- [21:21:40] <cygnus>
lucasvo: a big decorator to make django views nicer. it basically just lets you return ("template_name", {template_context: ...}) from your views.
- [21:21:55] <cygnus>
rather than messing with template rendering directly.
- [21:22:11] <cygnus>
but responseWrapper lives in that module, too.
- [21:22:38] <cygnus>
lucasvo: and furthermore, I'm confident that with a little diligence, the openid bits could be ripped out, generalized, and made into a nice little app mixin.
- [21:23:34] <lucasvo>
cygnus: I am not that familiar with django and python and have a hard time reading your code, because I never used 0.91
- [21:23:51] <cygnus>
it's not much different. it mostly differs in how the ORM works (how database stuff is done).
- [21:24:30] <lucasvo>
can you take a look at: http://svn.zyons.python-hosting.com/trunk/zilbo/common/openid/views.py ?
- [21:24:36] <lucasvo>
how much would I have to change?
- [21:24:41] <cygnus>
my point is just that if you want to post that code to a public forum, just be sure to tell people that it's for 0.91, or update it if it needs updating.
- [21:24:58] * cygnus looks
- [21:28:22] <cygnus>
lucasvo: Consumer(session, store) (not Consumer(store, session)). remove usage of req.token (as mentioned before.) -- so, use an ordinary return_to, since state is maintained in the session. update process() so the session is passed to Consumer(), too, and remove usage of 'token'. otherwise, I think it's basically done.
- [21:31:27] * hikari_esblogger (n=hikari_e@host86-128-45-57.range86-128.btcentralplus.com) Quit (Read error: 110 (Connection timed out))
- [21:40:26] <lucasvo>
cygnus: you mean this: info = oidconsumer.complete(request.GET,get_session(request) )
- [21:40:40] <lucasvo>
on line 125?
- [21:44:02] <lucasvo>
cygnus: the problem is, get_session(request) returns: id:'none'
- [21:44:11] <lucasvo>
s/returns/is/g
- [21:47:34] <cygnus>
no, you only pass the request to .complete() (not the session).
- [21:47:58] <cygnus>
pass the session to the constructor: oidconsumer = consumer.Consumer(request.session, store)
- [21:51:06] <lucasvo>
complete() takes exactly 3 arguments (2 given)
- [21:51:59] <cygnus>
lucasvo: what version of the python openid library are you using?
- [21:53:30] * cygnus inspects your views.py
- [21:53:44] <cygnus>
looks like you are using an older library
- [21:53:52] <cygnus>
(judging by the error.)
- [21:54:08] <cygnus>
you should get version 1.2.0 at http://www.openidenabled.com/openid/libraries/python/
- [21:57:04] <lucasvo>
cygnus: where can I find out the version?
- [22:00:21] <cygnus>
I think you can find it in the setup.py that came with the original tarball.
- [22:00:42] <cygnus>
but at any rate, that call signature indicates your lib is old.
- [22:04:36] <lucasvo>
cygnus: ok, I'll tell my isp
- [22:06:13] <_keturn>
at some point along the line we added a openid.__version__ attribute
- [22:06:23] <cygnus>
lucasvo: they might not be able or willing to upgrade, if others are relying on it
- [22:06:45] <cygnus>
lucasvo: you can install the package in your own account and adjust the python search path, if you want
- [22:17:24] <lucasvo>
cygnus: I requested it, so I guess the will upgrade
- [22:19:01] * Skwid_ (n=Skwid___@ip216-239-75-74.vif.net) has joined #openid
- [22:19:16] <lucasvo>
_keturn: you were right: complete() takes exactly 3 arguments (2 given)
- [22:19:27] <lucasvo>
oh, wrong pastebuffer
- [22:19:32] <lucasvo>
__version__ = '[library version:1.2.0]'[17:-1]
- [22:19:54] <lucasvo>
cygnus: so it is up to date
- [22:21:47] <cygnus>
then, either 1) you have an old lib that is getting loaded first or 2) somehow you are calling complete() on the GenericConsumer object
- [22:21:59] <cygnus>
lucasvo: is the code at svn.zyons.python-hosting.com up to date?
- [22:22:21] <cygnus>
brb
- [22:22:50] <lucasvo>
cygnus: this is actually not my code, I copied it from there
- [22:22:57] <lucasvo>
I will paste my code somewhere
- [22:23:49] <lucasvo>
cygnus: you have bzr?
- [22:24:01] <lucasvo>
cygnus: http://bazaar.launchpad.net/~djangoforge-devs/djangoforge/trunk/
- [23:15:33] * hober (n=ted@unaffiliated/hober) has joined #openid
- [23:42:08] * brianellin (n=brianell@c-71-236-228-127.hsd1.or.comcast.net) Quit ("Leaving")
- [23:43:12] * Skwid_ (n=Skwid___@ip216-239-75-74.vif.net) Quit (Remote closed the connection)
- [23:48:00] * SamRose (n=chatzill@brick.voyager.net) has joined #openid
- [23:50:24] * Skwid_ (n=Skwid___@ip216-239-75-74.vif.net) has joined #openid
- [23:57:47] * whateley (n=whateley@S01060013463ece73.ed.shawcable.net) has joined #openid
These logs were automatically created by OpenIDlogbot on
chat.freenode.net
using a modified version of the Java IRC LogBot.