Hello,
I just read
Using Your Own URL as Your OpenID
http://blog.stackoverflow.com/2009/01/using-your-own-url-as-your-openid/
http://blog.stackoverflow.com/2009/01/we-now-support-multiple-openids/
so the basic message is, that you can use your own domain name as open ID account,
with the help of a free OpenID service.
you need
a) a free OpenID services support this approach
b) a partner site which enables you to add your domain as OpenID
so that you from that on, on ANY OpenID-enabled site, you can enter your domain as OpenID.
I do not know if/how you can do it without a partner site, for implementation.
If you do frequent changes of your associated OpenID, on your partner site, this has direct effect on your OpenID account ( so you have a premier and alternative id ), according to the article.
The article above mentions their own site as example for (b), and an OpenID service (a).
So first you need an account at this partner site.
Then if you follow the instructions,
at a special personal user page on the partner site,
you can enter your domain name,
mydomain.com
or
mythirdleveldomain.hostdomain.com
(if you just own a third-leve-domain as some free hosting services like Free.Fr provide it)
or even entering a forwarding domain name is ok ( which is usually disregarded,as the service looks at the finally loaded target URL )
, the OpenID online service checks the URL and tells you the final URL to be used as
mydomain.com/doku.php
or
mythirdleveldomain.hostdomain.com/doku.php
for any DokuWiki site.
Well... would you like to enter
(a) mydomain.com/doku.php
or
mythirdleveldomain.hostdomain.com/doku.php
respectively
OR
(b) mydomain.com
or
mythirdleveldomain.hostdomain.com/
respectively
as OpenID, if DokuWiki is installed in your root server directory ?
Most people will love to enter (b), as it is shorter.
Here is the solution.
In the root directory of your website, which is the root directory of DokuWiki,
just
rename index.php to index2.php ( to keep it as backup )
and
copy doku.php to index.php
so that both doku.php and index.php have identical contents.
You can then edit the file
<dokuwiki_root>/conf/lib/tpl/<your_template>/meta.html
and add the meta instructions
<link rel="openid.server" href="
http://www.a-openid-service.com/server">
<link rel="openid.delegate" href="
http://youropenid.a-openid-service.com/">
where
a-openid-service.com is the placeholder for a free OpenID service.
youropenid is the placeholder of your openid account at a-openid-service.com.
If your template does not offer the inclusion of "meta.html", you have to patch it.
Just include
<?php /*old includehook*/ @include(dirname(__FILE__).'/meta.html')?>
at the right place. Please have a look at the template
http://www.dokuwiki.org/template:roundbox
where to put it in, exactly.
The inclusion at
http://www.dokuwiki.org/template:roundbox
is done in the fliles
Detail.php
Main.php
Mediamanger.php
in the main template directory
, look for the word
<head>
in the code.
As it is useful to have quite a number of meta commands, applying this patch is of general interest.
**************
Question:
Though its great for using the own domain name as OpenID,
is there any drawback from point of view of DokuWiki ?
I don´t think so, by now.
Any link on
/index.php
like "mypage.html"
goes to
/doku.php/mypage.html
(hmmm ... is this magic ?!)
Question 2:
Is there any way, with just little changes of the DokuWiki code,
****and WITHOUT using module-rewrite****,
to create a website where the Dokuwiki contents
mydomain.com/doku.php?id=mypage.html
is addressable with "internal nice URL" enabled ( mode 2)
mydomain.com/mypage.html
instead that there MUST be a "doku.php" in the path, like
mydomain.com/doku.php/mypage.html
?
Question3:
If you do frequent changes of your associated OpenID, on your partner site, this has direct effect on your OpenID account ( so you have a premier and alternative id ), according to the article.
I disagree a little bit, as first I declared
mythirdleveldomain.hostdomain.com/doku.php
and afterwards
mythirdleveldomain.hostdomain.com/
as secondary URL.
But I can enter an OpenID-enabled site with both names, now...
did you observe such behaviour too !?
Question4:
What do you think of OpenID ?
Before I heard about this feature "enter your own domain name as OpenID", it was quite a silly idea, from my point of view.
Even now, if you have a douzend OpenIDs ( of yahoo, google,..) and if you enter another OpenID-enabled site with any OpenID, you get each time another account if you use another of your OpenIDs.
So for most services, if you enter it with your OpenID of Google, you are in a different context as if you enter the site with your OpenID of Yahoo,... different context means different user account.
Especially your account is LOST, if someday your openID provider should be closed or if the service should demand money for its services.... and you are unwilling to pay.
if you use the feature "enter your own domain name as OpenID", you might switch to another OpenID provider, as long as it supports this feature, without problems, by just changing the META informations on your premier website page.
Sincererely
Rolf