Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-08-13 01:29:54
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
OpenID and TypeKey support for Textpattern
Over the past fortnight I’ve been working on adding support for TypeKey and OpenID to Textpattern. Today I’d like to release these modifications for public examination and testing.
What do these improvements give you?
- Support for authenticated comments. Your readers can log in with an OpenID or TypeKey identity to leave authenticated comments. You can choose to allow authenticated comments to bypass moderation.
- OpenID producer support. For those not familiar with OpenID, producer support in Textpattern allows you to use your Textpattern site to log in on other OpenID consumer sites, like LiveJournal, and leave authenticated comments or access other features. OpenID is a distributed identity system, which allows you to electronically attest that you own a given URL.
So, that’s it in a nutshell. You can view a demo site and test the OpenID consumer support at: http://www.raschke.net/~kurt/txp_test/.
If you run in to any errors, or see any areas which need improvement, please let me know.
If you’d like to try running the code on your own site, it can be found in a Subversion repository at http://www.raschke.net/svn/textpattern/trunk/. Look at http://www.raschke.net/svn/textpattern/trunk/README.txt for more information on getting the code running.
For more information you can see this post to the OpenID mailing list.
Finally, a few potential FAQs:
Q: Will it run on TextDrive?
A: I don’t know. Does TextDrive have PHP compiled with GMP?
Q: Will it run on Windows?
A: It should, but I have not been able to test on a Windows server.
I’d like to reiterate that this release is mainly for experienced PHP programmers who don’t mind debugging if things go wrong. I must advise against running this release on a production site, as I have only been able to test it on my own server, so I can’t say how it will behave on your web host.
Last edited by KurtRaschke (2005-08-30 23:20:08)
kurt@kurtraschke.com
Offline
Re: OpenID and TypeKey support for Textpattern
Q: Will it run on TextDrive?
A: I don’t know. Does TextDrive have PHP compiled with GMP?
Indeedly doodly.
text*
Offline
#3 2005-08-13 10:49:54
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: OpenID and TypeKey support for Textpattern
Indeedly doodly.
Good. Incidentally, the code should also run with BCMath, but the BCMath functions tend to be much slower, so it’s not recommended.
-Kurt
Last edited by KurtRaschke (2005-08-13 10:58:23)
kurt@kurtraschke.com
Offline
#4 2005-08-13 11:44:27
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: OpenID and TypeKey support for Textpattern
This looks like great stuff. Just FYI, from oidsrv.php:
# Copyright (c) 2005 JP Sugarbroad
# Permission is granted to use this in any way you want, provided that you
# include the above copyright notice (or one with similar effect) in any work
# including non-trivial parts of this one.
That’s not quite GPL compatible.
Alex
Offline
#5 2005-08-13 11:58:38
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: OpenID and TypeKey support for Textpattern
Alex, I am not entirely sure about that (but I could be wrong). The MIT license, which is GPL-compatible, contains the following line:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
Now, I would argue that that has the same effect as the language above, and that’s how I interpreted it. I don’t see any resemblance to the onerous BSD advertising clause. The revised BSD license, which also includes language similar to the passage quoted above, is also GPL-compatible.
If I am wrong about this, please let me know—I am not a lawyer, just the son of two lawyers.
-Kurt
Last edited by KurtRaschke (2005-08-13 12:02:59)
kurt@kurtraschke.com
Offline
#6 2005-08-13 12:03:10
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: OpenID and TypeKey support for Textpattern
Yes, on second thoughts I think you’re right – I was thinking that looked like advertising clause, but it probably isn’t.
Don’t mean to be alarmist, just figured it was better to sort it out sooner than later.
Alex
Offline
Re: OpenID and TypeKey support for Textpattern
Anyone has tested this ? Seems like a good idea to me…
Offline
Re: OpenID and TypeKey support for Textpattern
Kurt, does this work with 4.0.4?
Offline
#9 2006-11-21 21:18:31
- KurtRaschke
- Plugin Author
- Registered: 2004-05-16
- Posts: 275
Re: OpenID and TypeKey support for Textpattern
I highly doubt it. I haven’t touched the code in months, and in that time Textpattern and OpenID have both moved along in great leaps.
Besides, in the past year other PHP OpenID libraries have come out which are probably more reliable that what I put together, and it probably wouldn’t take much work to integrate one of those libraries with TXP (and hopefully in a less invasive and more portable fashion than what I put together).
-Kurt
kurt@kurtraschke.com
Offline
Re: OpenID and TypeKey support for Textpattern
is this code still floating around somewhere? Was curious what direction Kurt took to implement this [less so specific coding details… so being bitrotten isn’t much of a concern]
Site: placenamehere.com
Microformat Plugin: pnh_mf
Offline
Re: OpenID and TypeKey support for Textpattern
Does anyone know where to grab this code?
Yoko for Textpattern – A free blog theme • Minimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often
Offline